Page 1 of 5 123 ... LastLast
Results 1 to 25 of 104

Thread: Automatic rebooting of router at 2 AM and 8 AM

  1. #1
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Lightbulb Automatic rebooting of router at 2 AM and 8 AM

    Please see the following post:

    Triband NU Solution, Automated router reboot

    This post by greikor is one of the best and coolest way to reboot modems at 2 AM and 8 AM.

    It is even better than using TST10.EXE and a script (which may be prone to errors).

    Say thanks to greikor.
    Last edited by just4kix; 09-08-08 at 04:59 PM.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My Movie Collection | My Blogs
    -------------------------------------------------------------------------------------------

  2. #2
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default To repost the method here ...

    To repost the method here ...

    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.
    I have tested the method for UT-300R2U and Airlink-101 router and it works. There is no reason why it should not work for other routers also.

  3. #3
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Lightbulb The Comprehensive Guide is now available

    Once again thanks to Greikor.

    Attached is a comprehensive guide. I wrote this in a hurry and hence please excuse me for some mistakes and would love to get them corrected.

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

    Default

    Wonderfully done!

  5. #5
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    Quote Originally Posted by Greikor View Post
    Wonderfully done!
    Thanks.

  6. #6
    Junior Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    38

    Default

    Oh, wow, this is great. Thanks greikor. I was in need of something just like that.

  7. #7
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    There exists another utility by Imran... it is here: RapidShare: Easy Filehosting

    For details on this utility, visit this thread: http://www.indiabroadband.net/bsnl-b...e-manager.html

  8. #8
    Junior Member
    Join Date
    Jul 2008
    Age
    24
    Liked
    0 times
    Posts
    17

    Default

    m getting the error of could not opne port 23.......pls help

  9. #9
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    hey kixxi. .. pl tell me tht script is not working for me.. my modem is ZXDSL 531B...

    i converted tht script to exe.. and just tried to click and run it.. to check if my modem reboots or not.. i am getting following error message..

    reb.JPG
    Last edited by Mr.Tooth Fairy; 11-03-08 at 11:51 PM. Reason: Automerged Doublepost

  10. #10
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    Quote Originally Posted by Mr.Tooth Fairy View Post
    hey kixxi. .. pl tell me tht script is not working for me.. my modem is ZXDSL 531B...

    i converted tht script to exe.. and just tried to click and run it.. to check if my modem reboots or not.. i am getting following error message..

    reb.JPG
    It appears that 'telnet.exe' cannot be located.

    1. Go to cmd prompt.
    2. Type 'telnet' on command prompt (without quotes) and see whether it runs.
    3. Find out where telnet.exe is located.
    4. Change line 1 to "run <drive:>\<full_path>\telnet.exe"

    Create the exe again and test it.

  11. #11
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    well sorry kixxi for un necessary hassel i am creating... but still am getting same error message.. i went to run >cmd> telnet ... but there its coming "telnet" not recognised as internal or external command, operable command or batch file..

    tht 1st line i changed as u said.. edited.. created exe again.. still coming same error window.. is it like its not compatible with vista.??

  12. #12
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    Did you locate where telnet.exe exists? In XP it is located in %systemroot%\system32 folder.

  13. #13
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    well i just saved all files to desktop.. is it like after it gets converted its saved to smewhere? i dont know tht.. if so pl tell me .. like i went to search and typed "telenet.exe".. no results..

    i got just shortcut searching.. where i clicked to open file location.. and again it opened same file where i saved..DESKTOP... lol.. world is round.. so true.. in my lappy also..

  14. #14
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    TELNET.EXE is a windows application that is installed with windows. Find out in which directory folder it is located.

  15. #15
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    Quote Originally Posted by just4kix View Post
    Did you locate where telnet.exe exists? In XP it is located in %systemroot%\system32 folder.
    ok kixxi.. i searched googel and found tht in vista they have made telnet as optional.. where u have to turn it on.. nor i have turned it on and done all things again.. as u said.. and telnet now in my vista is located same as like in windows \system32\telnet.exe


    now in cmd prompt working.. some black screen as like cmd prompt comes...here it is

    Image Hosting Myspace

    now when i click the exe file which i have made.. telnet opens. but my modem does not reboots..:48:

  16. #16
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    today this happend second time........ my post went for moderator approval...... what wrong i did?

  17. #17
    Super Moderator smoothvibes's Avatar
    Join Date
    Jul 2008
    Liked
    0 times
    Posts
    4,876

    Default

    not sure why it went in mod que... but have approved it mate

  18. #18
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    so kixxi now what should i do now?

  19. #19
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    First you should make sure that you can telnet to your modem and reboot manually as follows:

    a) From cmd prompt, start telnet
    b) on telnet prompt, run command o 192.168.1.1
    c) you should see a login prompt. Login = admin, Password = whatever is your modem password
    d) After successful login, execute the command reboot or restart (if reboot does not work
    e) Ensure that modem reboot is successful
    f) Make changes to the script attached in the guide, as appropriate
    g) Convert .ahk to .exe
    h) Follow the guide

  20. #20
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    well kixxi.. now i think its coming as u said.. i checked all things.. like run >cmd> telnet

    in telnet i typed o 192.168.1.1 and entered username and password...voila.. my adsl config came.. typed 13 as command.. and modem rebooted.. so now everything is alright..
    here is the image for telnet which i got...


    now regarding editing script.. i dont know what to edit.. i mean i cant understand it at all.. if u dont mind,. can u pl make tht script for me? kixxi.. pl

    kixxi.. where r u man.. make my day.. now last one script will do it all for me..
    Last edited by Mr.Tooth Fairy; 11-04-08 at 07:56 PM. Reason: Automerged Doublepost

  21. #21
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    Change line
    ... Send reboot{ENTER}
    to
    ... Send 13{ENTER}

    Rest is same.

  22. #22
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    ok kixxi.. almost done.. i edited the script almost as per my requirements.here is the script.. its very short..your commands like " sleep " , "winactivate" pl explain... what the value next to sleep indicates...this is my script.. but whats lacking i dont know..
    Run c:\windows\system32\telnet.exe
    Send o{SPACE}192.168.1.1{ENTER}
    Send admin{ENTER}
    Send admin{ENTER}
    Send 13{ENTER}
    send 1{ENTER}

    if i click on exe file it runs and modem reboots.. but only problem is when i schedule using windows schedular... its not working.. following error screen comes..


    i wonder now tht "o" is not getting executed i think...

    i know kixxxi....... u r fed up of this..

    hello.. anyone ere????///
    Last edited by Mr.Tooth Fairy; 11-05-08 at 12:23 PM. Reason: Automerged Doublepost

  23. #23
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    All those wait commands are required. The WAIT command allows the script command to execute and wait for further input.

    Your script must be:

    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}
    Sleep 2000
    WinActivate Telnet 192.168.1.1
    Send <password>{ENTER}
    Sleep 5000
    WinActivate Telnet 192.168.1.1
    Send 13{ENTER}
    Sleep 70000
    WinActivate Telnet
    Send a{ENTER}
    Sleep 2000
    WinActivate Telnet
    WinClose Telnet

  24. #24
    Platinum Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    1,565

    Default

    well kixxi.. i made it again with your script exe file..your this script just opens my telenet... nothing else.. r u sure this all commands u gave works in vista? i dont know where i am facing problem

  25. #25
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,904

    Default

    I am sure they work for XP - not sure about Vista. Try AutoHotKey help.

    You can also use Macro recorder:

    Creating a Keyboard Macro or Mouse Macro

    A macro is a series of scripted actions that is "played" upon demand. The most common activity of a macro is to send simulated keystrokes and mouse clicks to one or more windows. Such windows respond to each keystroke and mouse click as though you had performed it manually, which allows repetitive tasks to be automated with high speed and reliability.

    Although macros can be written by hand, you might find it easier to write long ones with the aid of AutoScriptWriter, which is a macro recorder included with AutoHotkey. It watches what you type and where you click, and keeps track of which window is active. It transcribes these actions into a working macro that can later be "played back" at a faster speed.

    One of the most convenient ways to play back a macro is to assign it to a hotkey or hotstring. For example, the following hotkey would create an empty e-mail message and prepare it for a certain type recipient, allowing you to personalize it prior to sending:

    ^!s:: ; Control+Alt+S hotkey.
    IfWinNotExist Inbox - Microsoft Outlook
    return ; Outlook isn't open to the right section, so do nothing.
    WinActivate ; Activate the window found by the above command.
    Send ^n ; Create new/blank e-mail via Control+N.
    WinWaitActive Untitled Message
    Send {Tab 2}Product Recall for ACME Rocket Skates ; Set the subject line.
    Send {Tab}Dear Sir or Madam,{Enter 2}We have recently discovered a minor defect ... ; etc.
    return ; This line serves to finish the hotkey.
    Hotkey macros like the above are especially useful for tasks you perform several times per day. By contrast, macros used less often can each be kept in a separate script accessible by means of a shortcut in the Start Menu or on the desktop.

    To start creating your own macros and hotkeys right away, please read the Quick-start Tutorial.
    Last edited by just4kix; 11-05-08 at 03:34 PM. Reason: Automerged Doublepost

Page 1 of 5 123 ... LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •