India Broadband Forum


Need help with scheduling rebooting of Huawei router

This is a discussion on Need help with scheduling rebooting of Huawei router within the BSNL broadband forums, part of the Broadband Internet Service Providers category; Thanks for the gyan. I tried to reboot the router again using system restart command, but nothing happened. The IP ...

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 01-13-09, 11:56 AM   #11
Junior Member
 
Join Date: Jan 2009
Location: Bangalore
Age: 44
Posts: 24
Rep Power: 2
kinind is on a distinguished road
Default

Thanks for the gyan. I tried to reboot the router again using system restart command, but nothing happened. The IP no remained the same, and could browse all sites as usual. I gave the command again, but the response was 'CLI is locked, try after some time'. There was no rebooting of the router, which I checked on the BSNL self care portal.
I have also enclosed the modem page of Imrans BB helper, and also the log. There also the program was able to log in to the router, but the response was invalid. What might be the problem?
Attached Images
File Type: jpg screen shot 2_edited.jpg (43.7 KB, 15 views)
File Type: jpg screen shot 1_edited.jpg (50.5 KB, 13 views)
File Type: jpg Screenshot 3_edited.jpg (46.8 KB, 13 views)
kinind is offline   Reply With Quote
Old 01-13-09, 09:49 PM   #12
Guardian Angel
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 10,170
Blog Entries: 6
Rep Power: 23
just4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud of
Default

Try this method:

1) Configure your modem in PPPoE mode, i.e., autodial mode
2) download TST10 (google it) and save it in C:\Windows\System32 folder
3) create two text files

enable.txt
Code:
192.168.1.1 
WAIT "Login: "
SEND "admin\m"
WAIT "Password: "
SEND "admin\m"
WAIT "--> "
SEND "pppoe set transport 1 autoconnect enabled\m"
disable.txt
Code:
192.168.1.1
WAIT "Login: "
SEND "admin\m"
WAIT "Password: "
SEND "admin\m"
WAIT "--> "
SEND "pppoe set transport 1 disabled\m"
4) create two .bat files (open notepad and save as "routerON.bat" and "routerOFF.bat")
with the following contents

routerON.bat
Code:
chdir C:\RouterSwitch
c:
TST10 /r:enable.txt /o:last_log.txt
routerOFF.bat
Code:
chdir C:\RouterSwitch
c:
TST10 /r:disable.txt /o:last_log.txt
5) Create an empty file called last_log.txt to diagnose output of the last run script. Save all the files enable.txt, disable.txt, routerON.bat, routerOFF.bat
in C:\RouterSwitch

6) schedule the routerOFF.bat to run 1:50 am and 7:55 am

7) schedule the routerON.bat to run 2:05am and once again at 8:05 am.
__________________
*** Never argue with an idiot. ***

All my useful articles and Guides | My Movie Collection | My Blogs
-------------------------------------------------------------------------------------------
just4kix is offline   Reply With Quote
Old 01-13-09, 10:05 PM   #13
Bronze Member
 
Join Date: Dec 2008
Posts: 108
Rep Power: 2
DM111PUSP is on a distinguished road
Default

Nice Idea...:4:

Is the scripts enable.txt & disable.txt applicable for any router or for Huawei only.
DM111PUSP is offline   Reply With Quote
Old 01-13-09, 10:09 PM   #14
Guardian Angel
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 10,170
Blog Entries: 6
Rep Power: 23
just4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud of
Default

Quote:
Originally Posted by DM111PUSP View Post
Nice Idea...:4:

Is the scripts enable.txt & disable.txt applicable for any router or for Huawei only.
The above script will work for MT882 only.
just4kix is offline   Reply With Quote
Old 01-14-09, 11:23 AM   #15
Junior Member
 
Join Date: Jan 2009
Location: Bangalore
Age: 44
Posts: 24
Rep Power: 2
kinind is on a distinguished road
Default

I did all that you have mentioned. My modem is already configured in pppoe mode. I created the .txt and .bat files as you mentioned, and scheduled them at the specified times. No reboot of the router occurred, and the last_log.txt folder is empty.
What may be the problem ?
Attached Images
File Type: jpg Screenshot 4_edited.jpg (61.5 KB, 11 views)
File Type: jpg Screenshot 5_edited.jpg (53.9 KB, 10 views)
kinind is offline   Reply With Quote
Old 01-14-09, 11:38 AM   #16
Guardian Angel
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 10,170
Blog Entries: 6
Rep Power: 23
just4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud of
Default

Quote:
Originally Posted by kinind View Post
I did all that you have mentioned. My modem is already configured in pppoe mode. I created the .txt and .bat files as you mentioned, and scheduled them at the specified times. No reboot of the router occurred, and the last_log.txt folder is empty.
What may be the problem ?
Since I do not have your modem, I am not able to help further. I wish, I could.

What I posted was from a google search. You need to find the exact (telnet) command that will reboot the router.

Try this as a script:
Code:
192.168.1.1 23
WAIT "Login: "
SEND "admin\m"
WAIT "Password: "
SEND "admin\m"
WAIT "--> "
SEND "set reboot\m"
SEND "\035"
Or you can switch to bridge mode.

1. Configure in bridge mode
2. Create a dialer and call it "BSNL"
3. Create a batch file with the command:

connect.bat
rasdial BSNL admin <admin_password>

disconnect.bat
rasdial BSNL /disconnect

Schedule connect.bat at 2:05 AM and disconnect.bat at 7:55 am.

Also talk to superprash2003 and visit his blogsite. He is an expert.

Last edited by just4kix; 01-14-09 at 11:39 AM. Reason: Automerged Doublepost
just4kix is offline   Reply With Quote
Old 01-14-09, 02:08 PM   #17
Bronze Member
 
Join Date: Dec 2008
Posts: 108
Rep Power: 2
DM111PUSP is on a distinguished road
Default

Your problem is really interesting..
As nethack said:
"After issuing the command "system restart" if u r not able to issue any further commands (telnet disconnected).. this means ur OS inside ur router is restarted"
to confirm this issue can you please upload the screenshot of the usage page of BSNL for the last 3-4 days.

As just4kix said:
pppoe set transport 1 autoconnect enabled
pppoe set transport 1 disabled

can you try above commands manually (using windows telnet).

Other than theese two things if you could post the screenshot of the outputs of
1) ?/help command just after login to router from windows telnet.
2) pppoe ? command just after login to router from windows telnet.

It would be helpful to others..
DM111PUSP is offline   Reply With Quote
Old 01-14-09, 10:02 PM   #18
Junior Member
 
Join Date: Jan 2009
Location: Bangalore
Age: 44
Posts: 24
Rep Power: 2
kinind is on a distinguished road
Default

Thanx just4kix, Nethack and DM111PUSP for your inputs. Will definitely post the screen shots, and also mail to superprash. Thanx once again.

I have found that I can disconnect the router thru telnet with the command 'pppoe set transport 1 disabled', and reconnect the router thru the command ' pppoe set transport 1 autoconnect enabled'. Maybe if the code of the enable.txt and disable.txt mentioned in the post by Just4kix can be changed, then I may be able to connect. Please opine.

Last edited by kinind; 01-14-09 at 10:02 PM. Reason: Automerged Doublepost
kinind is offline   Reply With Quote
Old 01-14-09, 10:48 PM   #19
Bronze Member
 
Join Date: Dec 2008
Posts: 108
Rep Power: 2
DM111PUSP is on a distinguished road
Default

Quote:
Originally Posted by kinind View Post
I have found that I can disconnect the router thru telnet with the command 'pppoe set transport 1 disabled', and reconnect the router thru the command ' pppoe set transport 1 autoconnect enabled'. Maybe if the code of the enable.txt and disable.txt mentioned in the post by Just4kix can be changed, then I may be able to connect. Please opine.
I dont know too much about about TST10 but i have good experiance with "Imran's Broadband helper utility"

So you can use this approach with "Imran's BB helper utility":-

1) Within the application folder of s/w create two sub folders named Connect & Disconnect.

2) Copy BroadBand.exe to Connect folder as Connect.exe, Disconnect.exe in Disconnect folder.

3) Copy Reboot.txt to both folders

4) Change the contents of Reboot.txt under Connect folder to
Code:
192.168.1.1 
WAIT "*"
SEND "admin\m"
WAIT "*"
SEND "admin\m"
WAIT "*"
SEND "pppoe set transport 1 autoconnect enabled\m"
4) Change the contents of Reboot.txt under Disconnect folder to
Code:
192.168.1.1 
WAIT "*"
SEND "admin\m"
WAIT "*"
SEND "admin\m"
WAIT "*"
SEND "pppoe set transport 1 disabled\m"
5) Start Connect.exe and Disconnect.exe.

6) Schedule times for connection and disconnection in both instances.

Hope it will work.
(Note : if you use these scripts you will NOT get "Invalid Responce" message in the Log file as you are using wildcard * in WAIT statements.)
DM111PUSP is offline   Reply With Quote
Old 01-15-09, 12:08 AM   #20
Guardian Angel
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 10,170
Blog Entries: 6
Rep Power: 23
just4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud ofjust4kix has much to be proud of
Default

Quote:
Originally Posted by kinind View Post
Thanx just4kix, Nethack and DM111PUSP for your inputs. Will definitely post the screen shots, and also mail to superprash. Thanx once again.

I have found that I can disconnect the router thru telnet with the command 'pppoe set transport 1 disabled', and reconnect the router thru the command ' pppoe set transport 1 autoconnect enabled'. Maybe if the code of the enable.txt and disable.txt mentioned in the post by Just4kix can be changed, then I may be able to connect. Please opine.
In the scripts, please note the lines such as:

1. WAIT "Login: "
2. WAIT "Password: "
3. WAIT "--> "

The above commands mean:

1. A "Login: " prompt is displayed on screen and is waiting for user input
2. A "Password: " prompt is displayed on screen and is waiting for user input
3. A "--> " prompt is displayed on screen and is waiting for user input

The last WAIT command could wrong. Some router display a "$" sign as a prompt, others may display ">", etc. Then the command needs to be changed to:

WAIT "<exact prompt including spaces if any>"
just4kix is offline   Reply With Quote
Reply

Tags
huawei, rebooting, router, scheduling

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not 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
nokia-siemen C2110 router power problem lightgreen49 BSNL broadband 16 02-16-10 05:59 PM
LEO-150N-BT Wireless N Storage Router deepmohan Computer Accessories 0 02-14-10 12:02 AM


All times are GMT +5.5. The time now is 05:07 AM.


India Broadband Forum