Needs a script to reboot a Omnitik when registered clients = 0 on wlan interfaces e ou virtual ssid´s.
Thanks in advance
But what happens on reboot > before clients can register script runs and reboot again > on reboot >repeat loop:local clientes [/interface wireless registration-table print count-only];
:local WarnAt 0
#:log info ($clientes);
:if ($clientes <= $WarnAt) do={
#:log info ($clientes);
/system reboot
}
many thanks:local clientes [/interface wireless registration-table print count-only];
:local WarnAt 0
#:log info ($clientes);
:if ($clientes <= $WarnAt) do={
#:log info ($clientes);
/system reboot
}
Great but how i can make it reboot whenBut what happens on reboot > before clients can register script runs and reboot again > on reboot >repeat loop:local clientes [/interface wireless registration-table print count-only];
:local WarnAt 0
#:log info ($clientes);
:if ($clientes <= $WarnAt) do={
#:log info ($clientes);
/system reboot
}
Put in a delay of say 5mins on the scheduler after router reboots to allow for clients to register before script becomes active ?
:local clientes [/ip hotspot active-table print count-only];
:local WarnAt 1
#:log info ($clientes);
:if ($clientes <= $WarnAt) do={
#:log info ($clientes);
/system reboot
}