Community discussions

MikroTik App

Search found 2 matches

by a7mad78
Tue Aug 09, 2016 9:35 am
Forum: Scripting
Topic: Script for reboot based on wireless clients
Replies: 10
Views: 2724

Re: Script for reboot based on wireless clients

Oh, never mind :)

my problem was actually in the first line :)

i edited it
from
:local clientes [/ip hotspot active-table print count-only];
to
:local clientes [/ip hotspot active-table print count-only];

and do i have to run this script after every reboot or it will still running ?
by a7mad78
Tue Aug 09, 2016 9:30 am
Forum: Scripting
Topic: Script for reboot based on wireless clients
Replies: 10
Views: 2724

Re: Script for reboot based on wireless clients

:local clientes [/interface wireless registration-table print count-only]; :local WarnAt 0 #:log info ($clientes); :if ($clientes <= $WarnAt) do={ #:log info ($clientes); /system reboot } But what happens on reboot > before clients can register script runs and reboot again > on reboot >repeat loop ...