Page 1 of 2 12 LastLast
Results 1 to 60 of 104

Automatic rebooting of router at 2 AM and 8 AM

  1. #1
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    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; 8th September 2008 at 04:29 PM.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  2. #2
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    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.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  3. #3
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    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.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  4. #4
    Junior Member
    Join Date
    Nov 2007
    Posts
    6

    Default

    Wonderfully done!

  5. #5
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    Default

    Quote Originally Posted by Greikor View Post
    Wonderfully done!
    Thanks.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  6. #6
    Junior Member
    Join Date
    Aug 2008
    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
    Posts
    11,632

    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
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  8. #8
    Junior Member
    Join Date
    Jul 2008
    Posts
    17

    Default

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

  9. #9
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    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; 3rd November 2008 at 11:21 PM. Reason: Automerged Doublepost
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  10. #10
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    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.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  11. #11
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    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.??
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  12. #12
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    Default

    Did you locate where telnet.exe exists? In XP it is located in %systemroot%\system32 folder.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  13. #13
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    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..
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  14. #14
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    Default

    TELNET.EXE is a windows application that is installed with windows. Find out in which directory folder it is located.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  15. #15
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    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:
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  16. #16
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default

    today this happend second time........ my post went for moderator approval...... what wrong i did?
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  17. #17
    Platinum Member
    Join Date
    Jul 2008
    Posts
    5,197

    Default

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

  18. #18
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default

    so kixxi now what should i do now?
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  19. #19
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    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
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  20. #20
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    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; 4th November 2008 at 07:26 PM. Reason: Automerged Doublepost
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  21. #21
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    Default

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

    Rest is same.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  22. #22
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    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; 5th November 2008 at 11:53 AM. Reason: Automerged Doublepost
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  23. #23
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    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
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  24. #24
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    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
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  25. #25
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    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; 5th November 2008 at 03:04 PM. Reason: Automerged Doublepost
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  26. #26
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default

    well kixxi i used macro recorder... all things are fine.. but the thing is when it comes entering login id n password.. tht time it doesnt work... i mean doesnt type what i recorded my login n password.. so further error comes... but just amazing software..


    now wht to do?? am still standing helpless.
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  27. #27
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    Default

    The macro recorder would have created a script for you. Edit it. I am not an expert at AutoHotKey - so I can only help on a limited basis.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  28. #28
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default

    well i got jitbit macro recorder.. if u know that.. i mean if u r expert in it.. than can u plz make me configure.??

    whatever way... i just want to make it happen..auto reebooting modem every night..
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  29. #29
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Posts
    2,946

    Default

    Even with that software it will be hard to schedule all that.

    I would say, don't use any software or programs for this. If that program didn't work, you will end up with a huge bill.

  30. #30
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default

    point is correct archer.. i am flexible in all terms.. if all this is practically hard in poppe mode than i can change to bridge mode if the problem are less.. any software or anything,, i just need a proper automation for it.. i am trying this since almost a month.. researching it.. but still not found anything possible,,
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  31. #31
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Posts
    2,946

    Default

    Quote Originally Posted by Mr.Tooth Fairy View Post
    point is correct archer.. i am flexible in all terms.. if all this is practically hard in poppe mode than i can change to bridge mode if the problem are less.. any software or anything,, i just need a proper automation for it.. i am trying this since almost a month.. researching it.. but still not found anything possible,,
    It will be certainly easier in bridge than in pppoe mode.

  32. #32
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default

    well then should i start asking how to convert my connection from poppe to bridge mode? or make a new thread? and what r u waiting for? tell me how to covert lol :lol:
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  33. #33
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Posts
    2,946

    Default

    Quote Originally Posted by Mr.Tooth Fairy View Post
    well then should i start asking how to convert my connection from poppe to bridge mode? or make a new thread? and what r u waiting for? tell me how to covert lol :lol:
    I changed my connection to Bridge mode just now. It seems faster than pppoe mode. I can only tell you how to do it in ut300r2u modem.

    I have never got this much speed in pppoe mode.

    Last edited by Archer; 5th November 2008 at 08:22 PM.

  34. #34
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default



    see my download speed... sadly my upload speed is less. wonder y...
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  35. #35
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Posts
    2,946

    Default

    That's weird. The upload speed is really low. Are you still going for Bridge mode ?
    I am going to change to 500 C+ plan soon. So even I am interested in this.

  36. #36
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default

    i m in poppe mode..right now.. wanna go to bridge mode.. but i dont know how...

    see i checked the speed test again..
    upload is very less.. i guess..
    Last edited by Mr.Tooth Fairy; 5th November 2008 at 10:14 PM. Reason: Automerged Doublepost
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  37. #37
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Posts
    2,946

    Default

    Quote Originally Posted by Mr.Tooth Fairy View Post
    i m in poppe mode..right now.. wanna go to bridge mode.. but i dont know how...

    see i checked the speed test again..
    upload is very less.. i guess..
    You should start a new thread for this in the BSNL section.
    For the first time I saw this icon in Utorrent after switching to bridge mode.
    Last edited by Archer; 5th November 2008 at 10:39 PM.

  38. #38
    Platinum Member Mr.Tooth Fairy's Avatar
    Join Date
    Aug 2008
    Posts
    1,523

    Default

    no right now i m in poppe mode.. still tht port forwarded icon is alright........green tick..


    and i am using modem ZXDSL 531B .. bsnl ppl provided it,
    Am just the dreamer,,,, I dream my life away..:confused::confused:

  39. #39
    Platinum Member
    Join Date
    Oct 2008
    Posts
    1,662

    Default

    sometimes this happens. utorrent port stays blocked.
    try changing the port from option menu. after a few changes, it generally becomes open.

  40. #40
    Platinum Member Archer's Avatar
    Join Date
    Aug 2008
    Posts
    2,946

    Default

    My utorrent ports are open. The connection is in Bridge mode now. Everything is working fine. Even though the speed didn't change much. The downloads are for some reason faster than before. I am loving Bridge mode.

  41. #41
    LEARNER
    Join Date
    Aug 2007
    Posts
    15,263

    Default

    @Mr Tooth_Fairy
    http
    ...with screen shots .
    ....Amend suitably for BSNL and timings.
    .....Add to book marks.

  42. #42
    Junior Member
    Join Date
    Oct 2008
    Posts
    3

    Default Scheduled tasks not running

    HI
    the script and the .exe file i made using AutoHotKey run fine when i double click it.
    Problem is that they dont run in the scheduled tasks.
    What could be wrong?

    i am the only user of my pc and hence dont have any pass to log on... also its obvious my profile is that of the admins.. so i dnt understand wht could b wrong....

    helpsssssssssssss

  43. #43
    Junior Member
    Join Date
    May 2008
    Posts
    4

    Default

    Some has the script for linux? I use opensuse 10.3

  44. #44
    Junior Member
    Join Date
    Dec 2008
    Posts
    3

    Smile Scheduling Automatic Disconnect/Reconnect/Reboot of BSNL modem

    Hello Everyone,

    I know this is a much searched and discussed topic in these forums. However I would like to present an improved autohotkey code that overcomes the shortcomings of the previous ones.

    Prvious methods: (search in forum)
    1. Using TST.exe like here --(triband-nu-solution-automated-router-reboot)
    2. Using AutohotKey like here -- (automatic-rebooting-router-2-am-8-am)

    The problem with the above two methods :
    1) The Telnet Scripting Tool waits for characters before sending the next command. Sometimes it gets struck here.
    2) In the AHK method, The send/sendkey commands send the string inputs only to the currently active window. Hence if the telnet window is not the current window (topmost) or if you have locked your desktop, the inputs are not sent to telnet window and hence the script is not executed.
    3) Further any input from the keybord/mouse while the autohotkey script is running interferes with the command being sent to telnet window and may screw up the automation.
    4) Also when you reboot the modem in addition to internet the existing LAN connections are also broken.
    So as an improvement that takes care of these problems I present here an autohotkey script.This is by far the most failsafe method. It does not wait for characters to appear like the TST.exe method nor does one have to worry about the telnet being the active window(so u can lock ur desktop too) and of course you dont need to reboot the modem(which takes time, disconnects LAN and may be injurious to ur modem )

    I have UTStarcom WA3002G4 modem with BSNL connection.So I will illustrate using this.

    edit: Note :the 5th and 6th lines of code as displayed below should be on the same line in notepad
    __________________________________________________ _______________
    Code 1: Disconnect from the internet

    SendMode Input
    Run telnet.exe
    WinWait, C:\WINDOWS\system32\telnet.exe
    BlockInput, on
    ControlSend , ahk_parent, o{SPACE}192.168.1.1{ENTER}, C:\WINDOWS\system32\telnet.exe
    WinWait, Telnet 192.168.1.1
    ControlSend , ahk_parent, admin{ENTER}, Telnet 192.168.1.1
    ControlSend , ahk_parent, admin{ENTER}, Telnet 192.168.1.1
    ControlSend , ahk_parent, ppp config 0.0.35 1 down{ENTER}, Telnet 192.168.1.1
    BlockInput, off
    sleep 1000
    WinClose Telnet
    __________________________________________________ _______________
    Code 2: Reconnect to the internet

    SendMode Input
    Run telnet.exe
    WinWait, C:\WINDOWS\system32\telnet.exe
    BlockInput, on
    ControlSend , ahk_parent, o{SPACE}192.168.1.1{ENTER}, C:\WINDOWS\system32\telnet.exe
    WinWait, Telnet 192.168.1.1
    ControlSend , ahk_parent, admin{ENTER}, Telnet 192.168.1.1
    ControlSend , ahk_parent, admin{ENTER}, Telnet 192.168.1.1
    ControlSend , ahk_parent, ppp config 0.0.35 1 up{ENTER}, Telnet 192.168.1.1
    BlockInput, off
    sleep 1000
    WinClose Telnet
    __________________________________________________ _______________
    Code 3: Reboot the modem (If incase u need it)

    SendMode Input
    Run telnet.exe
    WinWait, C:\WINDOWS\system32\telnet.exe
    BlockInput, on
    ControlSend , ahk_parent, o{SPACE}192.168.1.1{ENTER}, C:\WINDOWS\system32\telnet.exe
    WinWait, Telnet 192.168.1.1
    ControlSend , ahk_parent, admin{ENTER}, Telnet 192.168.1.1
    ControlSend , ahk_parent, admin{ENTER}, Telnet 192.168.1.1
    ControlSend , ahk_parent, reboot{ENTER}, Telnet 192.168.1.1
    BlockInput, off
    sleep 1000
    WinClose Telnet

    __________________________________________________ _______________

    Note that
    1.the words in bold are particular to your case. first admin is username , 2nd is password.
    2.between the commands blockinput on and blockinput off, u will not be able to move your mouse from a brief time (<500msec)
    3.Always try to use only the disconnect and reconnect codes (less time consuming and more efficient)

    So all u need to do is get autohotkey(Google for Autohotkey installer),install it , rightclick -> create new ahk script, copy paste the above codes, then schedule them using windows scheduler (u can run the .ahk file directly or make exe).(Disconnect at 1.59/7.59 am, Reconnect at 2.01/8.01 am)

    Also note that disconnecting and reconnecting changes ur ip address. So the code is good for rapidshare.

    For use with other modems replace the underlined commands with equivalent commands for the particular modem. you can find them by manually tenetting to 192.168.1.1 and going through various commands in your modem (type 'help' or '?')(especially look for ppp connect/disconnect commands) like I did or google for it.
    Hope this helps someone.
    Last edited by mgtm7m; 18th December 2008 at 10:25 PM.

  45. #45
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    Default

    Thank you. Repo given.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  46. #46
    Junior Member
    Join Date
    Dec 2008
    Posts
    3

    Default

    Thanks Just4Kix,
    Just want to add some more info here.

    The above automatic disconnect/reconnect is obviously for always on modem using PPPoE.From your post titled 'Solution for multiple machines connecting to same BB connection' since the values of vci/vpi are different for bsnl/mtnl, one needs to modify the command given to modem as well.
    syntax of following command :
    ppp config 0.0.35 up

    follows

    ppp config port.vpi.vci [up/down]
    (note that the command/syntax depends upon the modem u have.)
    the port is generally 0.(at least in my case).vpi, vci depends on ISP. you can find urs in ur modem configuration page at 192.168.1.1 (default) -> advanced setup -> WAN -> ATM PVC configuration (or similar).

  47. #47
    Junior Member
    Join Date
    Oct 2008
    Posts
    10

    Default

    Does the above reboot code for UTStarcom WA3002G4 actually work ? I dont have the modem but if it works i will buy it. Or else i will buy a bsnl type 1 modem which supports Imran's Broadband utility. Is Dlink dsl 502T still in market now ? By the way do all Bsnl type 1 modems work with Imran's Broadband utility ?

  48. #48
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Posts
    11,632

    Default

    Everything in this guide has been tested on UT-300R2U (version 1, version 2.2) and WA3002G4.

    Imran's utility will also work.
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My DVDs | My Blu-Rays | My Blogs
    -------------------------------------------------------------------------------------------

  49. #49
    Junior Member
    Join Date
    Jan 2009
    Posts
    4

    Question In Telnet modems password is not working

    Hi, I use GLB-502T modem

    As said by Admin, I tired to Run>>telnet>>o 192.168.1.1>>Busybox on localhost login:>>admin>>password:>>I entered my password

    Now as per Admin article I should get "#" symbol where I should type "reboot". But I get message "Login incorrect".

    But when I give those userid and password in the browser when its url is 192.168.1.1, I am able to go into modem's web page (configuration page)

    Please see attachment for Telnet screen details. Can any one help me?

    Thankyou,
    Sundeep

  50. #50
    Amor vincit omnia
    Join Date
    Dec 2007
    Posts
    3,141

    Default

    This thread just popped up in the search results, hence am commenting on it.

    Are u sure about the password being entered in the command prompt. Try manually telnetting the router, enter the username/password combination which u use to access the web interface. It should work. Else try resetting the modem. Make sure to backup connection details before resetting.

  51. #51
    Bronze Member
    Join Date
    Dec 2008
    Posts
    108

    Default

    Quote Originally Posted by sundeep_sarathy View Post
    Now as per Admin article I should get "#" symbol where I should type "reboot". But I get message "Login incorrect".
    The only reason you can get the error "Login incorrect" is that either you have typed the wrong Username or wrong Password(or both wrong).

    from your screenshot also it looks like you have not typed anything when prompted for password.

    So it will be better for you try repeat the entire process.. and if then also you face this problem.. please write here.

  52. #52
    Amor vincit omnia
    Join Date
    Dec 2007
    Posts
    3,141

    Default

    D-Link routers have this nifty feature, while telnetting and while the username/password is being entered, the username is listed. But the password is kept blank. Hence in the screenshot the password is blank.

  53. #53
    Bronze Member
    Join Date
    Dec 2008
    Posts
    108

    Default

    Quote Originally Posted by cool_techie_tvm View Post
    D-Link routers have this nifty feature, while telnetting and while the username/password is being entered, the username is listed. But the password is kept blank. Hence in the screenshot the password is blank.
    Thanks for the ^^ info...

    Anyway.. through googling i came to know that the the real problem is in the username..
    the username for this modem is "root", and the password is the same which works in web interface.

  54. #54
    Amor vincit omnia
    Join Date
    Dec 2007
    Posts
    3,141

    Default

    What baffles me in http://www.indiabroadband.net/broadb...html#post98654 is that the poster says he is able to login to webinterface using the username/password combination. Or is the telnet username/password different from the ones used to access the web interface?

  55. #55
    Bronze Member
    Join Date
    Dec 2008
    Posts
    108

    Default

    Actually this is a perfect example of a really poor implementation by Dlink.. where they allow "Admin" as the username with web interface but "root" as the username for telnet session.(both sharing the same password)

  56. #56
    Amor vincit omnia
    Join Date
    Dec 2007
    Posts
    3,141

    Default

    I possess a D-Link 2540T router. I just tried admin/*password* as well as root/*password* in telnet console. And guess what? It worked. I have always used admin/*password* for rebooting the modem. Thanks to this thread i came to know about the second username/password combination.

  57. #57
    LEARNER
    Join Date
    Aug 2007
    Posts
    15,263

    Default

    @superprash2003
    one more user password.

  58. #58
    Bronze Member
    Join Date
    Dec 2008
    Posts
    108

    Default

    Quote Originally Posted by essbebe View Post
    @superprash2003
    one more user password.


    Is there other Username and Passwords also, other than "Admin" and "root"?

  59. #59
    Gold Member
    Join Date
    Apr 2007
    Posts
    763

    Default

    @cool_techie_tvm
    D-link router are running on busybox. that why their username is "root" instead of admin in web interface. and like all linux terminals busybox does not show passwords
    if you are familar with linux, then you would understand.

  60. #60
    Amor vincit omnia
    Join Date
    Dec 2007
    Posts
    3,141

    Default

    As u might be knowing from my linux queries in other forums, i am no pro in linux. Still sticking with Ubuntu/Fedora because of ease of use.

    U might be surprised to know that my D-Link router supports admin,root as username. This is what i had posted in post #56.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 7
    Last Post: 13th December 2012, 10:55 PM
  2. MTNL ADSL2 GLB-502T Router Rebooting
    By pawanchoure in forum MTNL broadband
    Replies: 5
    Last Post: 11th December 2009, 12:21 AM
  3. Replies: 7
    Last Post: 1st May 2009, 02:53 PM
  4. Need help with scheduling rebooting of Huawei router
    By kinind in forum BSNL broadband
    Replies: 31
    Last Post: 2nd March 2009, 06:22 PM
  5. want information abt rebooting router in590 nu
    By aashu_gpt in forum MTNL broadband
    Replies: 1
    Last Post: 27th March 2007, 04:38 AM