07-08-2013 05:09 AM
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
07-08-2013 07:56 AM
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"
07-08-2013 09:46 AM
i have to run this interface shutdown daily on 19:00 hrs,
how we can configured the same
07-08-2013 09:48 AM
That EEM applet I provided will do that. The interface will shutdown at 19:00 every day.
07-08-2013 09:51 AM
en everyday i have to no shut that interface on 05:00 hrs
07-08-2013 10:18 AM
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"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide