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!!

206 comments

«Oldest   ‹Older   1 – 200 of 206   Newer›   Newest»
Ashwin said... @ April 7, 2008 at 8:06 PM

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

Anonymous said... @ April 24, 2008 at 8:15 AM

Thanks a lot dude.. you save me a few bucks.. great job!!!

Anonymous said... @ July 27, 2008 at 7:11 PM

hi i m having sl2_141 modem. how to do in that

Prash Babu said... @ July 28, 2008 at 3:57 AM

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

Anonymous said... @ July 29, 2008 at 12:17 PM

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]

Prash Babu said... @ July 30, 2008 at 4:41 AM

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...

rakesh said... @ August 4, 2008 at 12:19 PM

i m attaching the screenshot.help me

http://i256.photobucket.com/albums/hh183/rxrakesh/help.jpg

Prash Babu said... @ August 5, 2008 at 4:01 AM

please post the current code you are using, i'll try modifying it..Try 13 also instead of reboot..

Anonymous said... @ August 5, 2008 at 9:35 AM

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

Prash Babu said... @ August 6, 2008 at 4:36 AM

Thats the way to go!!Thanks for posting!!
cheers..

Anonymous said... @ August 11, 2008 at 11:56 PM

I found your script working after many failed attempts with other scripts...
Thanks a lot dude.........

ABY said... @ August 26, 2008 at 11:00 AM

hey thx a loooot....works wonders...

Suresh said... @ January 9, 2009 at 9:56 AM

Thank u very much.......... :-)

Anonymous said... @ January 11, 2009 at 11:43 AM

amazin.. trully amazin... omg ppl suggested crazy things..but this is gr8... tks a loooot...

Prash Babu said... @ January 12, 2009 at 2:35 AM

glad it helped!!
cheers,
prash

Saba said... @ January 19, 2009 at 6:34 AM

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

Prash Babu said... @ January 19, 2009 at 8:24 AM

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 "*"

Ausaf said... @ January 19, 2009 at 8:28 PM

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

Prash Babu said... @ January 21, 2009 at 3:23 AM

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

Anjana said... @ March 3, 2009 at 6:01 PM

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.

Prash Babu said... @ March 3, 2009 at 7:32 PM

Hey,
open http://192.168.1.1 and then type username and password as admin . Are you able to Login?

Prash..

Anjana said... @ March 3, 2009 at 8:07 PM

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

Anonymous said... @ April 3, 2009 at 5:00 PM

loads of thanks for you it saved my time

sanjay said... @ April 5, 2009 at 12:15 PM

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?

Prash Babu said... @ April 5, 2009 at 8:40 PM

Use the code given for ut300r2u above.. replace the given password with your password

sanjay said... @ April 6, 2009 at 12:28 AM

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

Prash Babu said... @ April 6, 2009 at 7:18 AM

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.

sanjay said... @ April 6, 2009 at 10:58 AM

http://img11.imageshack.us/img11/2752/rebootj.jpg

Prash Babu said... @ April 6, 2009 at 8:27 PM

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:

sanjay said... @ April 7, 2009 at 7:18 AM

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]

Prash Babu said... @ April 7, 2009 at 7:42 AM

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.

sanjay said... @ April 8, 2009 at 10:00 AM

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*

Prash Babu said... @ April 8, 2009 at 8:24 PM

Glad you got it working sanjay.. and thanks for posting on how you got it fixed

specialist said... @ May 23, 2009 at 1:38 PM

can u tell the script for sterlite sam 300ax....
thanx...
plz ...its urgent...

Prash Babu said... @ May 23, 2009 at 8:34 PM

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.

KARTHIK said... @ May 25, 2009 at 3:12 PM

Man,You made my job easy. Thanks ,God bless you.. :)

Anonymous said... @ May 30, 2009 at 1:18 AM

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

Prash Babu said... @ May 30, 2009 at 8:58 AM

could you post a screenshot of that , so i know exactly where the problem is..

Anonymous said... @ May 31, 2009 at 7:15 AM

Hi Prash,here's the image,along with every information

http://img40.imageshack.us/img40/6971/pict.png

Prash Babu said... @ May 31, 2009 at 7:28 AM

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..

Anonymous said... @ May 31, 2009 at 12:17 PM

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.

Prash Babu said... @ June 1, 2009 at 1:09 AM

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..

Anonymous said... @ June 1, 2009 at 4:08 AM

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????? :(

Prash Babu said... @ June 1, 2009 at 7:12 AM

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..

Karthik said... @ June 1, 2009 at 2:41 PM

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..

Prash Babu said... @ June 2, 2009 at 8:44 AM

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

Karthik said... @ June 2, 2009 at 12:01 PM

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

>

Prash Babu said... @ June 2, 2009 at 11:13 PM

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..

Karthik said... @ June 3, 2009 at 7:37 AM

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

Prash Babu said... @ June 3, 2009 at 8:49 AM

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..

Karthik said... @ June 3, 2009 at 9:32 AM

Thank you!

generaljomo said... @ June 4, 2009 at 10:37 AM

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

Karthik said... @ June 6, 2009 at 8:47 AM

Prash.., any luck with the Jdownloader software yet?

Karthik said... @ June 7, 2009 at 12:29 PM

Problem resolved.. thanks a lot for the help though...!

Prash Babu said... @ June 7, 2009 at 8:48 PM

@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"

karthik said... @ June 7, 2009 at 11:07 PM

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....

Prash Babu said... @ June 8, 2009 at 7:10 AM

ah , thanks for sharing..

HydraH said... @ June 8, 2009 at 9:35 AM

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?

Prash Babu said... @ June 8, 2009 at 10:01 PM

try setting up static ip, that should fix it..

Karthik said... @ June 11, 2009 at 9:58 AM

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.

Prash Babu said... @ June 11, 2009 at 11:42 PM

post the script you are using currently , and post a screenshot as well where it gets stuck

Karthik said... @ June 13, 2009 at 9:45 AM

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'

Karthik said... @ June 13, 2009 at 9:49 AM

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

Prash Babu said... @ June 14, 2009 at 5:57 AM

ok, try replacing this line
SEND "reboot\m"

with

SEND "\mreboot\m"

Karthik said... @ June 17, 2009 at 11:48 AM

It didn't work even after replacing the line...

Karthik said... @ June 17, 2009 at 12:00 PM

I noticed that in telnet window beside 'ABORT' option it does come

Sending:reboot
but nothing happens untill i press enter

Karthik said... @ June 18, 2009 at 2:23 PM

Please reply with an answer to my problem!!!

Vipin Agrawal said... @ June 20, 2009 at 2:18 AM

I just got BCM96338 ADSL Router and am facing the same issue, as Karthik has stated. Please help..

Prash Babu said... @ June 26, 2009 at 12:35 AM

sorry for the late reply.. could you post a screenshot so i could understand exactly where your getting stuck..

Vipin Agrawal said... @ June 27, 2009 at 1:08 AM

how to post the screenshot?

Prash Babu said... @ June 27, 2009 at 8:46 PM

use a website like tinypic.com and post the link of the picture here.

Paras said... @ July 8, 2009 at 3:19 PM

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

Paras said... @ July 9, 2009 at 2:45 PM

same problem as Karthik & Vipin for me

Prash Babu said... @ July 9, 2009 at 11:25 PM

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!

Paras said... @ July 10, 2009 at 3:12 AM

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

Prash Babu said... @ July 10, 2009 at 8:50 AM

which script are you using , could you paste the script here.

Paras said... @ July 10, 2009 at 4:26 PM

hi,

here you go -

192.168.1.1 23
WAIT "Login"
SEND "admin\m"
WAIT "Password"
SEND "admin\m"
WAIT
SEND "reboot\m"
WAIT

Prash Babu said... @ July 10, 2009 at 11:11 PM

Doesnt look like you followed the script mentioned in this tutorial for ut300r2u.. check out the tutorial again!!

Paras said... @ July 10, 2009 at 11:43 PM

here is what happens when i use the script for UT300R2U -

http://i28.tinypic.com/sdmvr9.jpg

Prash Babu said... @ July 12, 2009 at 9:02 AM

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

Prash Babu said... @ July 12, 2009 at 9:04 AM

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

Prash Babu said... @ July 12, 2009 at 9:08 AM

Sorry about the double post .. some issues with blogger :)

Paras said... @ July 12, 2009 at 12:51 PM

bang on.. it works!! its alive!!!

Thanks.. you are the MAN!!!

Prash Babu said... @ July 12, 2009 at 10:47 PM

Glad it worked!!

Vipin Agrawal said... @ July 28, 2009 at 9:35 PM

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

Prash Babu said... @ July 29, 2009 at 8:18 AM

Glad you got it to work , which modem do you have?

Vipin Agrawal said... @ July 29, 2009 at 10:42 AM

it is WA3002G4

Karthik said... @ August 3, 2009 at 9:27 AM

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

Prash Babu said... @ August 4, 2009 at 2:04 AM

Glad to hear that :)

Karthik said... @ August 5, 2009 at 6:46 AM

hey,wanna buy wireless mouse..
can u suggest one..

Anonymous said... @ August 21, 2009 at 9:04 AM

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.

Prash Babu said... @ August 24, 2009 at 6:52 AM

Could you post a screenshot at the place where the window is stuck and not closing , and post the current script your using

Anonymous said... @ August 25, 2009 at 6:31 AM

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

sanjayhk said... @ August 30, 2009 at 9:35 AM

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!!

sanjayhk said... @ August 30, 2009 at 9:43 AM

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?

Prash Babu said... @ September 1, 2009 at 7:47 AM

well that looks correct , have you tried it out? stuck anywhere??

sanjayhk said... @ September 2, 2009 at 7:20 AM

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

Prash Babu said... @ September 4, 2009 at 9:49 AM

well that means that the two commands have been executed successfully and its now waiting for your next command!!

Prash Babu said... @ September 4, 2009 at 9:52 AM

@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"

sanjayhk said... @ September 5, 2009 at 4:04 AM

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?

sanjayhk said... @ September 5, 2009 at 8:02 AM

is there any way to backup modem firmware?

raj said... @ September 6, 2009 at 9:42 PM

will you please let me know if
telnet script run on xp64,server2003 or server2008
or not ?

Prash Babu said... @ September 7, 2009 at 8:53 AM

@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

hanlmiso said... @ September 26, 2009 at 8:44 PM

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"

Anonymous said... @ October 30, 2009 at 11:53 AM

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.

Prash Babu said... @ October 30, 2009 at 8:06 PM

Yes , it is safe.. dont worry!!:)

Anonymous said... @ November 3, 2009 at 5:04 AM

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

Anonymous said... @ December 8, 2009 at 2:04 PM

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

Prash Babu said... @ December 9, 2009 at 1:31 AM

could you post a screenshot at where it gets stuck.. the above script should close the session automatically as the modem reboots..

aditya said... @ December 9, 2009 at 7:31 AM

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 .

slymmer [Aditya goel] said... @ December 9, 2009 at 12:32 PM

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 !!!!

Prash Babu said... @ December 10, 2009 at 7:54 AM

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

slymmer [Aditya goel] said... @ December 11, 2009 at 2:31 AM

i used the code but this dint even restart ma modem here is the screen shot

http://img697.imageshack.us/img697/5098/aditya.jpg

Prash Babu said... @ December 11, 2009 at 5:45 AM

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

slymmer [Aditya goel] said... @ December 11, 2009 at 1:37 PM

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.

Prash Babu said... @ December 13, 2009 at 4:25 AM

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

Anonymous said... @ December 14, 2009 at 12:11 AM

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

Prash Babu said... @ December 14, 2009 at 7:01 AM

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"

Anonymous said... @ December 14, 2009 at 9:18 AM

http://tinypic.com/view.php?pic=w86sye&s=6

Anonymous said... @ December 14, 2009 at 9:58 AM

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

slymmer [Aditya goel] said... @ December 14, 2009 at 1:19 PM

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!!

Prash Babu said... @ December 15, 2009 at 6:59 PM

@Anonymous
Nice work.. glad you got it to work
@slymmer
Try Adding the following line to it at the end
SEND "\mreboot\m"

slymmer [Aditya goel] said... @ December 16, 2009 at 11:37 AM

still its stuck wid the same command !!
http://img31.imageshack.us/img31/8033/15215784.jpg

hope to solve it !

Prash Babu said... @ December 17, 2009 at 7:43 PM

@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..

slymmer [Aditya goel] said... @ December 18, 2009 at 11:21 AM

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 !!!!

Anonymous said... @ December 19, 2009 at 10:31 AM

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"

slymmer [Aditya goel] said... @ December 19, 2009 at 1:03 PM

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 !!!

Prash Babu said... @ December 19, 2009 at 11:29 PM

@Anonymous
thanks for posting
@slymmer
GLad you got it to work!!

Anonymous said... @ January 7, 2010 at 4:12 AM

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...

Anonymous said... @ January 7, 2010 at 3:55 PM

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..

Prash Babu said... @ January 9, 2010 at 7:18 PM

@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

shatrughan said... @ January 10, 2010 at 4:35 AM

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..

anup said... @ January 10, 2010 at 6:53 AM

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

shatrughan said... @ January 10, 2010 at 9:34 AM

@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.....

Prash Babu said... @ January 13, 2010 at 6:06 PM

@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..

shatrughan said... @ January 13, 2010 at 6:56 PM

@ 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...

Prash Babu said... @ January 16, 2010 at 12:24 AM

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

shatrughan said... @ January 18, 2010 at 9:37 AM

Thanks It works 90% of the time....


can u help me in converting my connection from PPoEE to Bridge Mode


Thanks in advance........

Prash Babu said... @ January 20, 2010 at 7:27 AM

what is your modem model no?

shatrughan said... @ January 20, 2010 at 4:14 PM

My Modem Type Is

Sterlite SAM300 AX


Modem serial No is

8ACZ161156

Default access
http://192.168.1.1


user Name : admin

password : admin

Prash Babu said... @ January 22, 2010 at 8:10 AM

Could you post a screenshot of the router's homepage.. it could be similar to ut300r2u or Huawei mt880

Anonymous said... @ January 23, 2010 at 3:09 AM

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.

Prash Babu said... @ January 27, 2010 at 2:06 AM

Those screenshots are really small in resolution . could you post a bigger screenshot.

Anonymous said... @ January 29, 2010 at 5:54 AM

http://www.grinshare.com/img/CI5DHV.jpg
http://www.grinshare.com/img/R6VYSM.jpg
Thanks again

Prash Babu said... @ January 29, 2010 at 8:52 PM

that link doesnt work either.. i get a http 404 not found error

shatrughan said... @ January 30, 2010 at 9:13 PM

here is my homepage screenshot pic .........


http://www.grinshare.com/view-QQJN6T.jpg

Prash Babu said... @ February 1, 2010 at 4:44 AM

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

shatrughan said... @ February 3, 2010 at 8:36 PM

thanks for ur time and help

now everything working fine.....

Prash Babu said... @ February 5, 2010 at 8:00 AM

Glad you got it to work!!

Mr.Microsoft said... @ March 17, 2010 at 4:49 PM

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"

Mr.Microsoft said... @ March 17, 2010 at 4:50 PM

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.

Prash Babu said... @ March 24, 2010 at 8:30 AM

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 said... @ May 11, 2010 at 3:21 PM

I m unable to access my router/modem via telnet...
previously it was happening but now its all gone
as sonn i telnet 192.168.1.1 23 black console appears wid nothing on it and as soon i press any key...its all gone
i hav checked ma efault gateway its still 192.168.1.1 but not been able to telnet ma modem..
need help !!!

Prash Babu said... @ May 18, 2010 at 10:47 PM

@shivam
Sorry for the late reply..which modem/router do you have? have you tried resetting the router?

Narasimhan said... @ July 24, 2010 at 11:47 AM

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

Prash Babu said... @ July 30, 2010 at 7:53 AM

did you try the SIEMENS sl2_141 code mentioned in the blog post?

Narasimhan said... @ July 31, 2010 at 2:00 AM

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

Paras said... @ August 10, 2010 at 4:17 AM

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
->

Paras said... @ August 10, 2010 at 4:20 AM

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
->

Prash Babu said... @ August 17, 2010 at 8:15 AM

which code did you use??

Rajeev Dayal said... @ August 25, 2010 at 6:04 AM

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.

Rajeev Dayal said... @ August 25, 2010 at 6:08 AM

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.

Prash Babu said... @ August 28, 2010 at 10:03 PM

Thanks for your input..

Rajeev Dayal said... @ August 30, 2010 at 12:36 AM

Welcome Bud!

Hamid said... @ September 27, 2010 at 11:02 PM

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 ?

Prash Babu said... @ September 30, 2010 at 10:22 PM

what do you mean by 3 admin word?? could you post a screenshot where the gets stuck for better understanding..

Hamid said... @ October 1, 2010 at 5:01 PM

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

Rajeev Dayal said... @ October 5, 2010 at 12:19 AM

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.

Hamid said... @ October 6, 2010 at 6:11 PM

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 .

Prash Babu said... @ October 10, 2010 at 8:16 AM

Glad you got it working..

ankur said... @ November 2, 2010 at 1:49 PM

works like a charm ! thx a lllott !!!

kenji said... @ December 1, 2010 at 4:19 PM

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..

Anonymous said... @ February 2, 2011 at 10:30 AM

thank u! helps a lot.. do you have a script in changing huawei echolife bm622 cpe mac address?

Anonymous said... @ February 19, 2011 at 8:05 AM

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 ""

Anonymous said... @ April 18, 2011 at 3:40 AM

Hi, for some reason this script gives me this error: "is not a valid integer value

Any clue as to why this happens..?

Prash Babu said... @ April 18, 2011 at 6:08 AM

Send me a screenshot of the error..

Sknahs said... @ May 14, 2011 at 2:42 PM

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?

Anonymous said... @ May 20, 2011 at 12:34 PM

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

Anonymous said... @ May 24, 2011 at 3:32 PM

hey,

I solved my problem ;)

thanks anyway

Sknahs said... @ May 28, 2011 at 3:11 AM

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..

Prash Babu said... @ May 29, 2011 at 12:16 AM

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..

Sknahs said... @ May 29, 2011 at 11:03 AM

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

Prash Babu said... @ May 29, 2011 at 9:45 PM

FOr some reason those screenshots aren't opening..I get a domain unregistered message..

Sknahs said... @ May 29, 2011 at 10:22 PM

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

QualityPoint said... @ June 2, 2011 at 11:02 PM

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

Sknahs said... @ June 5, 2011 at 12:15 PM

Hey Prash
How come your not replying??

Anonymous said... @ July 1, 2011 at 5:45 PM

Hi Prash,

Is there a way to loop back to the beginning if for example something doesn't work? Like a goto command. Thanks!

bbso said... @ January 14, 2012 at 11:08 PM

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

Anonymous said... @ February 20, 2012 at 5:21 AM

Is there a script available for Teracom T1-B-DSL699E9. I tried the above scripts - but not sure if they work.

Abhishek said... @ March 23, 2012 at 12:46 PM

Looking for a script for the Teracom type 2 modem too. Very frustrating..

Sharam Mohamed said... @ April 1, 2012 at 3:54 AM

visit my blog for a full working telnet script

http://telnetscript.blogspot.com.au/2012/04/telnet-script-in-perl.html

Anonymous said... @ September 29, 2012 at 11:09 PM

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.

Mohammed Sharif said... @ March 20, 2013 at 9:07 AM

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

Anonymous said... @ April 10, 2013 at 9:06 AM

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

dinn11 said... @ April 22, 2013 at 2:53 AM

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"

Anonymous said... @ May 21, 2013 at 7:35 PM

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?

Giri said... @ August 23, 2013 at 4:34 AM

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.

John said... @ September 1, 2013 at 11:49 PM

Does anyone can provide script for Huawei HG532e, please. I tried all scripts above and no success at all. Thanks

Anonymous said... @ September 11, 2013 at 10:30 AM

Can anyone please post a script for ASUS DSL-N10E?

Anonymous said... @ October 21, 2013 at 11:43 PM

τεστ

«Oldest ‹Older   1 – 200 of 206   Newer› Newest»

Post a Comment