Задача: Гасить wifi интерфейс на точке в нерабочее время
Решение:
sntp server 192.168.0.1 clock timezone MSK +4 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"