Community discussions

MUM Europe 2020
 
bigguns
Member Candidate
Member Candidate
Topic Author
Posts: 238
Joined: Thu Apr 01, 2010 9:03 am

Restart when no active hotspot users?

Thu Jun 07, 2012 6:30 pm

Hi there,
I'm looking for a method to restart my RB's when there are no active hotspot users, on a weekly base.
If at the point of the restart schedule there are users, it keeps trying every 15 minutes to see if there are any active users.

Could someone help me with creating this please? I think it would be a great addition to the wiki as many people need to start their RB's to keep them fresh!
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 558
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Restart when no active hotspot users?

Thu Jun 07, 2012 10:18 pm

add a script
{
local user [len [ip hotspot active find]]
if ($user=0) do={/system reboot}
}

and then a scheduler for run the script
nothing
 
bigguns
Member Candidate
Member Candidate
Topic Author
Posts: 238
Joined: Thu Apr 01, 2010 9:03 am

Re: Restart when no active hotspot users?

Fri Jun 08, 2012 2:52 am

Thank you very much for that. Karma +1

Is there anyway I can add a range/address IP in the hotspot to exclude in that script?

Who is online

Users browsing this forum: Google [Bot] and 35 guests