Results 1 to 24 of 24

Thread: Triband NU Solution, Automated router reboot

  1. #1
    Admin's Avatar
    Join Date
    Jan 2006
    Liked
    57 times
    Posts
    6,146

    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

  2. #2
    India Broadband Internet
    Guest

    Default

    Thanks for the info

  3. #3
    Dante
    Guest

    Default

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

    tried and tested method

  4. #4
    aiwa_05
    Guest

    Default

    can anyone tell for what it is used for

  5. #5
    Junior Member
    Join Date
    Sep 2007
    Liked
    0 times
    Posts
    1

    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 :-)

  6. #6
    Junior Member
    Join Date
    Sep 2007
    Liked
    0 times
    Posts
    6

    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.

  7. #7
    Junior Member
    Join Date
    Oct 2007
    Liked
    0 times
    Posts
    17

    Default

    instead, go to 192.168.1.1 in your browser, select tools go to misc./system click save and reboot

  8. #8
    Junior Member
    Join Date
    Nov 2007
    Liked
    0 times
    Posts
    6

    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.

  9. #9
    Junior Member
    Join Date
    Jan 2008
    Liked
    0 times
    Posts
    2

    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

  10. #10
    Junior Member
    Join Date
    Jun 2007
    Liked
    0 times
    Posts
    22

    Default

    At Greikor,

    Thanks a Lot Dude. Very Nice Work

  11. #11
    Junior Member
    Join Date
    Jan 2008
    Liked
    0 times
    Posts
    2

    Default

    Quote Originally Posted by okay.fine View Post
    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 :-)
    plz could u send me the files which u used for rebooting the router.....plz help me friend.....my mail id is chjk8809@yahoo.com


    after the password session the password is getting entered and it shows a msg waiting for ">"

    the symbol is not getting displayed so i cant proceed further...plz help me friend....

  12. #12
    Junior Member
    Join Date
    Jan 2008
    Liked
    0 times
    Posts
    2

    Default

    excellent work dude.....superb......carry on....

  13. #13
    Junior Member
    Join Date
    Jul 2008
    Liked
    0 times
    Posts
    2

    Default

    The link for the file is not working.. it says its not valid can u plz reup it or sumthin.. my email is urnild@yahoo.co.in if u can send it here
    thanx in advance its a very nice post

  14. #14
    Junior Member
    Join Date
    Jul 2008
    Age
    26
    Liked
    0 times
    Posts
    12

    Default

    how to do the same in sl2_141 modem. i m getting " waiting for login" for a long time

  15. #15
    Junior Member
    Join Date
    Aug 2008
    Age
    25
    Liked
    0 times
    Posts
    13

    Default nokia siemens

    i am using a nokia siemens model c2110. i tried the reboot command bt it doesnt seem to work. it doesn reboot.... i need help.. doesn it support software reboot??????

    i checked the configuration page(192.168.1.1) and it has reboot option in dat.. but it doesn reboot upon giving the command at telnet
    Last edited by ashwin.isaac; 08-18-08 at 02:18 AM. Reason: Automerged Doublepost

  16. #16
    Junior Member
    Join Date
    Jul 2008
    Age
    26
    Liked
    0 times
    Posts
    12

    Default

    pls attach the screenshots. first of telnet manually and second of by this script

  17. #17
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    118 times
    Posts
    11,163

    Default

    I have prepared a guide out of this. Please visit the "Broadband How To" section.

  18. #18
    Junior Member
    Join Date
    Aug 2008
    Age
    25
    Liked
    0 times
    Posts
    13

    Default not the screenshot

    wel this is not the screenshot. i jus copy pasted


    *********************
    Welcome to DSL MODEM
    *********************
    DSL MODEM Corporation, Software Release V55.1.04.01

    Login: admin
    Password: *****

    Login successful

    --> reboot

    Unrecognized command (use '?' to see valid completions)

    -->

  19. #19
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    118 times
    Posts
    11,163

    Default

    Quote Originally Posted by ashwin.isaac View Post
    wel this is not the screenshot. i jus copy pasted


    *********************
    Welcome to DSL MODEM
    *********************
    DSL MODEM Corporation, Software Release V55.1.04.01

    Login: admin
    Password: *****

    Login successful

    --> reboot

    Unrecognized command (use '?' to see valid completions)

    -->
    Check this post: http://www.indiabroadband.net/bsnl-b...html#post15376 (Help on UT300R2U,pppoe,Home500.. plz help!!!!)

    or

    contact whitestar_999. He has the same modem.

  20. #20
    Junior Member
    Join Date
    Nov 2007
    Liked
    0 times
    Posts
    6

    Default

    Link bumped. I had a few mails for the dead link, it has been activated again.

  21. #21
    Junior Member
    Join Date
    Sep 2008
    Liked
    0 times
    Posts
    2

    Default Cannot open connection

    Hi,
    I get the message 'cannot open connection on port 23'
    what could go wrong? what should i do to rectify the error?

  22. #22
    Junior Member
    Join Date
    Sep 2008
    Age
    44
    Liked
    0 times
    Posts
    7

    Default

    Thanks for the nice way dude, but my problem is it says
    "connecting to 192.168.1.1... could not open connection to the host, on port23: connect failed"
    Although I can access the same thru web page. My router is DSL502T. All firewalls is disabled av is disabled. router reset too to cross check, but same position.
    Anybody else faced similar position?

  23. #23
    Junior Member
    Join Date
    Jan 2008
    Liked
    0 times
    Posts
    34

    Default

    how do i know my login and password for router reconfig pg?..
    whr can i get it from?

  24. #24
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    118 times
    Posts
    11,163

    Default Redirected ...

    All further discussions here ...

    Automatic rebooting of router at 2 AM and 8 AM

    I have posted a detailed guide also.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)