Results 1 to 19 of 19

Thread: Automatic Router Reboot & Scheduling torrent clients (tutorial)

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Age
    25
    Liked
    0 times
    Posts
    18

    Post Automatic Router Reboot & Scheduling torrent clients (tutorial)

    This is how you can schedule ur router reboots with windows and save yourself from manual rebooting. Also people using night unlimited could greatly increase their download efficiency.
    First i would like to mention that there is already a topic in the forum where the procedure has been mentioned (this is where i learned it myself).

    But the difference is that I am going to give a step by step tutorial and also the other topic is hard to find (i would give the credit to cyberwiz for his informative post)

    First of all u need to download the scripting tool Download Here. Extract the tool to a folder. Now create a .txt file with any name in the same folder. This file will contain the script which the tool would use to give commands to your router using telnet.
    Now, the scripts for all routers r not same but you can write your own script easily if u know the working. Mine is DSL-502T
    This is how my telnet window looks like when i reboot (to run telnet go to start>run>type "telnet 192.168.1.1" (if that is ur IP)). Exclude the quotes. If u know how to reboot using telnet then the scripts would be lot easier to understand



    Now, if my IP is 192.168.1.1 which is default for most routers and 23 is the port to which telnet connects, this is what i would type in the .txt file i created

    192.168.1.1 23
    WAIT "login"
    SEND "admin\m"
    WAIT "Password"
    SEND "admin\m"
    WAIT "#"
    SEND "reboot\m"
    WAIT "type anything here\m"

    The last line of the script is for telnet to wait & automatically exit after complete disconnection(without it telnet would exit without rebooting)
    To understand the scripting more u should run TST10.exe that came with the tool and read the syntax (or you can just copy paste if your telnet window looks exactly like mine)
    Let for eg. i named the .txt file "Reboot" and placed it in the directory "F:\store\TST10\tst10\" then to run the file go to start>run>F:\store\TST10\tst10\TST10.exe /r:Reboot.txt
    If your router reboots then congrats, if not recheck the script.
    Now to schedule the reboots
    Go to control panel(classic view)>scheduled tasks . Click "Add Scheduled Task". Browse & choose TST10.exe .Follow the steps but before clicking Finish check the option "Open advanced properties for this task when i click finish"
    1. In the Task Tab
    (i) In front of Run type the task i.e "F:\store\TST10\tst10\TST10.exe /r:Reboot.txt"
    2. In Schedule Tab
    (i)Choose the Start Time and if u want the task to run daily or with some other interval
    (ii)Click Advanced button and check the option repeat task
    (iii)Chose the interval u want between 2 runs
    3. Click OK for both windows
    4. Now right click and run the task

    If it runs u were successful, though wait for it to run at the scheduled time for 100% guarantee that it would work

    You can use the scheduled tasks to run torrent client at 2 am every day
    For eg. i use utorrent and the directory for my task is "C:\Program Files\uTorrent\uTorrent.exe". Make sure u stop all the torrents u dont want to download or upload (by stop i don't mean to pause them).
    To Shutdown your PC at 8 am use this Auto Shutdown Program Download Here

    To Keep a track of how the automatic reboot is working for you between 2 am and 8 am, u would need a software that can record ur speed
    I would recommend "Bandwidth Monitor v3.4" . It has a rates recorder which saves ur download rates in .txt or .csv format. Its not free though, but u can use P2P after all

    Important Notes :
    1. If ur router dies frequently keep the interval between 2 reboots less. Use the Bandwidth Monitor to know the right interval for you.
    2. The automatic reboot would work only if it is able to connect to ur router.
    To check that, try connecting using ur browser (IE, firefox), if it fails to connect to 192.168.1.1, then even telnet wont be able to connect and give commands. You need to reboot manually in that case.
    3. The above disconnections occur mostly when the router is not rebooted for a long time. That is also the reason i keep my interval 30 mins - 1hr during bad days
    4. Sometimes after reboot, the torrent client is unable to connect to any seeds, although that happens rare or maybe that happens only with me
    Don't worry, my torrent client works perfectly after reboots 90% of time, Often all it needs is some time, to get back to work.

    That's all ! Have a nice day
    Last edited by Admin; 09-16-08 at 05:52 PM.

  2. #2
    Platinum Member whitestar_999's Avatar
    Join Date
    Jan 2008
    Liked
    0 times
    Posts
    2,274

    Default

    SEND "reboot\m"
    just like to add a little info here.this particular line will be different for different modems because reboot command is not same in all modems.you can find out your modem's reboot command by using telnet & looking into system commands.

  3. #3
    Bronze Member
    Join Date
    Jan 2009
    Liked
    0 times
    Posts
    119

    Default

    Nicely written.

  4. #4
    Junior Member
    Join Date
    Apr 2009
    Age
    24
    Liked
    0 times
    Posts
    22

    Default a problem..

    i have a problem..

    as soon as i execute this script in RUN..

    the TELNET opens and it just remains blank.. in the last line, it says WAITING FOR: LOGIN..


    and i hv to manually type the id and password..

    could some throw light on tis ???

  5. #5
    LEARNER
    Join Date
    Aug 2007
    Liked
    20 times
    Posts
    15,295

    Default

    See modified script
    Re: ITI DNA-A211-1 modem reboot using tst10
    @superprash2003
    Try this
    USE THIS FOR UT300R2U

    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

  6. #6
    Junior Member
    Join Date
    Apr 2009
    Age
    24
    Liked
    0 times
    Posts
    22

    Thumbs up thanks..

    thanks superprash..

    but anyway i got a simple way referred by a member over here, bu configuring the IE to reboot with a simple magic, instead of accessing TELNET...

    thts de best one for uTSTARCOM WA3002G4...

    i uld recommend tht method instead of other things

  7. #7
    Junior Member
    Join Date
    Dec 2007
    Age
    25
    Liked
    0 times
    Posts
    29

    Default

    I am not able to access telnet. when i connect to my router it says Login: and then connection to host lost. i have telnet enabled and i am using vista. moreover my router Huawei MT841 is not resetting.

  8. #8
    LEARNER
    Join Date
    Aug 2007
    Liked
    20 times
    Posts
    15,295

    Default

    http://www.indiabroadband.net/bsnl-b...ng-script.html (Help regarding Modem Rebooting Script!!)

    FROM POST nO 2 :
    Quote:
    SEND "reboot\m"
    just like to add a little info here.this particular line will be different for different modems because reboot command is not same in all modems.you can find out your modem's reboot command by using telnet & looking into system commands.

  9. #9
    Junior Member
    Join Date
    Dec 2007
    Age
    25
    Liked
    0 times
    Posts
    29

    Default

    i dont have a problem with script....i m having problem accessing my router from telnet....when i use 3rd party telnet client i am able to telnet th router....but not by windows telnet client.....and i cant automate other telnet clients.

  10. #10
    Junior Member
    Join Date
    Apr 2009
    Age
    24
    Liked
    0 times
    Posts
    22

    Default script..

    @DCOSMOPOLITAN

    in windows, u hv to activate two type of TELNET server and client, do that in CONTROL PANEL > PROGRAMS and FEATURES > TURN ON OR OFF WINDOWS FEATURES

    @ESSBEBE

    the modified script is workin, but it stopping at SENDING : REBOOT and does not reboot it..

  11. #11
    Junior Member
    Join Date
    Dec 2007
    Age
    25
    Liked
    0 times
    Posts
    29

    Default

    @jayanth100

    i have already enabled telnet client and telnet server in vista
    i can start the telnet client but i am not able to access my router
    my firewall is off too
    telnet access to router enabled


    anyways thanks you alll for ur valuable help...

    my problem for rebooting has been solved but by using macro recorders
    they can record every actions of urs and u can later schedule it
    a must try for automated downloads or any other autamation!!

    google it out "Macro Recorder"

  12. #12
    Junior Member
    Join Date
    Apr 2009
    Age
    24
    Liked
    0 times
    Posts
    22

    Default macro recorder..

    so does tht work .. .no errors rite??

    could u plz elaborate on scripting.. it uld b helpful... i m gng going througha macro recorder program - JIT MACRO RECORDER...

    post some screenshots
    Last edited by jayanth100; 04-07-09 at 03:33 PM.

  13. #13
    Junior Member
    Join Date
    Dec 2007
    Age
    25
    Liked
    0 times
    Posts
    29

    Default

    I am using this "Macro Expert" program!!
    There are several other programs available like u mentioned that jot recorder
    but i found Macro Expert the best cos it has inbuilt scheduler!!
    download and install this software and record a macro!!
    recording a macro means u can record all your work u doing on desktop

    for eg. to reboot the router:

    1.start macro recording
    2.open firefox or ur browser
    3.open your router 192.168.1.1 [or whatever it is]
    4.enter username and password
    5.depending on ur modem model click on save & reboot.
    6.close browser
    7.stop recording

    now there is a macro recording u just created. name it as reboot or wateva

    now schedule it to run on 02:10 Hrs.
    so it will repeat the same thing u have done and it will reboot your router
    simple
    i hope this is useful and dont cause any problem to router by continuous menu rebooting by saving settings!!

    use this program and ask if any problem or queries!! :thumbup1:

  14. #14
    Junior Member
    Join Date
    Apr 2009
    Age
    24
    Liked
    0 times
    Posts
    22

    Default it rocks..

    Quote Originally Posted by dcosmopolitan View Post
    I am using this "Macro Expert" program!!
    There are several other programs available like u mentioned that jot recorder
    but i found Macro Expert the best cos it has inbuilt scheduler!!
    download and install this software and record a macro!!
    recording a macro means u can record all your work u doing on desktop

    for eg. to reboot the router:

    1.start macro recording
    2.open firefox or ur browser
    3.open your router 192.168.1.1 [or whatever it is]
    4.enter username and password
    5.depending on ur modem model click on save & reboot.
    6.close browser
    7.stop recording

    now there is a macro recording u just created. name it as reboot or wateva

    now schedule it to run on 02:10 Hrs.
    so it will repeat the same thing u have done and it will reboot your router
    simple
    i hope this is useful and dont cause any problem to router by continuous menu rebooting by saving settings!!

    use this program and ask if any problem or queries!! :thumbup1:

    dude ! it rocks.. this is de best software for any automation work..
    i dont prefer scripts.. it has lagging and error-prone.. thanks.. :thumbup1:

  15. #15
    Junior Member
    Join Date
    Dec 2007
    Age
    25
    Liked
    0 times
    Posts
    29

    Default

    yup this is the best automation software i have ever used....but u gotta be careful using this..such as dont change the shortcut location of mozilla or any other thing....cos it makes a script using mouse location relative to screen ...otherwise no problems in it!!

  16. #16
    Platinum Member
    Join Date
    Feb 2008
    Liked
    0 times
    Posts
    2,766

    Default

    right.. that is a major disadvantage.

  17. #17
    Junior Member
    Join Date
    Apr 2009
    Age
    24
    Liked
    0 times
    Posts
    22

    Default wht to say?

    @superprash2003...


    its better than telnetting !!!..

    try it out , 'coz this MACRO EXPERT software is gr8.. it logs mouse strokes and buttons clicked.... its simple, effective, re-play it at least three times for ur satisfaction dude...

  18. #18
    Platinum Member
    Join Date
    Feb 2008
    Liked
    0 times
    Posts
    2,766

    Default

    oh well , my telnet scripts are working perfectly.. its a great alternative though.. and has many more applications, like automating various tasks..

  19. #19
    Silver Member
    Join Date
    Apr 2008
    Age
    25
    Liked
    0 times
    Posts
    418

    Smile

    Vista telnet program is the only one which shows the "connection to the host lost" error .........
    otherwise for other operating system the rebooting script works fine .............

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Speedup your torrent downloads
    By gaggan4392 in forum BSNL broadband
    Replies: 25
    Last Post: 10-25-11, 01:19 PM

Posting Permissions

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