India Broadband Forum


Automatic Router Reboot & Scheduling torrent clients (tutorial)

This is a discussion on Automatic Router Reboot & Scheduling torrent clients (tutorial) within the BSNL broadband forums, part of the Broadband Internet Service Providers category; This is how you can schedule ur router reboots with windows and save yourself from manual rebooting. Also people using ...

Go Back   India Broadband Forum > Indian Broadband Forums > Broadband Internet Service Providers > BSNL broadband

India Broadband Forum


BSNL broadband Bsnl broadband internet connection and modems, routers and other bsnl dataone related issues can be discussed here.

                      

Reply

 

LinkBack Thread Tools Display Modes
Old 07-10-08, 08:35 PM   #1
Junior Member
 
Join Date: Jul 2008
Age: 23
Posts: 18
Rep Power: 2
Procrush is on a distinguished road
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.
Procrush is offline   Reply With Quote
Old 07-10-08, 09:13 PM   #2
Platinum Member
 
whitestar_999's Avatar
 
Join Date: Jan 2008
Location: UP(west)
Posts: 1,971
Blog Entries: 1
Rep Power: 3
whitestar_999 will become famous soon enough
Default

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.
whitestar_999 is offline   Reply With Quote
Old 03-18-09, 04:02 PM   #3
Bronze Member
 
limpu.cool's Avatar
 
Join Date: Jan 2009
Posts: 124
Rep Power: 1
limpu.cool is on a distinguished road
Default

Nicely written.
limpu.cool is offline   Reply With Quote
Old 04-05-09, 02:30 AM   #4
Junior Member
 
Join Date: Apr 2009
Age: 22
Posts: 17
Rep Power: 1
jayanth100 is on a distinguished road
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 ???
jayanth100 is offline   Reply With Quote
Old 04-05-09, 08:14 AM   #5
Platinum Member
 
Join Date: Aug 2007
Location: Chennai
Posts: 4,234
Rep Power: 12
essbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of light
Default

See modified script
Quote:
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
essbebe is offline   Reply With Quote
Old 04-05-09, 07:50 PM   #6
Junior Member
 
Join Date: Apr 2009
Age: 22
Posts: 17
Rep Power: 1
jayanth100 is on a distinguished road
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
jayanth100 is offline   Reply With Quote
Old 04-06-09, 08:21 AM   #7
Junior Member
 
dcosmopolitan's Avatar
 
Join Date: Dec 2007
Location: Jodhpur, India
Age: 23
Posts: 26
Rep Power: 2
dcosmopolitan is on a distinguished road
Send a message via AIM to dcosmopolitan Send a message via MSN to dcosmopolitan Send a message via Yahoo to dcosmopolitan
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.
dcosmopolitan is offline   Reply With Quote
Old 04-06-09, 09:00 AM   #8
Platinum Member
 
Join Date: Aug 2007
Location: Chennai
Posts: 4,234
Rep Power: 12
essbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of light
Default

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

FROM POST nO 2 :
Quote:
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.
essbebe is offline   Reply With Quote
Old 04-06-09, 10:47 PM   #9
Junior Member
 
dcosmopolitan's Avatar
 
Join Date: Dec 2007
Location: Jodhpur, India
Age: 23
Posts: 26
Rep Power: 2
dcosmopolitan is on a distinguished road
Send a message via AIM to dcosmopolitan Send a message via MSN to dcosmopolitan Send a message via Yahoo to dcosmopolitan
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.
dcosmopolitan is offline   Reply With Quote
Old 04-07-09, 08:16 AM   #10
Junior Member
 
Join Date: Apr 2009
Age: 22
Posts: 17
Rep Power: 1
jayanth100 is on a distinguished road
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..
jayanth100 is offline   Reply With Quote
Old 04-07-09, 08:30 AM   #11
Junior Member
 
dcosmopolitan's Avatar
 
Join Date: Dec 2007
Location: Jodhpur, India
Age: 23
Posts: 26
Rep Power: 2
dcosmopolitan is on a distinguished road
Send a message via AIM to dcosmopolitan Send a message via MSN to dcosmopolitan Send a message via Yahoo to dcosmopolitan
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"
dcosmopolitan is offline   Reply With Quote
Old 04-07-09, 08:45 AM   #12
Junior Member
 
Join Date: Apr 2009
Age: 22
Posts: 17
Rep Power: 1
jayanth100 is on a distinguished road
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.
jayanth100 is offline   Reply With Quote
Old 04-07-09, 09:48 AM   #13
Junior Member
 
dcosmopolitan's Avatar
 
Join Date: Dec 2007
Location: Jodhpur, India
Age: 23
Posts: 26
Rep Power: 2
dcosmopolitan is on a distinguished road
Send a message via AIM to dcosmopolitan Send a message via MSN to dcosmopolitan Send a message via Yahoo to dcosmopolitan
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!!
dcosmopolitan is offline   Reply With Quote
Old 04-07-09, 03:32 PM   #14
Junior Member
 
Join Date: Apr 2009
Age: 22
Posts: 17
Rep Power: 1
jayanth100 is on a distinguished road
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!!

dude ! it rocks.. this is de best software for any automation work..
i dont prefer scripts.. it has lagging and error-prone.. thanks..
jayanth100 is offline   Reply With Quote
Old 04-07-09, 04:11 PM   #15
Junior Member
 
dcosmopolitan's Avatar
 
Join Date: Dec 2007
Location: Jodhpur, India
Age: 23
Posts: 26
Rep Power: 2
dcosmopolitan is on a distinguished road
Send a message via AIM to dcosmopolitan Send a message via MSN to dcosmopolitan Send a message via Yahoo to dcosmopolitan
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!!
dcosmopolitan is offline   Reply With Quote
Old 04-07-09, 10:30 PM   #16
Platinum Member
 
Join Date: Feb 2008
Posts: 2,692
Rep Power: 5
superprash2003 will become famous soon enoughsuperprash2003 will become famous soon enough
Default

right.. that is a major disadvantage.
superprash2003 is offline   Reply With Quote
Old 04-07-09, 10:56 PM   #17
Junior Member
 
Join Date: Apr 2009
Age: 22
Posts: 17
Rep Power: 1
jayanth100 is on a distinguished road
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...
jayanth100 is offline   Reply With Quote
Old 04-08-09, 09:09 PM   #18
Platinum Member
 
Join Date: Feb 2008
Posts: 2,692
Rep Power: 5
superprash2003 will become famous soon enoughsuperprash2003 will become famous soon enough
Default

oh well , my telnet scripts are working perfectly.. its a great alternative though.. and has many more applications, like automating various tasks..
superprash2003 is offline   Reply With Quote
Old 04-08-09, 09:50 PM   #19
Silver Member
 
Join Date: Apr 2008
Location: delhi
Age: 23
Posts: 420
Rep Power: 2
eruptionjoojo is on a distinguished road
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 .............
eruptionjoojo is offline   Reply With Quote
Reply

Tags
automatic, reboot, record, router, speed

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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
TATA WIMAX BB FEEDBACK and Request for router configuration password ! bala-linux Tata Indicom broadband 27 10-28-09 06:35 PM
Tata Indicom Telenet Tndsl 2120 Router And Linksys Wireless Router Settings ziahaq21 Tata Indicom broadband 7 08-08-09 06:17 PM
Triband NU Solution, Automated router reboot Admin MTNL broadband 23 09-25-08 03:41 PM
Can we reboot the router this way?? sachin007 BSNL broadband 10 02-01-08 11:06 AM


All times are GMT +5.5. The time now is 09:11 PM.


India Broadband Forum