How do you do....it? Thread, Router problems and Scripting in Technical; Does anyone have a script for rebooting a router?
My problem is that our router keeps dropping out, and it'll ...
-
17th April 2012, 02:32 PM #1 Router problems and Scripting
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
-
-
IDG Tech News
-
17th April 2012, 02:36 PM #2 best bet is to get a new router.
-
-
17th April 2012, 02:38 PM #3 What kind of config interfaces does it have, telnet, ssh, http?
-
-
17th April 2012, 02:41 PM #4 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}")
-
-
17th April 2012, 02:42 PM #5 
Originally Posted by
SYNACK
What kind of config interfaces does it have, telnet, ssh, http?
It's a DrayTek Vigor2800 with telnet and http.
I've managed to find a script for re-booting > Draytek Vigor 2800 reboot script « Duncan Smart's Weblog
But don't know how to implement that into a script to test ping a couple of sites, before forcing a reboot of the router, if there's no response.
-
-
17th April 2012, 02:46 PM #6
Last edited by SYNACK; 17th April 2012 at 02:50 PM.
-
Thanks to SYNACK from:
aerospacemango (17th April 2012)
SHARE: 
Similar Threads
-
By placky in forum Windows
Replies: 3
Last Post: 27th March 2008, 06:03 PM
-
By techyphil in forum Gaming
Replies: 2
Last Post: 21st January 2008, 07:00 PM
-
By richard in forum Wireless Networks
Replies: 10
Last Post: 12th April 2007, 09:53 PM
-
By sahmeepee in forum ICT KS3 SATS Tests
Replies: 6
Last Post: 11th May 2006, 07:22 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules