04-08-2020 06:40 AM
Hi, I have a problem.
Is there any command to make an schedule to up each interface of a switch in a specific time?
Solved! Go to Solution.
04-08-2020 01:39 PM
Hello,
in addition to Joseph's remarks, here is an example of two EEM scripts. The first script would unshut the interfaces at 9AM Monday thru Friday, the second one would shut the interfaces at 5PM Monday thru Friday.
event manager applet INTERFACES_UP
event timer cron cron-entry "0 9 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 10"
action 4.0 cli command "no shut"
action 5.0 cli command "end"
!
event manager applet INTERFACES_DOWN
event timer cron cron-entry "0 17 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 10"
action 4.0 cli command "shut"
action 5.0 cli command "end"
04-08-2020 07:34 AM
04-08-2020 01:39 PM
Hello,
in addition to Joseph's remarks, here is an example of two EEM scripts. The first script would unshut the interfaces at 9AM Monday thru Friday, the second one would shut the interfaces at 5PM Monday thru Friday.
event manager applet INTERFACES_UP
event timer cron cron-entry "0 9 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 10"
action 4.0 cli command "no shut"
action 5.0 cli command "end"
!
event manager applet INTERFACES_DOWN
event timer cron cron-entry "0 17 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet 0/0 - 10"
action 4.0 cli command "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