Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Kron not working

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
Cisco Employee

Kron not working

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"

New Member

Kron not working

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

how we can configured the same

Cisco Employee

Kron not working

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

New Member

Kron not working

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

Cisco Employee

Kron not working

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"

291
Views
0
Helpful
5
Replies
CreatePlease login to create content