Thoughts of a relentless mind

Indian Air Force at its best!!

The power of IAF n French Air Craft Mirage 2000

18/02/2008 Posted by | General | | 4 Comments

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

03/02/2008 Posted by | General | , , | 3 Comments