This will help you reboot your adsl modem or router..Bsnl/Mtnl users can use this to take advantage of the 2-8am free downloading..Just make sure you run this script at 2:10am and 7:50am..the process is very simple.
Firstly, Download the telnet scripting tool from HERE
Extract the zip file and place it in a folder say tst10 in C drive.. so the location of the files you extracted should be in C:\tst10 ..Now create a new text file(*.txt) in notepad and insert the following lines in it..
USE THIS FOR HUAWEI MT800,880 ETC
192.168.1.1
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "admin\m"
WAIT ">"
SEND "system restart\m"
WAIT ">"
USE THIS FOR HUAWEI MT882
192.168.1.1 23
WAIT "login"
SEND "root\m"
WAIT "Password"
SEND "admin\m"
WAIT ">"
SEND "shell\m"
WAIT "#"
SEND "reboot\m"
WAIT ""
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
USE THIS FOR SIEMENS sl2_141
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 "13\m"
WAIT
SEND "13\m"
WAIT
SEND "1\m"
WAIT
SEND "1\m"
WAIT
SEND "exit\m"
WAIT
SEND "exit\m"
NOTE: above script is written considering that your modem/router ip address is 192.168.1.1 and username and password is admin.These are default values, incase you have changed them, please change it in the script also.
Save this to a file say script.txt so script.txt should be in C:\tst10 .. Now create a batch file(*.bat) in notepad and enter the following lines
cd c:\tst10
tst10.exe /r:script.txt
Let it be saved as restart.bat .To save it as a BATCH file.. click on file->save as and in the file name type "restart.bat" including the quotes..Place restart.bat in C:\tst10 .. Now go to control panel and go to schedule tasks.. and add this batch file (restart.bat) to run at 2:10am and 7:50am respectively..Thats it your done..
NOTE:Incase you have Huawei or UT300R2U use the appropriate scripts..Incase you have any other modem better to use the Huawei script and edit it a bit..If you notice in the Huawei script .. the command to restart is "system restart" and in the UT300R2U the command is "reboot"..So the command can vary from model to model.. Incase you have any other model please google it and find out the reboot command and replace it accordingly!!
|
204
comments
]
204 comments
«Oldest ‹Older 1 – 200 of 204 Newer› Newest»Hey Thanks a million for the tip mate!! I had literally swept the entire net for a solution on rebooting the ADSL Router, your TelNet Script did the trick. I dont think I can express how grateful I am. Thanks again buddy
Thanks a lot dude.. you save me a few bucks.. great job!!!
hi i m having sl2_141 modem. how to do in that
Im not too sure for your modem, cause it varies from modem to modem.Firstly try all the three different scripts shown.. if that doesnt work.. then in your command prompt type telnet and type open 192.168.1.1 .. and enter admin as username and password.. then look for the help section which should provide you with the restart command.Use that command and modify the above code
check the telnet menu and help me
[IMG]http://i256.photobucket.com/albums/hh183/rxrakesh/telnet2.jpg[/IMG][IMG]http://i256.photobucket.com/albums/hh183/rxrakesh/telnet1.jpg[/IMG]
[IMG]http://i256.photobucket.com/albums/hh183/rxrakesh/telnet.jpg[/IMG]
Looking at your screenshots, the Command for your modem seems to be "reboot" without the quotes ...so if you type reboot there, you should see your router rebooting...
i m attaching the screenshot.help me
http://i256.photobucket.com/albums/hh183/rxrakesh/help.jpg
please post the current code you are using, i'll try modifying it..Try 13 also instead of reboot..
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 "13\m"
WAIT
SEND "13\m"
WAIT
SEND "1\m"
WAIT
SEND "1\m"
WAIT
SEND "exit\m"
WAIT
SEND "exit\m"
i am able to reboot with this code. hit and trial helped
Thats the way to go!!Thanks for posting!!
cheers..
I found your script working after many failed attempts with other scripts...
Thanks a lot dude.........
hey thx a loooot....works wonders...
Thank u very much.......... :-)
amazin.. trully amazin... omg ppl suggested crazy things..but this is gr8... tks a loooot...
glad it helped!!
cheers,
prash
Hi Prash
I have a Huwei MT841. OS: Vista
Above process returns following err from application TST10:-
Quote
" is not a valid integer value
Unquote
Wish you could help
this is the command to reboot for mt841 .. so modify the script and use this instead of system restart
pppoe set transport 1 disabled\m
also change WAIT "xxx" to WAIT "*"
Hi Prash,
I am unable to Telnet my router from my PC
OS: Vista (have enabled both telnet client, and then later telnet server) Router:Huawei MT841
Telnet is enabled on router also.... port 23 is permitted on my firewall (also tried with my firewall down)
initial connection takes place ..'Login' prompt appears... but the moment I press even one key.... it says connection to host lost.
I have also tried the above script using TS10, however I see my login being sent, and sometime even the password flashes on screen, but soon thereafter the window closes without restarting my router. it all happens in less than 0.5 seconds perhaps.
Could you please help me
well this could happen if you try to type a wrong command.. also try resetting your router . have you entered the correct username and password? try entering username and password as support .. also try username and password as user
Hi! Prash,
I have a USR USR9115 modem/router. My script starts running and I think that it enters the username and password but then it stops saying Login incorrect.
I have attached below an image of my error msg n also the coding in my .txt file.
[IMG]http://i667.photobucket.com/albums/vv37/darkknight1985/reboot.jpg[/IMG]
What must I change to make this work?
Thanks in advance!
Anjana.
Hey,
open http://192.168.1.1 and then type username and password as admin . Are you able to Login?
Prash..
Hi! Prash,
Yup! I'm able to login. These are the correct username n password. It seems when the script runs and both the Username n password are entered but at the verification it fails.
Nothing wrong with the username n Password. I thought there might be something wrong with my syntax.
Thanks 4 the quick reply!
Anjana
loads of thanks for you it saved my time
I followed the instructions given here and was able to complete 90% of the process. Need help on the last part. Have a DNA-A211-I (wifi 4 port) modem from ITI(bsnl). When I run the scheduled task, it opens a svchost.exe window and the tst window,
>
>BCM96338 ADSL Router
>Login:
and Current state: Waiting for: login [Abort]
How do I skip this stage? Tried various changes but none worked. Assume login is "admin" and password is "hello". What might be the code I need to use?
Use the code given for ut300r2u above.. replace the given password with your password
Tried but still not working
Is the code correct? (assume password is hello)
192.168.1.1 23
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "\hello\m"
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "hello\m"
WAIT
SEND "reboot\m"
WAIT
Well it looks correct.. Could you post a screenshot when it gets stuck and isnt moving further , so i know exactly at which step it is stuck.
http://img11.imageshack.us/img11/2752/rebootj.jpg
Check your code again.. your first line seems to have two "" after Login : instead of one " . Thats why its waiting for Login:" instead of Login:
I removed the spaces after every "
And now I get this:
BCM96338 ADSL Router
Login: admin
admin
Password: hello
Current State: Waiting for: Login: [Abort]
ok..then try this code
192.168.1.1 23
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "\hello\m"
WAIT
SEND "reboot\m"
WAIT
i just removed the Login and password line which was repeated twice.. some routers would work only that way.. anyways try this out.
when you copy the code from above to your txt file in notepad, after each line of code, there is a blank space, just click at the end of the line and hit backspace once. This way, your code will work the way it is supposed to. I faced that problem and tried many things before resolving it. Hope others don't have to spend time resolving it. The star is where the space is in the code, remove it before running it.
Eg:
192.168.1.1 23*
WAIT "Login:"*
SEND "admin\m"*
WAIT "Password:"*
SEND "\hello\m"*
WAIT*
SEND "reboot\m"*
WAIT*
Glad you got it working sanjay.. and thanks for posting on how you got it fixed
can u tell the script for sterlite sam 300ax....
thanx...
plz ...its urgent...
well we need to build the script.. go to the command prompt and type telnet 192.168.1.1 . then type ? and post a screenshot of output.
Man,You made my job easy. Thanks ,God bless you.. :)
hey Prash Babu,i have huawei mt882 bsnl modem and i've done everything step by step,but as soon as i run the restart.bat file the Telnet Scripting Tool pops up with the cursor blinking constantly and nothing happens afterwards.plz....i'm really stuck
Thanks
could you post a screenshot of that , so i know exactly where the problem is..
Hi Prash,here's the image,along with every information
http://img40.imageshack.us/img40/6971/pict.png
is script.txt placed in the right palce? are you able to access 192.168.1.1 ?? in your command prompt type telnet 192.168.1.1 and post output here..
Yes,the script.txt file is placed in the right place i.e in C:\tst10 and yes i'm able to access 192.168.1.1.My output for prompt telnet 192.168.1.1:-
Login:_
Prash while i was tweaking i recently noticed that after i entered the login & pass(admin;admin) correctly the output was "Login successful" and then if I entered "system restart" my modem did REBOOT!!.So if you could just make a script for this then i'll be really grateful to you.
do you have any firewall/software which you think is blocking the telnet scripting tool software to open? the code is correct , the method is also right.. its not supposed to get stuck there , its supposed to start with the logging in procedure..
Prash,I have Bitdefender Antivirus Plus v10.for the first time,the Bitdefender firewall did ask me whether to allow or block tst10.exe,i had allowed it.After that i cannot understand what the prob is????? :(
have you also allowed the telnet service to run.. also allowed port 23 , cause telnet uses that port.. try disabling your antivirus/firewall temporarily and see if the problem is solved.. just temporarily , so we know where the exact problem lies..
Hi prash,you are doing a really good job out here.. well, im trying to write a batch script to reboot my DNA-A211-I (wifi 4 port) modem from ITI(bsnl). - It is set in pppoe mode to connect without a dialer.
I need the script to be used with the 'Jdownloader software' so as to skip the waiting time by changing the ip..
The code as below does not work..
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
my username/password as the same as above.. when i type in this code and click on 'change ip', it says 'reconnection failed'...
Hope you can help me out! thanks in advance..
i have not used the jdownloader software, will try it out later , you can use this software too for the same purpose , as when you reboot modem , ip is automatically changed..
in your command prompt type telnet 192.168.1.1 and then type ? and post output here
When you said "you can use this software too for the same purpose," were you referring to the codings above?
I am actually required to append these codings above into the Jdownloader program which would execute the script as and when required... (The Jdownloader is primarily a download manager)
With regards to the output, i hope you were asking me the commands that show up once i've entered the username and password of the router in command prompt.
BCM96338 ADSL Router
Login: admin
Password:
> ?
?
help
logout
reboot
adsl
atm
brctl
cat
df
dumpcfg
echo
ifconfig
kill
arp
defaultgateway
dhcpserver
dns
lan
passwd
ppp
remoteaccess
restoredefault
route
save
swversion
wan
serialnum
ping
ps
pwd
sntp
sysinfo
tftp
wlctl
>
the code you were using previously was correct ( the one with the reboot command ) , i am not sure if the jdownloader software would support this code , as this code is meant only for the telnet scripting tool . Isnt your goal to just get your ip address changed?if so , you can use the telnet scripting tool to do that..
well,though my aim is to have the ip changed...that needs to be done by the jdownloader software itself 'automatically'... not sure how i can integrate the telnet tool into this ... here's how it needs to work..
- i load the URL's for couple of files that need to be downloaded from a site, say rapidshare.. for eg,
- the jdownloader starts downloading the first file (while placing the others in queue)
-once the 1st file is over, you need to usually wait for the 2nd file to download.. but the software 'skips' this step by having the ip changed (by executing the script that we type in..)
- download of the 2nd file is attempted automatically once the new ip is obtained..
- the same thing is repeated for successive files.
hope it is clear!
i use the home500 plan with night unlimited.. and hence this kind of 'automatic resetting' would be convenient for the download..
is the telnet tool capable of doing so... for the purpose stated above.. am not sure..
kindly assist.. thanks
oh ok got it , well the telnet tool can get you a new ip , but it wont know when the first file has finished downloading , i will look more into the jdownloader software and let you know..
Hello thanks for the Tip on rebooting my ADSL Modem.
I used the following Script, which reboots my modem fine:
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
The only problem I'm having is that whenever the script is executed it does not close after the modem reboot.
Do you have any solution
Regards
Morris
Prash.., any luck with the Jdownloader software yet?
Problem resolved.. thanks a lot for the help though...!
@karthik
sorry i was out of town , do mention how you fixed it so others could benefit..
@generljomo
it should close the windows by itsefl usually.. but you could try adding the following line to the script and then try
SEND "exit\m"
if the above line doesnt work , try this line
SEND "quit\m"
well actually.., i followed what was said in the help file of the software and that did it... just needed some additional assistance, thats it....
ah , thanks for sharing..
Hi there, thanks for writing this guide.
Actually I consulted a lot of guides and found that none of them worked. I kept tweaking until it worked. The script I am using at present is:
192.168.1.1 23
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "admin\m"
WAIT
SEND "system restart\m"
WAIT
SEND "exit\m"
It waits for some ten seconds and then Windows gives the message that a network cable has disconnected, and the modem reboots. Only problem is that often, after it reboots, Windows gives the message that this connection has limited or no connectivity. This kind of problem happens only if I reboot the modem with the script. Any suggestions?
try setting up static ip, that should fix it..
when i schedule the task,telnet opens n executes
.bat file but stops after logging in.
I have to manually press enter key to reboot it...
please help me.
post the script you are using currently , and post a screenshot as well where it gets stuck
192.168.1.1 23
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "admin\m"
WAIT
SEND "reboot\m"
WAIT
SEND "exit\m"
this is the script i'm using currently
TELNET opens and runs till here:
BCM96338 ADSL Router
Login: admin
admin
Password: admin
After this it gets struck..
It continues to reboot and exit only after i press 'enter'
Please help me as i have been getting bills of 4,000 Rs even though i use net for very short time...
but i download almost every other day from 2AM to 8 AM
ok, try replacing this line
SEND "reboot\m"
with
SEND "\mreboot\m"
It didn't work even after replacing the line...
I noticed that in telnet window beside 'ABORT' option it does come
Sending:reboot
but nothing happens untill i press enter
Please reply with an answer to my problem!!!
I just got BCM96338 ADSL Router and am facing the same issue, as Karthik has stated. Please help..
sorry for the late reply.. could you post a screenshot so i could understand exactly where your getting stuck..
how to post the screenshot?
use a website like tinypic.com and post the link of the picture here.
my siemens modems conked off, now they have put a UT300RTU. the guy will come for the setting tomorrow as i forgot the details. Let me see if this works. it worked fine on the siemens
same problem as Karthik & Vipin for me
they were trying to use a differrent software to reboot are you using the same telnet scripting tool software? where are you getting stuck? post a screenshot!
i am using TST10, it used to work fine on my siemens modem since the past 7-8 months. but now i have a UT300R2U.
it gets stuck at sending reboot. If i press enter it continues and reboots the modem!
here is the SS -
http://i32.tinypic.com/2woipg7.jpg
which script are you using , could you paste the script here.
hi,
here you go -
192.168.1.1 23
WAIT "Login"
SEND "admin\m"
WAIT "Password"
SEND "admin\m"
WAIT
SEND "reboot\m"
WAIT
Doesnt look like you followed the script mentioned in this tutorial for ut300r2u.. check out the tutorial again!!
here is what happens when i use the script for UT300R2U -
http://i28.tinypic.com/sdmvr9.jpg
I have a feeling there is something wrong with the code your using , cause it says "Waiting for Login:" " .. there is an extra " which is not required.. copy paste this code exactly.. and if you still face issues post a screenshot of that code in notepad.
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
Something seems to be wrong with the script your using currently , as it says "Waiting for Login:" " . There is an extra " which shouldnt be there which is why the script isnt proceeding.. copy paste the script shown below , if you still have problems post a screenshot of the script your using currently in notepad.
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
Sorry about the double post .. some issues with blogger :)
bang on.. it works!! its alive!!!
Thanks.. you are the MAN!!!
Glad it worked!!
Thanks Prash Babu. It worked for me, with minor modification, here is the script:
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 "-> "
SEND "reboot\m"
WAIT
Glad you got it to work , which modem do you have?
it is WA3002G4
thank u prashanth babu..
only blog wher i culd find a solution
had xams..so culdn't reply after that..
sorry :) :)
i follow ur blog on a daily basis now....
thanx once again
Glad to hear that :)
hey,wanna buy wireless mouse..
can u suggest one..
Hi Prash thanks for this wonderful program. This works fine for my UT300R2U modem. But after restarting modem the window does not close. I have tried
SEND "exit\m"
and
SEND "quit\m"
but it didn't work the program i am using it with won't start if window does not close. Please help as i am getting frustrated.
Could you post a screenshot at the place where the window is stuck and not closing , and post the current script your using
Thanks Prash for reply. I was thinking you won't reply so i didn't visit here tomorrow. I am posting screenshot As i am not technically advance user if it goes wrong please guide me how to do it.
http://tinypic.com/view.php?pic=214d2s1&s=3 .
Here is the script i am currently using
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
how can use this in telnet script for ut300r2u
"iptables -I PREROUTING -t nat -p tcp --dport 45682 -i ppp_0_35_1 -j DNAT --to 192.168.1.11:45682
iptables -I FORWARD -p tcp -d 192.168.1.11 --dport 45682 -i ppp_0_35_1 -o br0 -j ACCEPT
iptables -I FORWARD -p tcp -s 192.168.1.11 --sport 45682 -i br0 -o ppp_0_35_1 -j ACCEPT\m"
plese help!!
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 "iptables -I PREROUTING -t nat -p tcp --dport 45682 -i ppp_0_35_1 -j DNAT --to 192.168.1.11:45682\m"
WAIT
SEND "iptables -I FORWARD -p tcp -d 192.168.1.11 --dport 45682 -i ppp_0_35_1 -o br0 -j ACCEPT\m"
WAIT
SEND "iptables -I FORWARD -p tcp -s 192.168.1.11 --sport 45682 -i br0 -o ppp_0_35_1 -j ACCEPT\m"
WAIT
is this script correct?
well that looks correct , have you tried it out? stuck anywhere??
BCM96338 ADSL Router
Login: admin
admin
Password:
admin
Login incorrect. Try again.
Login: admin
admin
Password: admin
> admin
admin: not found
> iptables -I PREROUTING -t nat -p tcp --dport 45682 -i ppp_0_35_1 -j DNAT --to 192.168.1.11:45682
iptables -I PREROUTING -t nat -p tcp --dport 45682 -i ppp_0_35_1 -j DNAT --to 192.168.1.11:45682
>
its stuck here plese help
well that means that the two commands have been executed successfully and its now waiting for your next command!!
@Anonymous ( who posted the tinypic screenshot )
sorry about the late reply.. but it should close the window automatically ideally.. although you could try adding the following line to the script
SEND "exit\m"
thanks man!
Is there any safe way to upgrade my ut300r2u modem firmware to get virtual server option, if so how and is it safe?
is there any way to backup modem firmware?
will you please let me know if
telnet script run on xp64,server2003 or server2008
or not ?
@raj
im not sure about that , cause i've not tried running it on those versions , but its worth a try..
@sanjayhk
i was keen on doing it too , but its pretty risky and could brick your modem . Better to stick with the current firmware
I use sometimes tst10.exe
but,I want to set time interval between "WAIT" to "SEND". How can I set it?
ex)
192.10.1.111 23
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
<-time interval setting(ex: sleep 10)
SEND "totroot\m"
WAIT ">"
<-time interval setting(ex: sleep 10)
SEND "cd /work/test/\m"
WAIT ">"
<-time interval setting(ex: sleep 10)
SEND "testwk.sh\m"
WAIT ">"
<-time interval setting(ex: sleep 10)
SEND "exit\m"
hi friend i tried this. really a great job.
is it the safe and secure way for modem? is there any security problem in this? is it case sensitive?
please reply me..
thanks dude.
Yes , it is safe.. dont worry!!:)
thanx uh so much all of uh....i jus gone carefully thru d whole blog....its simply awsum man... it definetly has a solution to all my pals....if not full solution..(though a very rare case..hehe)...den it surely atleast gives an idea which inturn gives the reader a break thru his mind...resulting in discovering for d real and actual path wich should be followed....so as to reach the desired goaaaal.... :)
Have fun dude....keep rockin.. tk.
- Siddharth
can u pl edit the code so tat the window closes in the end the window is stuck at sending reboot but the reboot has taken place and when i press enter the window disappears i have used both quit and exit
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 "-> "
SEND "reboot\m"
WAIT
could you post a screenshot at where it gets stuck.. the above script should close the session automatically as the modem reboots..
http://www.wikihow.com/Image:Aditya_goel_487.jpg
here is a screenshot . i would be running the script when ever i shutdown my system . the system does not shut down until the window exits . when i press enter the window closes and the system shuts down .
http://www.4shared.com/file/169118381/1e792e3a/Reboot_UTStarcom_WA3002G4.htm
hi i would like u to see this program too . this works perfectly but the problem is when i schedule to run the batch file at the windows shutdown it executes only the batch file while the exe file is not execuited. as u can see the batch file sends the ip add and the other details to the exe file . could u pl be editing this exe file which automatically take the ip add to 192.168.1.1 and login=admin password=admin and not ask from the batch file . help me with any solution !!!! pl !!!!
will take a look at that app , try this script .. modified a bit..
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
i used the code but this dint even restart ma modem here is the screen shot
http://img697.imageshack.us/img697/5098/aditya.jpg
ok.. then try this
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 "-> "
SEND "reboot\m"
just remove the last WAIT line
sorry to be bothering u like this prashant
the code did not reboot the modem if i dont add the last "wait" line the screen shows like this.
http://img685.imageshack.us/img685/5098/aditya.jpg
could u edit tat exe file to the parameters i have posted tx again.
hmm.. give this a try.. i think the parameters are same.. its weird , i used to have the same modem and it worked fine..
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 "\mreboot\m"
WAIT "-> "
SEND "\mreboot\m"
WAIT
using
255.225.231.1
WAIT "login"
SEND "Muppe\m"
WAIT "password"
SEND "584264\m"
WAIT ">"
SEND "/etc/init.d/xddrestart"
WAIT ">"
SEND "exit"
this kind of script, but it looks like this
http://i45.tinypic.com/vnpo4y.jpg
and if i write something manual to, i press "k" it post "kk"
screen isnt from real place, but edited ip and loging/password to work
any ideas why it post those douple chars, same thing happen whit every command i add to script?
Thank you allready
/Muppe
try this and post output
255.225.231.1
WAIT "login"
SEND "Muppe\m"
WAIT "password"
SEND "\m584264\m"
WAIT ">"
SEND "/etc/init.d/xddrestart"
WAIT ">"
SEND "exit"
http://tinypic.com/view.php?pic=w86sye&s=6
WAIT "login"
SEND "\\Muppe\m"
WAIT "password"
SEND "584264\m"
this script works
found help from other forum maybe script tool isn't full compatible whit every server
still, when i push "k" it post "kk" but it seems like it dosent matter, my hand writed exit command just looks like "eexxiitt" but it works fine. Ty for trying to help me! after all, its grate script :=) dont have to write ip and loging command every time.
/Muppe
Ps. <-time interval setting(ex: sleep 10) cant make those intervals working, but i can handle this whit out those
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 "\mreboot\m"
WAIT "-> "
SEND "\mreboot\m"
WAIT
http://img31.imageshack.us/img31/8033/15215784.jpg
i tried this but still dint work !! the widow is still stuck while the modem has rebooted !!
PLZ help prashant i want it to exit screen!!
@Anonymous
Nice work.. glad you got it to work
@slymmer
Try Adding the following line to it at the end
SEND "\mreboot\m"
still its stuck wid the same command !!
http://img31.imageshack.us/img31/8033/15215784.jpg
hope to solve it !
@slymmer
you have a ut300r2u right? this is completely weird , i used the same modem at one point of time and the script mentioned in the tutorial worked perfectly..
no prashant i have a WA3002G4 modem(wireless) !!
could u see and edit the exe program which i mentioned earlier !!
here is the post !
http://www.4shared.com/file/169118381/1e792e3a/Reboot_UTStarcom_WA3002G4.htm
hi i would like u to see this program too . this works perfectly but the problem is when i schedule to run the batch file at the windows shutdown it executes only the batch file while the exe file is not execuited. as u can see the batch file sends the ip add and the other details to the exe file . could u pl be editing this exe file which automatically take the ip add to 192.168.1.1 and login=admin password=admin and not ask from the batch file . help me with any solution !!!! pl !!!!
Finally working, previously it was stuck at password. My modem is RIGER streamyx DB108WL. Take note that the 2nd prompt of password is only "\m"
this is my reboot script
192.168.1.1 23
WAIT "Login:"
SEND "tmadmin\m"
WAIT "Password:"
SEND "\mpassword\m"
WAIT "Login:"
SEND "tmadmin\m"
WAIT "Password:"
SEND "\m"
WAIT ">"
SEND "sh\m"
WAIT "#"
SEND "reboot\m"
WAIT "#"
SEND "exit\m"
WAIT "Hit to continue"
SEND "\m"
WAIT ">"
SEND "14\m"
tx a ton buddy the code works perfect for me !!! and tx to prashant for listening and posting on the request daily !! tx tx tx !!!
@Anonymous
thanks for posting
@slymmer
GLad you got it to work!!
hiiii i have got a new connection of mtnl
the modem is "sterlite SAM300 AX"
MY IP ADDRESS IS 192.168.1.2
ADMIN : admin
PASSWORD : admin
can anybody give me the software...
or help me in making the script
thanks in advance..
i m new to all this stuff...
The site www.winsite.com/bin/Info?500000000873 doesn't seem to work..so please give me a alternative site from where i could download the telnet scripting tool..
@Anonymous1
DOwnload the software from the link provided and use one of the scripts in the tutorial and check if it works.
@Anonymous2
Here is the new link http://dl.dropbox.com/u/904687/tst10.zip
hii prash babu
i am able to reboot my modem using command prompt
here is the command
telnet (use to login)
open 192.168.1.1 (use to login)"its ask for password after this step)
password : admin (i have logged in)
sys reboot (to restart the modem)
now can u provide me with the script so i can restart the modem by the script:
i tried your all script but none worked for me..
when i use ur script the black screen comes written password: on it
here is the screenshot
1)when i run the script it ask for password
http://www.grinshare.com/img/OCEEV6.jpg
2)after entering the password as admin
http://www.grinshare.com/img/1UTFDC.jpg
3)when i type "sys reboot" it restart the modem
http://www.grinshare.com/img/QR0N5V.jpg
there is the problem in the script about the password :its not automatically done:
can u help me with the script
i used ur first script..
thanks in advance..
but this doesn't mean its connecting the broadband. it just restarts the router. if u select PPP over Ethernet (PPPoE) instead of the default Bridging in the Connection type then u have to enter ur user id and password in the router and u are always connected. if u use Bridging then u have to dial from the desktop. ur script doesn't dial it just reboots. so how can ur script start broadband connection at 2 am and terminate at 8am.. plz send me detail at an20up@gmail.com
because i have to wake everyday at 2 am to connect the broadband. i don't want to use the PPP over Ethernet (PPPoE) method because it will keep me always online and huge bill will come at the end of month
@anup
u should use freedownload manager to start the application..
and restart it at 7.50 so
u should be shutting down ur pc at around 7.50 am using free download manager.....
@shatrughan
try the script below
192.168.1.1 23
WAIT "Password:"
SEND "\madmin\m"
WAIT "tc>"
SEND "sys reboot"
WAIT
post screenshot of output incase you have issues..
@ Prash Babu
here is what happens when i use ur new script..
screens ;;;;;> http://www.grinshare.com/img/BJ1160.jpg
thanks for ur effort...
but nothing is working for me...
Ok. some more modifications , try this
192.168.1.1 23
WAIT "Password:"
SEND "admin\m"
WAIT
SEND "\madmin\m"
WAIT "tc>"
SEND "sys reboot"
WAIT
Thanks It works 90% of the time....
can u help me in converting my connection from PPoEE to Bridge Mode
Thanks in advance........
what is your modem model no?
My Modem Type Is
Sterlite SAM300 AX
Modem serial No is
8ACZ161156
Default access
http://192.168.1.1
user Name : admin
password : admin
Could you post a screenshot of the router's homepage.. it could be similar to ut300r2u or Huawei mt880
Hi, I have UT300R2U and I tried some of the scripts here. It is working except the telnet window does not close in the end. Kindly help.
[URL=http://img11.imagevenue.com/img.php?image=44762_001_122_554lo.JPG][IMG]http://img11.imagevenue.com/loc554/th_44762_001_122_554lo.JPG[/IMG][/URL][URL=http://img180.imagevenue.com/img.php?image=44768_002_122_803lo.JPG][IMG]http://img180.imagevenue.com/loc803/th_44768_002_122_803lo.JPG[/IMG][/URL]
The scripts are in the image.
Thanks in advance.
Those screenshots are really small in resolution . could you post a bigger screenshot.
http://www.grinshare.com/img/CI5DHV.jpg
http://www.grinshare.com/img/R6VYSM.jpg
Thanks again
that link doesnt work either.. i get a http 404 not found error
here is my homepage screenshot pic .........
http://www.grinshare.com/view-QQJN6T.jpg
try this link http://www.prash-babu.com/2008/05/how-to-setup-bridged-mode-in-ut300r2u.html , the screenshots may not be the same , but the procedure is similar
thanks for ur time and help
now everything working fine.....
Glad you got it to work!!
Can u upload a script for Pronet 101E/U please. I tried all these scripts but none seem to work out for me. :( I checked out in telnet and the command for rebooting is "reboot"
Oh I forgot to mention, I am using Windows 7. When I use the script manually or use telnet, the modem reboots but when I schedule the script it does not work.
so i guess then the script is working fine.. its just the windows scheduler.. try these links
http://superuser.com/questions/85297/how-to-schedule-a-task-in-windows-7
http://www.windows7update.com/Windows7-Task-Scheduler.html
@shivam
Sorry for the late reply..which modem/router do you have? have you tried resetting the router?
hi, i'm having a problem similar to what shatrughan had. i had ut300r2u and script worked. but now i changed my modem(for wifi)
MODEM: nokia siemens 1600
and none of the scripts work.
but i can reboot using command prompt
C:\documents and settings\user>telnet
open 192.168.1.1
login:admin(and i press enter)
password:admin(and i press enter)
it displays modem menu where each menu is numbered(13. Save and Reboot). so i type 13 and press enter and it asks for confirmation(1:yes, 2:no) and i type 1 and press enter and it successfully reboots.
the telnet script
192.168.1.1 23
WAIT "Login"
SEND "admin\m"
WAIT "Password"
SEND "admin\m"
WAIT ""
SEND "Save and Reboot\m"
takes me till the
Current status: waiting for:
and if i press enter it displays the menu and it reboots if i manually type 13(and press enter) followed by 1(and press enter).
So could u provide a script that will work for me. i think automating the "press enter" key will do the trick. i tried different commands(WAIT, WAIT "", WAIT ">",WAIT "#" and even the one suggested in this site http://www.computing.net/answers/programming/need-help-with-dos-batch-file-/12751.html) but failed. so please help
did you try the SIEMENS sl2_141 code mentioned in the blog post?
ya the SIEMENS sl2_141 code works now. but i remember it didn't work last time. anyway i'll come back if it doesn't work
Hi Prashant,
i have a nokia siemens wireless now and i cant get the code mentioned above to work.. this is what comes -
BCM96338 ADSL Router
Login: admin
admin
Password:
admin
Login incorrect. Try again.
Login: admin
admin
Password: admin
[2J [HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.
Main Menu
1. ADSL Link State
2. LAN
3. WAN
4. DNS Server
5. Route Setup
6. NAT
7. Firewall
8. Quality Of Service
9. Management
10. Passwords
11. Diag
12. Reset to Default
13. Save and Reboot
14. Exit
-> admireboot
n
admin: not found
Hit to continue
reboot
[2J [HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.
Main Menu
1. ADSL Link State
2. LAN
3. WAN
4. DNS Server
5. Route Setup
6. NAT
7. Firewall
8. Quality Of Service
9. Management
10. Passwords
11. Diag
12. Reset to Default
13. Save and Reboot
14. Exit
->
here is the correct detail.. something went wrong with the previous one..
BCM96338 ADSL Router
Login: admin
admin
Password:
admin
Login incorrect. Try again.
Login: admin
admin
Password: admin
[2J [HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.
Main Menu
1. ADSL Link State
2. LAN
3. WAN
reboot
4. DNS Server
5. Route Setup
6. NAT
7. Firewall
8. Quality Of Service
9. Management
10. Passwords
11. Diag
12. Reset to Default
13. Save and Reboot
14. Exit
-> admin
admin: not found
Hit to continue
reboot
[2J [HNote: If you have problem with Backspace key, please make sure you configure your terminal emulator settings. For instance, from HyperTerminal you would need to use File->Properties->Setting->Back Space key sends.
Main Menu
1. ADSL Link State
2. LAN
3. WAN
4. DNS Server
5. Route Setup
6. NAT
7. Firewall
8. Quality Of Service
9. Management
10. Passwords
11. Diag
12. Reset to Default
13. Save and Reboot
14. Exit
->
which code did you use??
Hello All,
Rebooted my modem with these commands and the scripting tool provided above in addition with the batch file.
192.168.1.1 23
WAIT "login:"
SEND "admin\m"
WAIT "password:"
SEND "admin\m"
SEND "reboot\m"
SEND "exit\m"
My modem details -
Vulcan
*******************
Conexant Inc., Software Release R100B02.7AS.D
Copyright (c) 2001-2003 by Conexant, Inc.
-------------
Regards,
Rajeev Dayal.
Alternatively download package from -
http://forum.lowyat.net/index.php?s=2b819c5b0edb59765f0b24e36694721f&act=Attach&type=post&id=360763
and paste the code given below in the reboot.txt file.
192.168.1.1 23
WAIT "login:"
SEND "admin\m"
WAIT "password:"
SEND "admin\m"
SEND "reboot\m"
SEND "exit\m"
It worked for me so should also work for all MTNL, T-KD 318-EUI modems.
Regards,
Rajeev Dayal.
Thanks for your input..
Welcome Bud!
Hi
my adsl modem is d-link , model : DSL-2540U
could any body kindly hlp me to find correct script to reboot it?
my shell prompt is > , so i run this :
192.168.1.1
WAIT "Login:"
SEND "admin\m"
WAIT "Password:"
SEND "admin\m"
WAIT ">"
SEND "rebbot\m"
WAIT ">"
it seems \m doesnt work , becaouse in "login and pass " process i have 3 admin word , then in wait ">" I dont have any > in prompt , so when i do enter key , the prompt shows > then it works means reboots.
how can i correct \m in script ?and force the modem to accept \m ?
what do you mean by 3 admin word?? could you post a screenshot where the gets stuck for better understanding..
Hi , thx to answer , i was wait
------------------------------------------
screenshot 1 is about your instructions to initials of build and running script .
http://www.4shared.com/photo/SHv82313/1_online.html
------------------------------------------
2 is when i try to run it , you can see 3 admin word
http://www.4shared.com/photo/RTM7jOL8/2_online.html
------------------------------------------
3 is after running , when i push enter key , so in this time it work correctly . notice in knew the command of SEND "system restart\m" is not correct on my adsl , and the correct command on my adsl is SEND "reboot\m" , i exchange it to incorrect command to avoiding reboot of my adsl when i try to take screenshot for you .
http://www.4shared.com/photo/1CgSfWH7/3_online.html
-------------------------------------------
the problem as shown in screenshot 2 , is i must push enter key manually after it get pssword correctly , it seems doesnt take \m in this command SEND "admin\m" , and doesnt go to shell prompt ">" and waiting for >
-----
when i telnet to 192.168.1.1 , after giving passsword and push enter key , i have the > as shellpromt .
thx again
Hi Hamid,
download the link
http://eis.esnips.com/downloader/eSnipsDownloader.exe?dlurl=http://download4.esnips.com/doc/516830d5-f140-448e-8ce7-158f2a4e2bd4.rar/fol/doc/f24c88f0-7025-46b0-9855-26bea6a397d3/5831178d-9166-4d5d-b370-d38bbc27b60f/users11/f24/users5&name=TST10.1.rar
and try to reboot ADSL modem.
Regards
Rajeev.
didnt work ,
but i have a new method from here and it works very good and solved my issue
http://www.indiabroadband.net/mtnl-broadband/1187-triband-nu-solution-automated-router-reboot.html
thanks Dayal to answers .
Glad you got it working..
works like a charm ! thx a lllott !!!
hey can u upload the script for modem huwei MT841 smartAX..
I saw in ur previous comments to make changes in some script..but where is the original script where we must make changes..pls reply so i can get on with this scheduling..
thank u! helps a lot.. do you have a script in changing huawei echolife bm622 cpe mac address?
Hi Prash
i'm looking to automatically reset a siemens Gigaset SE568 through telnet i've entered the script & it works fine till the login but even after entering the password correctly it gets stuck on the password prompt. if i manually enter the password & give the "do reboot" command the modem reboots ok but not through the telnet script. any suggestions
192.168.254.254 23
WAIT "login"
SEND "admin\m"
WAIT "Password"
SEND "\201978\m"
WAIT ">"
SEND "shell\m"
WAIT "#"
SEND "do reboot\m"
WAIT ""
Hi, for some reason this script gives me this error: "is not a valid integer value
Any clue as to why this happens..?
Send me a screenshot of the error..
Hey Prash....
Recently i changed my modem from ut300rtu to a wifi enabled one and now i'm not able to figure out the script. I thought the same script for my previous modem wud work but it din.. my current modem is AN1020-21. Can u help me with the script?
Hey Prash,
I am using BCM96338 ADSL Router
I can reboot my modem if i run the cmd and use the telnet command. However, If i use bat file I can't send command to command line. It freezes after login appears. Even if I send command before wait line it doesnt work.
I am using the windows 7 operating system and i activated telnet client.
thanks in advance
hey,
I solved my problem ;)
thanks anyway
Hey Prash,
i'm still waiting for ur reply... i wud really appreciate it...
Now i'm able to login into the modem with the help of the script but i dono the command to reboot the modem.. i dono how to find it out also..
Sorry for the late reply.. i presume your trying this via telnet?post a screenshot where your getting stuck. Typically if you type a '?' (without single quotes) you will get to know the command for reboot etc, in some modems you could try typing help.
Prashanth..
Hey Prash,
yea.. i'm using telnet itself... here are the screenshots... one is a shot of the help commands and the other of the successful login....
http://img594.imageshack.us/img594/1429/telnethelp.jpg
http://img24.imageshack.us/img24/862/telnetlogin.jpg
FOr some reason those screenshots aren't opening..I get a domain unregistered message..
ok.... here are the new links... hope they work...
http://www.imagehousing.com/image.php?id=750632
http://www.imagehousing.com/image.php?id=750629
In the post Finding and analysing Keyword position.it is useful for to find your site position in many search engines. You can choose multiple Search engines such as Google, Yahoo and Bing.You can also save your keywords which is used to find the keywordposition most of times.this is special offer only for this week.you can see One week Special Offer
Hey Prash
How come your not replying??
Hi Prash,
Is there a way to loop back to the beginning if for example something doesn't work? Like a goto command. Thanks!
slight change for WA3002G4
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 "13\m"
SEND "reboot\m"
WAIT
Is there a script available for Teracom T1-B-DSL699E9. I tried the above scripts - but not sure if they work.
Looking for a script for the Teracom type 2 modem too. Very frustrating..
visit my blog for a full working telnet script
http://telnetscript.blogspot.com.au/2012/04/telnet-script-in-perl.html
found this page after hours of googling for a solution to autoreboot modem if network goes down. have a d-link bcm96338 modem, and tst10 wouldn't proceed past entering the password, ever waiting for > to come. eventually i found a simple and elegant solution: go to the router settings and make the password blank. problem solved, from now on the modem eagerly gulps "\m" for a password and everything works.
Telnet script for my TP Link Modem
192.168.1.1 23
WAIT "Password:"
SEND "admin\m"
WAIT
SEND "sys reboot\m"
WAIT
SEND "exit\m
What will be the command for the D-Link 2730u ADSL modem. Please some one tell me the code to Enable/Disable Wi-Fi signal on my modem
If you have GUI, try using wget for windows with below url :-
$ wget --output-document=/dev/null --user="admin" --password="" "http://192.168.0.1/setup.cgi?next_file=diag.htm&todo=reboot"
I'm trying to get this to work with a Netcomm 882 router.
The intial login is
cdcs login:
No matter what combination I use, it never enters the username. Says waiting the whole time. Ideas?
Thanks Prash,
This really works, off course there will be always some minor tweaks, which i guess anyone who is attempting to execute a batch file should be able to easily accomplish.
Does anyone can provide script for Huawei HG532e, please. I tried all scripts above and no success at all. Thanks
Can anyone please post a script for ASUS DSL-N10E?
τεστ
192.168.1.1 23
WAIT "Login:
SEND "admin\m
WAIT "Password:
SEND "yourPassword\m
WAIT ">
SEND "ppp config ppp0 down\m
WAIT ">
SEND "ppp config ppp0 up\m
WAIT ">
SEND "exit\m
the end of each row there is a space, replacing "
modem PD.G A4001N
Is not there a command to insert time slots? for example:
192.168.1.1 23
WAIT "Login:
SEND "admin\m
WAIT "Password:
SEND "yourPassword\m
WAIT ">
SEND "ppp config ppp0 down\m
WAIT ">
SLEEP 5
SEND "ppp config ppp0 up\m
WAIT ">
SEND "exit\m
how to enter ctrl + d command on tst10
send "^D\m" or
send "^Z\m" doesnt work
Post a Comment