EEM event manager – use cron timer

event manager applet PHONE_POWER_OFF
event timer cron name PHONE_POWER_OFF cron-entry “0 11 * * 1-5”
action 1.0 cli command “enable”
action 1.1 cli command “conf t”
action 1.2 cli command “interface f0/23”
action 1.3 cli command “power inline never”
action 1.4 syslog msg “PHONE_POWER_OFF by EEM script”
event manager applet PHONE_POWER_ON
event timer cron name PHONE_POWER_ON cron-entry “0 8 * * 1-5”
action 1.0 cli command “enable”
action 1.1 cli command “conf t”
action 1.2 cli command “interface f0/23”
action 1.3 cli command “no power inline never”
action 1.4 syslog msg “PHONE_POWER_ON by EEM script”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s