Thursday, May 14, 2009

Cisco time-based interface activity

http://wiki.nil.com/Time-based_wireless_interface_activity
event manager environment _disable_ifname dot11radio0
!
event manager applet DisableInterface
event timer cron name DisableInterface cron-entry "0 22 * * *"
action 1.0 cli command "enable"
action 1.1 cli command "configure terminal"
action 1.5 cli command "interface $_disable_ifname"
action 1.6 cli command "shutdown"
!
event manager applet EnableInterface
event timer cron name EnableInterface cron-entry "0 7 * * *"
action 1.0 cli command "enable"
action 1.1 cli command "configure terminal"
action 1.5 cli command "interface $_disable_ifname"
action 1.6 cli command "no shutdown"
!
event manager applet EnableAfterReload
event timer countdown name EnableAfterReload time 10
action 1.0 cli command "enable"
action 1.1 cli command "configure terminal"
action 1.5 cli command "interface $_disable_ifname"

action 1.6 cli command "no shutdown"

No comments:

Post a Comment