Page 1 of 2 12 LastLast
Results 1 to 25 of 32

Thread: Need help with scheduling rebooting of Huawei router

  1. #1
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

    Default Need help with scheduling rebooting of Huawei router

    Hi guys, Thanks to this forum, I downloaded Imran's broadband helper, and installed. The programs works well in all respects, except for the rebooting of the router (Huawei SmartAX MT882), which does not occur. The error log says login successful but invalid response. I tried to change the configuration of the router, without success.
    I then tried the method suggested by prash-babu of Prashanth speaks-technology, mentioned in this forum, ie creating .txt and .bat files, but I am unable to understand how to schedule the batch file to start at 2.05 and 7.58 am. I have windows vista.
    Any help would be gratefully accepted. Thanks in advance.

  2. #2
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    10 times
    Posts
    10,903

    Default

    I hope that you have installed the Telnet application in Vista. By default it is deactivated. Have you tried this method: Automatic rebooting of router at 2 AM and 8 AM

  3. #3
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

    Default

    Sorry, but Im a novice. How do I install the telnet application in Vista?. I just downloaded the file,extracted it and stored it in a separate folder in C drive, and added the .txt and .bat file to the same folder as mentioned by prash-babu.
    Also how do i make the method mentioned by greikor for Dlink router work for my Huawei SmartAX MT882 router (Details please, as i mentioned, Im a novice). Thanks for the prompt reply

  4. #4
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    10 times
    Posts
    10,903

    Default

    I do not have Vista but search for the topic on Google and you will get a million hits!

  5. #5
    Platinum Member
    Join Date
    Feb 2008
    Liked
    0 times
    Posts
    2,766

  6. #6
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

    Default

    I have still not succeeded. I installed Telnet in vista, scheduled to run restart.bat at 2.05 am and 7.05 am, enabled my norton firewall to allow Telnet to run, (my windows firewall is disabled), but still no reboot occurs, and I have to do it manually. Where am I going wrong ?.
    Earlier while using Imran's Broadband helper, the program successfully logged in to the modem (according to the error log provided in the program), but reboot did not occur, and log said invalid response.
    Also the task scheduler is different in vista. Can you please send me a link for the scheduling in vista.
    My modem is Huawei SmartAX MT882

  7. #7
    LEARNER
    Join Date
    Aug 2007
    Liked
    21 times
    Posts
    15,301

    Default

    Modem AX MT882 telnet commands for auto reboot.
    Query :

    Can you kindly confirm, this.
    Normally start Computer and modem
    either in Dialup mode or "Always On " mode.
    do you get connected to Internet and surf normally ?

    Info :
    In my modem AXMt882 ,I have to open IN IE
    h t t p://192.168.1.1/hwhtml/pMain.html admin admin
    then see the Summary page. Against 0_35
    Then click the Icon "NOTE" to get connected.

    Say power fails. Repeat above steps again.
    I have no explanation for this.

    2. Whereas with Beetel 110BX1 no problem.
    automatically connected. and restored.

    May be you can try a different modem.
    kindly give feedback either +ve or -ve. .
    Last edited by essbebe; 09-06-11 at 09:11 PM.

  8. #8
    Bronze Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    116

    Default

    Quote Originally Posted by kinind View Post
    Earlier while using Imran's Broadband helper, the program successfully logged in to the modem (according to the error log provided in the program), but reboot did not occur, and log said invalid response.
    The major advantage with "Imran's Broadband Helper Utility" is that it does not depend on Windows Telnet Program.
    The major problem with this s/w is that u need to learn(be aware) about some technical issues also.

    So what u need to learn:36: is here:
    http://www.indiabroadband.net/broadb...html#post34192 (Ultimate Night Usage Manager.)

    As far as Vista is concerned, u can find in that thread that a member have got succeded to configure this s/w for his Vista OS.

  9. #9
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

    Default

    Thanks nethack. My problem is that I am not able to reboot the router from TeLnet itself. I can connect to the router after login and password, but reboot command elicits no response. So i typed ? at the end of the --> prompt, and this opened a list of configurations for the modem. Next I typed system space ?, which opened the system submenu, under which was listed system restart. I typed system restart space ?, and it said valid command. So at the next prompt I typed system restart and pressed enter, but nothing happened, and the router did not restart. Any further typing in telnet would lead to disconnection from the router.
    I would have loved to send you the actual transcripts in telnet, but I dont know how!. Please help

  10. #10
    Bronze Member
    Join Date
    Aug 2008
    Liked
    0 times
    Posts
    116

    Default

    Quote Originally Posted by kinind View Post
    Thanks nethack. My problem is that I am not able to reboot the router from TeLnet itself. I can connect to the router after login and password, but reboot command elicits no response. So i typed ? at the end of the --> prompt, and this opened a list of configurations for the modem. Next I typed system space ?, which opened the system submenu, under which was listed system restart. I typed system restart space ?, and it said valid command. So at the next prompt I typed system restart and pressed enter, but nothing happened, and the router did not restart. Any further typing in telnet would lead to disconnection from the router.
    I would have loved to send you the actual transcripts in telnet, but I dont know how!. Please help
    "I typed system restart and pressed enter, but nothing happened, and the router did not restart. Any further typing in telnet would lead to disconnection from the router"

    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, may be ur modem lights does not reflect this fact..
    u can verify this fact by opening What Is My IP Address? - IP Address Lookup, Internet Speed Test, IP Info, plus more before and after issuing the command "system restart"

    "I would have loved to send you the actual transcripts in telnet, but I dont know how!."
    u just need to use PrintScreen button and MS-Paint to capture and save screen shots.

  11. #11
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

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

  12. #12
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    10 times
    Posts
    10,903

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


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

    -------------------------------------------------------------------------------------------

  13. #13
    Bronze Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    108

    Default

    Nice Idea...:4:

    Is the scripts enable.txt & disable.txt applicable for any router or for Huawei only.

  14. #14
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    10 times
    Posts
    10,903

    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.

  15. #15
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

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

  16. #16
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    10 times
    Posts
    10,903

    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 12:39 PM. Reason: Automerged Doublepost

  17. #17
    Bronze Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    108

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

  18. #18
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

    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 11:02 PM. Reason: Automerged Doublepost

  19. #19
    Bronze Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    108

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

  20. #20
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    10 times
    Posts
    10,903

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

  21. #21
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

    Default

    I would like to try Imrans BB helper first. I have one question for DM111PUSP. Do I have to use the disable/enable NIC settings also, or is it enough if I schedule the timings of the Connect.exe and Disconnect.exe, and tick the box use modem reboot service?. I want to schedule Disconnect.exe for 1.56 AM, 2.10 AM and 7.56 AM, and Connect.exe for 2.03 AM, 2.13 AM and 8.03 AM. Is it required to enable/disable NIC in each, and if so at what times?

  22. #22
    Bronze Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    108

    Default

    Quote Originally Posted by kinind View Post
    I would like to try Imrans BB helper first. I have one question for DM111PUSP. Do I have to use the disable/enable NIC settings also, or is it enough if I schedule the timings of the Connect.exe and Disconnect.exe, and tick the box use modem reboot service?. I want to schedule Disconnect.exe for 1.56 AM, 2.10 AM and 7.56 AM, and Connect.exe for 2.03 AM, 2.13 AM and 8.03 AM. Is it required to enable/disable NIC in each, and if so at what times?
    If after running the command pppoe set transport 1 disabled\m, if the connection to internet is lost then there is no need to use disable/enable NIC feature.
    Otherwise.. you can use this feature also in any one instance or in both instance, but remember one thing if NIC is disabled at a particular time.. none of the instance will be able to execute their script at that time.

    One more thing.. if you are using the connectivity feature during the night time and for any reason if the s/w detect that there is no connectivity for the last few minutes then it automatically execute the reboot(Reboot.txt) script.. so if you want to use the connectivity feature then use it in Connect.exe only.
    Last edited by DM111PUSP; 01-15-09 at 07:10 PM.

  23. #23
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

    Default

    Yahoooooooo!!!!!!!!!!!!!!. My problem has finally been solved. Thanx a millllllllion DM111PUSP, ur a genius. The connect.exe and disconnect.exe did the trick. Thanx also to Just4kix, Superprash and Nethack, you all have been a great help.

    DM111PUSP, I did not understand your statement - 'One more thing.. if you are using the connectivity feature during the night time and for any reason if the s/w detect that there is no connectivity for the last few minutes then it automatically execute the reboot script.. so if you want to use the connectivity feature then use it in Connect.exe only.' I have to to use disconnect.exe to disconnect the modem at 1.55 AM, and just to be on the safer side, again at 2.10 AM, and use Connect.exe to reconnect the modem at 2.03 AM and 2.13 AM. How can I use only the Connect.exe for the night?

  24. #24
    Bronze Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    108

    Default

    Quote Originally Posted by kinind View Post
    Yahoooooooo!!!!!!!!!!!!!!. My problem has finally been solved. Thanx a millllllllion DM111PUSP, ur a genius. The connect.exe and disconnect.exe did the trick. Thanx also to Just4kix, Superprash and Nethack, you all have been a great help.

    DM111PUSP, I did not understand your statement - 'One more thing.. if you are using the connectivity feature during the night time and for any reason if the s/w detect that there is no connectivity for the last few minutes then it automatically execute the reboot script.. so if you want to use the connectivity feature then use it in Connect.exe only.' I have to to use disconnect.exe to disconnect the modem at 1.55 AM, and just to be on the safer side, again at 2.10 AM, and use Connect.exe to reconnect the modem at 2.03 AM and 2.13 AM. How can I use only the Connect.exe for the night?
    hey.. I am not a genious man.. especially in front of Just4kix, Superprash and Nethack.. i am just a small creative user.

    I was only talking about the Connectivity Service (4th tab) of the s/w.. if you are not going to use it then there is no issues.

  25. #25
    Junior Member
    Join Date
    Jan 2009
    Age
    45
    Liked
    0 times
    Posts
    24

    Default

    Understood. Thanks again.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. nokia-siemen C2110 router power problem
    By lightgreen49 in forum BSNL broadband
    Replies: 16
    Last Post: 02-16-10, 06:59 PM
  2. LEO-150N-BT Wireless N Storage Router
    By deepmohan in forum Computer Accessories
    Replies: 0
    Last Post: 02-14-10, 01:02 AM