Trying to deploy my first EEM script and having issues with getting it to run.
Trying to shut down the Synology2 server and then enable the Synology1 server an hour later. Then later in the week, shut the Synology1 server and enable the Synology2 server.
Can anyone help with what I'm missing. This doesn't appear to be running.
event manager applet shutdown_synology2 event timer cron cron-entry "00 16 * * 0-2," name shutdown_synology2 action 010 cli command "enable" action 020 cli command "config t" action 030 cli command "interface te1/0/26" action 040 cli command "shut" action 050 cli command "end" action 060 syslog msg "Interface Ten1/0/26 has been shutdown" action 070 cli command "enable" action 080 cli command "config t" action 090 cli command "interface te2/0/26" action 100 cli command "shut" action 110 cli command "end" action 120 syslog msg "Interface Ten2/0/26 has been shutdown" event manager applet enable_synology1 event timer cron cron-entry "00 17 * * 0-2," name enable_synology1 action 010 cli command "enable" action 020 cli command "config t" action 030 cli command "interface Te1/0/33" action 040 cli command "no shut" action 050 cli command "end" action 060 syslog msg "Interface Ten1/0/33 has been restored" action 070 cli command "enable" action 080 cli command "config t" action 090 cli command "interface Te2/0/33" action 100 cli command "no shut" action 110 cli command "end" action 120 syslog msg "Interface Ten2/0/33 has been restored" event manager applet shutdown_synology1 event timer cron cron-entry "00 16 * * 3-6" name shutdown_synology1 action 010 cli command "enable" action 020 cli command "config t" action 030 cli command "interface Te1/0/33" action 040 cli command "shut" action 050 cli command "end" action 060 syslog msg "Interface Ten1/0/33 has been shutdown" action 070 cli command "enable" action 080 cli command "config t" action 090 cli command "interface Te2/0/33" action 100 cli command "shut" action 110 cli command "end" action 120 syslog msg "Interface Ten2/0/33 has been shutdown" event manager applet enable_synology2 event timer cron cron-entry "00 17 * * 3-6" name enable_synology2 action 010 cli command "enable" action 020 cli command "config t" action 030 cli command "interface te1/0/26" action 040 cli command "no shut" action 050 cli command "end" action 060 syslog msg "Interface Ten1/0/26 has been restored" action 070 cli command "enable" action 080 cli command "config t" action 090 cli command "interface te2/0/26" action 100 cli command "no shut" action 110 cli command "end" action 120 syslog msg "Interface Ten2/0/26 has been restored"
No comments:
Post a Comment