Thoughts of a relentless mind

Schedule your router to turn ON/OFF

You can use this tutorial to turn ON/OFF your router. This can be used effectively if you want to go online and disconnect at a particular pre-determined time. For this purpose, batch files are needed. This guide is written for Huawei MT882 router. The scripts will work for other routers as weel, with some minor modifications. Place all the files in C:\RouterSwitchfolder.

Step 1: Download TST10 from winsite. Click here to download it.

Step 2: To turn OFF the router. Create a text file named disable.txt. Include the following lines in the file.

192.168.1.1
WAIT “Login: ”
SEND “admin\m”
WAIT “Password: ”
SEND “admin\m”
WAIT “–> ”
SEND “pppoe set transport 1 disabled\m”

Step 3: To turn ON the router. Create a text file named enable.txt. Include the following lines in the file.

192.168.1.1
WAIT “Login: ”
SEND “admin\m”
WAIT “Password: ”
SEND “admin\m”
WAIT “–> ”
SEND “pppoe set transport 1 autoconnect enabled\m”

Step 4: Create a btach file labelled routerOFF.bat, with the following text:

chdir C:\RouterSwitch
c:
TST10 /r:disable.txt /o:last_log.txt

Step 5: Create a batch file labelled routerON.bat, with the following text:

chdir C:\RouterSwitch
c:
TST10 /r:enable.txt /o:last_log.txt

Step 6: Now schedule the routerOFF.bat and routerON.bat using the Windows task scheduler

Advertisements

03/02/2008 - Posted by | General | , ,

3 Comments »

  1. Does it power off the router or just disconnect it from your computer?

    Comment by Eman | 08/11/2008 | Reply

  2. First off I would like to say great blog! I had a quick question
    in which I’d like to ask if you don’t mind. I was interested
    to know how you center yourself and clear your mind before writing.
    I have had a hard time clearing my thoughts in getting my thoughts out there.
    I truly do take pleasure in writing however it just seems like the first 10 to 15 minutes tend to be wasted simply just trying to figure out how
    to begin. Any ideas or hints? Thank you!

    Comment by Visitar Pagina | 30/06/2013 | Reply

    • Hi,

      Thanks for the wonderful comment. It’s really inspiring!

      Yes, even I too go through the same problem. My mind thinks about a hundred topics to blog about, but then it totally goes blank when it’s time to write something!

      My advice: Just write what you have in your mind right now, and keep the flow of words natural and simple without complicating. At least that is what I do.

      Comment by Webgenius | 10/07/2013 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: