Jump to content

Recommended Posts

Posted

Does anyone have a script for rebooting a router?

 

My problem is that our router keeps dropping out, and it'll do it at the most inopportune moments! What I'm looking for is a way to schedule a script to ping an outside site or two, every few hours, and if they can't be reached, to reboot the router.

 

However, my knowledge of scripting doesn't extend that far, so I was wondering if anyone has something similar that I could adapt, or point me in the direction of something useful.

 

Many thanks!

 

Mango

Posted

Telnet Bat file - MSFN Forum

VBS for telnet

Set cloner = CreateObject("WScript.Shell")

cloner.run"cmd"

WScript.Sleep 500

 

cloner.SendKeys"telnet 0.0.0.0"

cloner.SendKeys("{Enter}")

WScript.Sleep 500

 

cloner.SendKeys"username here"

cloner.SendKeys("{Enter}")

WScript.Sleep 500

 

cloner.SendKeys"password here"

cloner.SendKeys("{Enter}")

WScript.Sleep 500

 

cloner.SendKeys"exit"

cloner.SendKeys("{Enter}")

WScript.Sleep 300

 

cloner.SendKeys"exit"

cloner.SendKeys("{Enter}")

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...