Отключение wifi в в нерабочее время

Задача: Гасить 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"

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Time limit is exhausted. Please reload the CAPTCHA.

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.