India Broadband

Forum

 

Triband NU Solution, Automated router reboot

This is a discussion on Triband NU Solution, Automated router reboot within the MTNL broadband forums, part of the DSL Broadband Service Providers category; Here is the router reboot method I have tried this only on DLink DSL-502T router , this should work on ...


Go Back   India Broadband Forum > Indian Broadband Forums > DSL Broadband Service Providers > MTNL broadband

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 15-08-2006
Admin's Avatar  
Join Date: Jan 2006
Location: New Delhi
Age: 31
Posts: 2,238
Rep Power: 10
Admin is on a distinguished road
Default Triband NU Solution, Automated router reboot

Here is the router reboot method

I have tried this only on DLink DSL-502T router , this should work on any modem, I personally have no experience. I have tried this on my router atleast a 20 times now and there are no problems whatsoever but I'm in no way responsible if your hardware loses any or all of its functionality as a result of this method.


Go to Start > Run

type "telnet" without quotes

In the telnet window that opens, type "o 192.168.1.1" (o is for open) without quotes.


You will get a login prompt. Enter the login you use for the DLink router ronfiguration page. Enter the corressponding password on the next prompt. At # prompt, type "reboot" and press enter.

At this point, there will be a "Press any key to continue..." prompt in Telnet. Now, I'm not sure about this but knowing the flaky nature of DLink 502T, I would advise you not to do so until the router has rebooted completely and USB/Ethernet and ADSL Link lights have come back on. In any case, waiting is not going to hurt, better safe than sorry.

Meanwhile, if all goes well, router would have rebooted and you would be back online. Triband usage page at http://register.bol.net.in will reflect the same. For your satisfaction, you can also check your IP address at WhatIsMyIP.com - 70.86.183.34, before and after the reboot to see if it has changed or not.


Scheduling:
For scheduling the reboot, download TST10 from winsite.com downloads. It is a tiny freeware Telnet utility with support for scripting. Extract the utility to a folder on your hard drive. e.g. C:\TST. In this folder, create a new text file. This is the file in which we will write the script for TST10, so name it anything you like e.g. reboot.txt. Edit this file in notepad and type the following. Remember to type the quotes as well and do not type the top and bottom lines, which I've added here only for clarity.


Start of script(don't type this line)----------------

192.168.1.1 23
WAIT "login"
SEND "login_id\m" (enter your login ID here)
WAIT "Password"
SEND "login_pass\m" (enter your password here)
WAIT "#"
SEND "reboot\m"
WAIT "#"

End of Script (don't type this line)-------------


192.168.1.1 is the address you use to access the router configuration. 23 is the port to which telnet connects. Replace "login_id" and "login_pass" with the login and password respectively, that you use to access the router configuration page from a browser. Remember, keep the \m after the id and pass.

Now create a scheduled task using the inbuilt Windows task scheduler.

Important: Create a task to run tst10.exe with the command line parameter /r:reboot.txt.

Important:
Remember to set your firewall to always allow TST10.exe to connect to 192.168.1.1 otherwise it will not work.





Some of the steps above need you to login as administrator. Try it a a couple of times to make sure it works.
have fun
Reply With Quote
  #2  
Old 30-08-2006
India Broadband Internet
Guest
 
Posts: n/a
Default

Thanks for the info
Reply With Quote
  #3  
Old 03-09-2006
Dante
Guest
 
Posts: n/a
Default

it also works for the other router which MTNL supplies namely UT-300R2U by the co. named Starcom

tried and tested method
Reply With Quote
  #4  
Old 17-03-2007
aiwa_05
Guest
 
Posts: n/a
Default

can anyone tell for what it is used for
Reply With Quote
  #5  
Old 26-09-2007
Junior Member
 
Join Date: Sep 2007
Posts: 1
Rep Power: 0
okay.fine is on a distinguished road
Default

hi,

I have a ut starcom modem and i tweaked the reboot.txt in the following way

192.168.1.1 23
WAIT "Login"
SEND "admin\m"
WAIT "Password"
SEND "admin\m"
WAIT ">"
SEND "reboot\m"

and it works :-)
Reply With Quote
  #6  
Old 06-10-2007
Junior Member
 
Join Date: Sep 2007
Posts: 4
Rep Power: 0
paltry is on a distinguished road
Default

nice response for automating this thing..

but i have a problem..

when i use the script...the router reboots ok but when it goes to on state...the adsl light keeps off..it doesnt goes on..

basically it solves the purpose to a large extent that the night slot is used within the alloted night slot and doesnt lapses in the day slot to save bandwith..BUT..

i have to manually switch it off and the on to make the adsl light on..so i am still involved with some manual process..

i have a router given by mtnl...ut-300r2u (written at bottom)
in front near led(s) its written t-kd 318-eui

can anyone tell me if this is because of the router firmware or what??
will a firmware update will solve this thing??

Thanks.
Reply With Quote
  #7  
Old 18-10-2007
Junior Member
 
Join Date: Oct 2007
Posts: 1
Rep Power: 0
sachitv is on a distinguished road
Default

instead, go to 192.168.1.1 in your browser, select tools go to misc./system click save and reboot
Reply With Quote
  #8  
Old 03-11-2007
Junior Member
 
Join Date: Nov 2007
Posts: 5
Rep Power: 0
Greikor is on a distinguished road
Default

After reading the Admin's post, I too have created another script for DSL-502T router using autohotkey.

THIS SCRIPT IS STRICTLY FOR DSL-502T ROUTER OF D-LINK THAT IS PROVIDED BY MTNL.

1] Install Autohotkey
2] Create a new folder where ever you want. Right click inside it > New > Autohotkey script.
3] Edit this new file using notepad or any other word processor and enter the following script. Only enter the red coloured text.

Run telnet.exe
WinWait C:\WINDOWS\system32\telnet.exe
WinActivate C:\WINDOWS\system32\telnet.exe
Send o{SPACE}192.168.1.1{ENTER}
Sleep 2000
WinActivate Telnet 192.168.1.1
Send admin{ENTER} [Enter your logon id here in place of admin]
Sleep 2000
WinActivate Telnet 192.168.1.1
Send admin{ENTER} [Enter your logon password here in place of admin]
Sleep 5000
WinActivate Telnet 192.168.1.1
Send reboot{ENTER}
Sleep 70000
WinActivate Telnet
Send a{ENTER}
Sleep 2000
WinActivate Telnet
WinClose Telnet


4] Save the file, and name it rebootmodem.ahk
5] Go to Start Menu>Program files>Autohotkey>Convert .ahk to .exe
6] Under source file browse and select the script you just wrote named rebootmodem.txt
7] Under destination file browse to the folder you created and TYPE rebootmodem.exe
8] Click on >Convert<
9] Now open the Scheduled Tasks window from system tools in your start menu or from your control panel.
10] Schedule the task to run rebootmodem.exe every day at 7:45 am, enter your Windows login password when prompted and verify it.
11] Now a new task will appear in the scheduled tasks folder called rebootmodem. Rename it to Morning.
12] Create another task and set it to 12:15 am and schedule it to run everyday, enter your windows login id and password when prompted.
You are all set now.
13] Remember to set your firewall to allow rebootmodem.exe to access the router.

For those who wish to avoid all that hassle just download the following file. Then schedule it to run in the morning and at night when required.

Credit: The admin for the idea.
Reply With Quote
  #9  
Old 13-01-2008
Junior Member
 
Join Date: Jan 2008
Posts: 1
Rep Power: 0
nikkiddl is on a distinguished road
Default

Quote:
Originally Posted by Greikor View Post
After reading the Admin's post, I too have created another script for DSL-502T router using autohotkey.

THIS SCRIPT IS STRICTLY FOR DSL-502T ROUTER OF D-LINK THAT IS PROVIDED BY MTNL.

1] Install Autohotkey
2] Create a new folder where ever you want. Right click inside it > New > Autohotkey script.
3] Edit this new file using notepad or any other word processor and enter the following script. Only enter the red coloured text.

Run telnet.exe
WinWait C:\WINDOWS\system32\telnet.exe
WinActivate C:\WINDOWS\system32\telnet.exe
Send o{SPACE}192.168.1.1{ENTER}
Sleep 2000
WinActivate Telnet 192.168.1.1
Send admin{ENTER} [Enter your logon id here in place of admin]
Sleep 2000
WinActivate Telnet 192.168.1.1
Send admin{ENTER} [Enter your logon password here in place of admin]
Sleep 5000
WinActivate Telnet 192.168.1.1
Send reboot{ENTER}
Sleep 70000
WinActivate Telnet
Send a{ENTER}
Sleep 2000
WinActivate Telnet
WinClose Telnet


4] Save the file, and name it rebootmodem.ahk
5] Go to Start Menu>Program files>Autohotkey>Convert .ahk to .exe
6] Under source file browse and select the script you just wrote named rebootmodem.txt
7] Under destination file browse to the folder you created and TYPE rebootmodem.exe
8] Click on >Convert<
9] Now open the Scheduled Tasks window from system tools in your start menu or from your control panel.
10] Schedule the task to run rebootmodem.exe every day at 7:45 am, enter your Windows login password when prompted and verify it.
11] Now a new task will appear in the scheduled tasks folder called rebootmodem. Rename it to Morning.
12] Create another task and set it to 12:15 am and schedule it to run everyday, enter your windows login id and password when prompted.
You are all set now.
13] Remember to set your firewall to allow rebootmodem.exe to access the router.

For those who wish to avoid all that hassle just download the following file. Then schedule it to run in the morning and at night when required.

Credit: The admin for the idea.
Thanks a Lot You did a great job. Thanks a LOT
Reply With Quote
  #10  
Old 28-01-2008
Junior Member
 
Join Date: Jun 2007
Posts: 22
Rep Power: 0
Feedback is on a distinguished road
Default

At Greikor,

Thanks a Lot Dude. Very Nice Work
Reply With Quote
Reply

Bookmarks

Tags
automated, reboot, router, solution, triband


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to make the VoIP Router work with BSNL tb2904 BSNL broadband 1 16-01-2007 09:53 PM
How to make the VoIP router work with BSNL tb2904 BSNL broadband 0 12-07-2006 06:06 PM


All times are GMT +5.5. The time now is 06:45 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
India Broadband Forum