Need to create a batch file to send "reload" command through telnet
Posted on 2006-04-11
I've got a problem with our internet router with the internet going slow in the mornings, this is easily fixed with a physical reboot of the router. I'm yet to find the problem. However, there are workers that get in early at about 6.30am to start work, and I get early morning calls if the internet isn't working :) So I was wondering if it's possible to write a batch file that basically opens up a dos window, writes "telnet 18.104.22.168 (the ip address of the internet router) and then after that, logs in with the password, then once dropped into the internet router's prompt, types "enable" and then "reload"
The router is a Cisco 827
This will cause the router to reload its config and bring the internet back up again, saving me an early morning wakeup call :-)
Can anyone give me a hand with this ?