Community discussions

MikroTik App
 
voip4life
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Fri Dec 16, 2005 11:52 pm
Location: US

Script to turn wireless off at night: is it possible?

Tue Nov 14, 2006 8:15 pm

I would like to know if anyone has any solutions possibly via scripting to turn a wireless hotspot system off at night (not the router, just wireless) after business hours, and then back on again in the morning? Like a scheduled event that runs all the time.

This would hopefully turn on wireless Mon-Fri between 8am and 8pm and off the rest of the time.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26379
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Wed Nov 15, 2006 10:36 am

simply make a script that does `disable` on `wlan1` (or whatever your wlan name is), then another one which does the opposite - and make the scheduler run each script at the appropriate time. should be very easy
 
csickles
Forum Guru
Forum Guru
Posts: 1255
Joined: Fri May 28, 2004 8:46 pm
Location: Phoenix, AZ
Contact:

Wed Nov 15, 2006 6:34 pm

Search the forums for one of my old posts..
I wrote up a quicke on this one..

it takes two short scripts (one turns off the interface one turns it on)
then create two schedualer jobs. one runs the "off command script" one runs the "on script"..

I use this method to controle "open" hotspots from being used as warspammer sites after hours.

(the sites owners wont let me use hotspots to control access)

Craig
 
voip4life
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Fri Dec 16, 2005 11:52 pm
Location: US

Wed Nov 15, 2006 10:00 pm

Thanks Normis and Craig, that's exactly what I was looking for.

Who is online

Users browsing this forum: No registered users and 30 guests