dscholtes
asked on
Reboot a router through a script, batch or exe
I have a router Huawei EchoLife HG520s, and I need a script, exe or batch file to reboot it automatically, in order to use it with other program to get a new ip automatically each 45 minutes.
Using Telnet I do the following to reboot:
C:\> Telnet 192.168.1.1
Password: *********
HG520s> set reboot
If is possible to get code this in a very simple exe or batch would be perfect, or any other solution is also appreciated.
Thanks
Using Telnet I do the following to reboot:
C:\> Telnet 192.168.1.1
Password: *********
HG520s> set reboot
If is possible to get code this in a very simple exe or batch would be perfect, or any other solution is also appreciated.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you for your help.
muchas gracias.
sorry if i wrote bad english.
muchas gracias.
sorry if i wrote bad english.
ASKER
It worked after i made some simple changes in the script according to my router, reading the article in the website of your source.
my script is:
192.168.1.1 23
WAIT "Password"
SEND "notan37facil\m"
WAIT "HG520s>"
SEND "set reboot\m"
WAIT "The system shell is being reset. Please wait..."