0 Members and 1 Guest are viewing this topic.

AuthorTopic: Reboot adsl modem or router using telnet script  (Read 2259 times)

Offline admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 691
  • Total Like : 0
    • https://www.facebook.com/pages/Phuket-ITcom/148070628616802
    • https://www.youtube.com/channel/UCq5x3hDkhcqJU4QXOE5adTQ
    • Email
« on: 26, 12, 2013, 09:50:33 »
This will help you reboot your adsl modem or router..Bsnl/Mtnl users can use this to take advantage of the 2-8am free downloading..Just make sure you run this script at 2:10am and 7:50am..the process is very simple.
Firstly, Download the telnet scripting tool from HERE
Extract the zip file and place it in a folder say tst10 in C drive.. so the location of the files you extracted should be in C:\tst10 ..Now create a new text file(*.txt) in notepad and insert the following lines in it..

USE THIS FOR HUAWEI MT800,880 ETC

Code: [Select]
192.168.1.1
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "admin\m"
WAIT ">"
SEND "system restart\m"
WAIT ">"

USE THIS FOR HUAWEI MT882

Code: [Select]
192.168.1.1 23
WAIT "login"
SEND "root\m"
WAIT "Password"
SEND "admin\m"
WAIT ">"
SEND "shell\m"
WAIT "#"
SEND "reboot\m"
WAIT ""


USE THIS FOR UT300R2U

Code: [Select]
192.168.1.1 23
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "\madmin\m"
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "admin\m"
WAIT
SEND "reboot\m"
WAIT

USE THIS FOR SIEMENS sl2_141

Code: [Select]
192.168.1.1 23
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "\madmin\m"
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "admin\m"
WAIT
SEND "13\m"
WAIT
SEND "13\m"
WAIT
SEND "1\m"
WAIT
SEND "1\m"
WAIT
SEND "exit\m"
WAIT
SEND "exit\m"

NOTE: above script is written considering that your modem/router ip address is 192.168.1.1 and username and password is admin.These are default values, incase you have changed them, please change it in the script also.
Save this to a file say script.txt so script.txt should be in C:\tst10 .. Now create a batch file(*.bat) in notepad and enter the following lines

Code: [Select]
cd c:\tst10
tst10.exe /r:script.txt

Let it be saved as restart.bat .To save it as a BATCH file.. click on file->save as and in the file name type "restart.bat" including the quotes..Place restart.bat in C:\tst10 .. Now go to control panel and go to schedule tasks.. and add this batch file (restart.bat) to run at 2:10am and 7:50am respectively..Thats it your done..

NOTE:Incase you have Huawei or UT300R2U use the appropriate scripts..Incase you have any other modem better to use the Huawei script and edit it a bit..If you notice in the Huawei script .. the command to restart is "system restart" and in the UT300R2U the command is "reboot"..So the command can vary from model to model.. Incase you have any other model please google it and find out the reboot command and replace it accordingly!!

Ref : http://www.prash-babu.com/2008/03/reboot-adsl-modem-or-router-using.html

Offline admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 691
  • Total Like : 0
    • https://www.facebook.com/pages/Phuket-ITcom/148070628616802
    • https://www.youtube.com/channel/UCq5x3hDkhcqJU4QXOE5adTQ
    • Email
« Reply #1 on: 26, 12, 2013, 09:51:09 »
Reboot Zyxel P660 router from Telnet


f you are able to log into your Zyxel ADSL router from telnet, you can use the following command to restart it.

Code: [Select]
sys reboot
Make sure that no body is activley using the intenret as they will loose their connection.