cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
856
Views
0
Helpful
5
Replies

Kron not working

mrinalsaha
Level 1
Level 1

Hi ,

I have to shutdown and no shutdown one interface daily basis , i have configured kron script but it is not working.

                  

kron occurrence sch at 19:00 recurring

policy-list router_shut

!

kron policy-list router_shut

cli enable

cli configure terminal

cli interface GigabitEthernet1/0/47

cli shutdown

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

For what you want to do, you should use EEM instead:

event manager applet shutdown-int

event timer cron cron-entry "0 19 * * *"

action 1.0 cli command "enable"

action 2.0 cli command "config t"

action 3.0 cli command "int gi1/0/47"

action 4.0 cli command "shut"

action 5.0 cli command "end"

i have to run this interface shutdown daily on 19:00 hrs,

how we can configured the same

That EEM applet I provided will do that.  The interface will shutdown at 19:00 every day.

en everyday i have to no shut that interface on 05:00 hrs

You can use:

event manager applet noshut-int

event timer cron cron-entry "0 5 * * *"

action 1.0 cli command "enable"

action 2.0 cli command "config t"

action 3.0 cli command "int gi1/0/47"

action 4.0 cli command "no shut"

action 5.0 cli command "end"

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: