India Broadband Forum


telnet please help auto login

This is a discussion on telnet please help auto login within the BSNL broadband forums, part of the Broadband Internet Service Providers category; in reference to these http://www.indiabroadband.net/bsnl-b...-plz-help.html http://www.indiabroadband.net/bsnl-b...n-problem.html i have the following doubts- should we add reboot.txt to scheduling task? this script ...

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

India Broadband Forum


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

                      

Reply

 

LinkBack Thread Tools Display Modes
Old 03-05-08, 09:29 PM   #1
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default telnet please help auto login

in reference to these


http://www.indiabroadband.net/bsnl-b...-plz-help.html (Help on UT300R2U,pppoe,Home500.. plz help!!!!)

http://www.indiabroadband.net/bsnl-b...n-problem.html (Auto login problem)



i have the following doubts-
should we add reboot.txt to scheduling task?
this script is not rebooting-



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 m having ut300r2u and home 500c plan
please help since i need to get up at 2 am daily
akshaymys is offline   Reply With Quote
Old 03-05-08, 09:42 PM   #2
Silver Member
 
Join Date: Jan 2008
Location: Chennai - Tamil Nadu - India
Age: 26
Posts: 418
Rep Power: 2
aruncse30 will become famous soon enough
Thumbs up

Here we go..

1. Download this and put it in one folder say.. c:\restart
This folder should contain the downloaded 5 r 6 files. (dont put any subfolder)
WinSite: Telnet Scripting Tool

2. create one txt file with the following content in c:\restart.. say restart.txt

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

3. create one new schedule... use ur system password while scheduling task.

4. After created the task.. right click on it and in the Run.. do this

"c:\restart\tst10.bat" /r:restart.txt (not sure with the file name.. but do it correctly...

then save it.. again it will ask ur system username and password.. give it.. it should not throw any error.

5. u done it... do it.. and let me know
aruncse30 is offline   Reply With Quote
Old 03-05-08, 10:02 PM   #3
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default

Quote:
Originally Posted by aruncse30 View Post
Here we go..

1. Download this and put it in one folder say.. c:\restart
This folder should contain the downloaded 5 r 6 files. (dont put any subfolder)
WinSite: Telnet Scripting Tool

2. create one txt file with the following content in c:\restart.. say restart.txt

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

3. create one new schedule... use ur system password while scheduling task.

4. After created the task.. right click on it and in the Run.. do this

"c:\restart\tst10.bat" /r:restart.txt (not sure with the file name.. but do it correctly...

then save it.. again it will ask ur system username and password.. give it.. it should not throw any error.

5. u done it... do it.. and let me know
while in control panel>schedule tasks>add schedule tasks should we "browse" and add restart.txt ?
should we create any batch file?
akshaymys is offline   Reply With Quote
Old 03-05-08, 10:04 PM   #4
Silver Member
 
Join Date: Jan 2008
Location: Chennai - Tamil Nadu - India
Age: 26
Posts: 418
Rep Power: 2
aruncse30 will become famous soon enough
Default

Quote:
Originally Posted by akshaymys View Post
while in control panel>schedule tasks>add schedule tasks should we "browse" and add restart.txt ?
should we create any batch file?
NOOOOOOOO.. give tst10.bat
aruncse30 is offline   Reply With Quote
Old 03-05-08, 10:07 PM   #5
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default

Quote:
Originally Posted by aruncse30 View Post
NOOOOOOOO.. give tst10.bat




where is this tst10.bat?

i only made restart.txt in the folder containing one tst10.exe and tst10.txt
akshaymys is offline   Reply With Quote
Old 03-05-08, 11:58 PM   #6
Silver Member
 
Join Date: Jan 2008
Location: Chennai - Tamil Nadu - India
Age: 26
Posts: 418
Rep Power: 2
aruncse30 will become famous soon enough
Default

Quote:
Originally Posted by akshaymys View Post
where is this tst10.bat?

i only made restart.txt in the folder containing one tst10.exe and tst10.txt
no.. i mean tst10.exe man... im not in my pc.. thats y cant give the exact info.. no need to create or use tst10.txt. ok??
aruncse30 is offline   Reply With Quote
Old 03-06-08, 06:40 PM   #7
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default

after i make reboot.txt file and type the following

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

and save .Open windows schedule task and add "browse" and add "tst10.exe"
and then "right click" on tst10.exe in schedule task and then click on "properties" and give the path in "run" as "C:\tst\reboot.txt" (tst is the folder in C:\) and click "apply" once again i type the password

but its not rebooting.

please help
akshaymys is offline   Reply With Quote
Old 03-06-08, 06:53 PM   #8
Platinum Member
 
whitestar_999's Avatar
 
Join Date: Jan 2008
Location: UP(west)
Posts: 1,971
Blog Entries: 1
Rep Power: 3
whitestar_999 will become famous soon enough
Default

Quote:
SEND "\madmin\m"
it should be SEND "admin\m"
whitestar_999 is offline   Reply With Quote
Old 03-06-08, 07:24 PM   #9
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default

Quote:
Originally Posted by whitestar_999 View Post
it should be SEND "admin\m"



no luck whitestar_999

just the reboot.txt notepad is opening
akshaymys is offline   Reply With Quote
Old 03-06-08, 07:26 PM   #10
Platinum Member
 
whitestar_999's Avatar
 
Join Date: Jan 2008
Location: UP(west)
Posts: 1,971
Blog Entries: 1
Rep Power: 3
whitestar_999 will become famous soon enough
Default

Quote:
Now open Control Panel and open Scheduled Tasks. Add Scheduled Task. Follow the instructions. Browse to the directory you extracted tst10.exe to, and open it. Give a name to this task (only for your convenience, can be anything) and choose how often you want the reboot (daily/weekly/what?). Choose the time you want reboot to occur. If you are setting this up on a particular WinXP user account, you may be asked for your XP user password. OK, when the task is created and appears in Scheduled Tasks, right click on it and click on Properties. On the Task tab you will see "Run", where the location of tst10.exe woold be present already. At the end of this line, outside the quotes, add /r:reboot.txt so it looks like
"C:\tst10.exe" /r:reboot.txt
try this
whitestar_999 is offline   Reply With Quote
Old 03-06-08, 07:48 PM   #11
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default

Quote:
Originally Posted by whitestar_999 View Post
try this

i made the following correction


C:\tst\TST10.exe\r:reboot.txt (where tst is the folder in C:\)

and the notepad didnt open at all
akshaymys is offline   Reply With Quote
Old 03-06-08, 07:52 PM   #12
Platinum Member
 
whitestar_999's Avatar
 
Join Date: Jan 2008
Location: UP(west)
Posts: 1,971
Blog Entries: 1
Rep Power: 3
whitestar_999 will become famous soon enough
Default

Quote:
C:\tst\TST10.exe\r:reboot.txt
no double quotes & no space


"C:\tst10.exe" /r:reboot.txt

note space between tst10.exe & /r:rebbot.txt
On the Task tab you will see "Run", where the location of tst10.exe woold be present already. At the end of this line, outside the quotes, add /r:reboot.txt so it looks like
"C:\tst10.exe" /r:reboot.txt
whitestar_999 is offline   Reply With Quote
Old 03-06-08, 09:08 PM   #13
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default

i tried the following

C:\tst\TST10.exe /r:reboot.txt

it worked!!!!

BUT now
a menu opens "telnet scripting tool v1.1 by........"
waiting for login

[ BCM96338 ADSL Router
Login: admin
admin
Password: \admin ]

what to do now?
akshaymys is offline   Reply With Quote
Old 03-06-08, 09:13 PM   #14
Silver Member
 
Join Date: Jan 2008
Location: Chennai - Tamil Nadu - India
Age: 26
Posts: 418
Rep Power: 2
aruncse30 will become famous soon enough
Default

Quote:
Originally Posted by akshaymys View Post
i tried the following

C:\tst\TST10.exe /r:reboot.txt

it worked!!!!

BUT now
a menu opens "telnet scripting tool v1.1 by........"
waiting for login

[ BCM96338 ADSL Router
Login: admin
admin
Password: \admin ]

what to do now?

buddy can u attach the screen shot??
aruncse30 is offline   Reply With Quote
Old 03-06-08, 09:54 PM   #15
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default

Quote:
Originally Posted by aruncse30 View Post
buddy can u attach the screen shot??


here s the screen shot-----
Attached Files
File Type: zip untitled.zip (114.3 KB, 52 views)
akshaymys is offline   Reply With Quote
Old 03-07-08, 03:41 PM   #16
Silver Member
 
Join Date: Jan 2008
Location: Chennai - Tamil Nadu - India
Age: 26
Posts: 418
Rep Power: 2
aruncse30 will become famous soon enough
Default

Quote:
Originally Posted by akshaymys View Post
here s the screen shot-----
problem with the script only... use as it is.. wat i gave to u
aruncse30 is offline   Reply With Quote
Old 03-07-08, 04:53 PM   #17
Platinum Member
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 8,899
Blog Entries: 6
Rep Power: 19
just4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to behold
Default

The script for TST10.EXE is case sensitive and it depends upon the modem. For example my script (for UT-300R2U) is as follows:

Code:
192.168.1.1 23
WAIT "login:"
SEND "admin\m"
WAIT "password:"
SEND "<my_pwd>\m"
WAIT "$"
SEND "reboot\m"
WAIT "$"
Note that I have login: instead of Login:, etc. After the login I get a $ prompt, some routers get a > prompt - so that needs to be coded.

You must make sure of what the router login wants and code accordingly. To explain the router reboot script:

Line 1: 192.168.1.1 23: This tells TST10 that it should connect to IP address 192.168.1.1 on port number 23 (telnet port)
Line 2: WAIT "login:": This tells that router will display "login:" as the prompt and it is waiting for input.
Line 3: SEND "admin\m": This tells TST10 that it should send 'admin' as the input followed by ENTER (\m)
Line 4: WAIT "password:": This tells that router will display "password:" as the prompt and it is waiting for input.
Line 5: SEND "<my_pwd>\m": This tells TST10 that it should send '<my_pwd' as the input followed by ENTER (\m)
Line 6: WAIT "$": This tells that router will display "$" as the prompt and it is waiting for input.
Line 7: SEND "reboot\m": This tells TST10 that it should send 'reboot' as the input followed by ENTER (\m)
Line 8: WAIT "$": This tells that router will display "$" as the prompt and it is waiting for input.
__________________
*** Never argue with an idiot ***


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

-------------------------------------------------------------------------------------------
just4kix is offline   Reply With Quote
Old 03-07-08, 07:31 PM   #18
Silver Member
 
Join Date: Jan 2008
Location: Chennai - Tamil Nadu - India
Age: 26
Posts: 418
Rep Power: 2
aruncse30 will become famous soon enough
Default

Quote:
Originally Posted by just4kix View Post
The script for TST10.EXE is case sensitive and it depends upon the modem. For example my script (for UT-300R2U) is as follows:

Code:
192.168.1.1 23
WAIT "login:"
SEND "admin\m"
WAIT "password:"
SEND "<my_pwd>\m"
WAIT "$"
SEND "reboot\m"
WAIT "$"
Note that I have login: instead of Login:, etc. After the login I get a $ prompt, some routers get a > prompt - so that needs to be coded.

You must make sure of what the router login wants and code accordingly. To explain the router reboot script:

Line 1: 192.168.1.1 23: This tells TST10 that it should connect to IP address 192.168.1.1 on port number 23 (telnet port)
Line 2: WAIT "login:": This tells that router will display "login:" as the prompt and it is waiting for input.
Line 3: SEND "admin\m": This tells TST10 that it should send 'admin' as the input followed by ENTER (\m)
Line 4: WAIT "password:": This tells that router will display "password:" as the prompt and it is waiting for input.
Line 5: SEND "<my_pwd>\m": This tells TST10 that it should send '<my_pwd' as the input followed by ENTER (\m)
Line 6: WAIT "$": This tells that router will display "$" as the prompt and it is waiting for input.
Line 7: SEND "reboot\m": This tells TST10 that it should send 'reboot' as the input followed by ENTER (\m)
Line 8: WAIT "$": This tells that router will display "$" as the prompt and it is waiting for input.
im also having UT300R2U.. but still mine is accepting Login and not login
aruncse30 is offline   Reply With Quote
Old 03-07-08, 07:36 PM   #19
Platinum Member
 
whitestar_999's Avatar
 
Join Date: Jan 2008
Location: UP(west)
Posts: 1,971
Blog Entries: 1
Rep Power: 3
whitestar_999 will become famous soon enough
Default

siemens modems will accept only Login not login.
whitestar_999 is offline   Reply With Quote
Old 03-08-08, 02:01 PM   #20
Junior Member
 
Join Date: Feb 2008
Location: mysore
Posts: 24
Rep Power: 2
akshaymys is on a distinguished road
Default

i tried the following

192.168.1.1 23
WAIT "login:"
SEND "admin\m"
WAIT "password:"
SEND "admin\m"
WAIT "$"
SEND "reboot\m"
WAIT "$"


and it this screen appears (see attachmet)

what to do next? the modem did not reboot..
Attached Files
File Type: zip untitled.zip (94.6 KB, 22 views)
akshaymys is offline   Reply With Quote
Reply

Tags
auto, login, telnet

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Some important features of Indian Auto Market MyWay Cars in India 4 11-06-08 01:24 AM
Auto login problem akshaymys BSNL broadband 7 08-27-08 05:10 AM
How to login through portalid to check usage? sonsandeep BSNL broadband 1 03-01-08 01:35 PM
Auto Bid Systems, Inc. Announces Next Version of eNegotiation for Online Vehicle Guest PR Releases Database 0 03-16-07 03:48 AM
Bajaj Auto to stop manufacturing 100cc Platina in the next couple of years Guest News and Views from the Business World 0 12-02-06 02:40 AM


All times are GMT +5.5. The time now is 10:31 PM.


India Broadband Forum