+ Post New Thread
Results 1 to 6 of 6
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 ...
  1. #1

    aerospacemango's Avatar
    Join Date
    Apr 2010
    Location
    Northants
    Posts
    1,994
    Thank Post
    283
    Thanked 249 Times in 200 Posts
    Blog Entries
    2
    Rep Power
    296

    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

  2. #2
    januttall's Avatar
    Join Date
    Sep 2010
    Posts
    225
    Thank Post
    17
    Thanked 28 Times in 28 Posts
    Blog Entries
    1
    Rep Power
    14
    best bet is to get a new router.

  3. #3

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,241
    Thank Post
    882
    Thanked 2,743 Times in 2,317 Posts
    Blog Entries
    11
    Rep Power
    784
    What kind of config interfaces does it have, telnet, ssh, http?

  4. #4

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,241
    Thank Post
    882
    Thanked 2,743 Times in 2,317 Posts
    Blog Entries
    11
    Rep Power
    784
    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}")

  5. #5

    aerospacemango's Avatar
    Join Date
    Apr 2010
    Location
    Northants
    Posts
    1,994
    Thank Post
    283
    Thanked 249 Times in 200 Posts
    Blog Entries
    2
    Rep Power
    296
    Quote Originally Posted by SYNACK View Post
    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.

  6. #6

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,241
    Thank Post
    882
    Thanked 2,743 Times in 2,317 Posts
    Blog Entries
    11
    Rep Power
    784
    Last edited by SYNACK; 17th April 2012 at 02:50 PM.

  7. Thanks to SYNACK from:

    aerospacemango (17th April 2012)

SHARE:
+ Post New Thread

Similar Threads

  1. Logoff Script problems and GPO
    By placky in forum Windows
    Replies: 3
    Last Post: 27th March 2008, 06:03 PM
  2. Router Problem?
    By techyphil in forum Gaming
    Replies: 2
    Last Post: 21st January 2008, 07:00 PM
  3. Wireless router problem
    By richard in forum Wireless Networks
    Replies: 10
    Last Post: 12th April 2007, 09:53 PM
  4. Tests not showing in DPS (problem and solution!)
    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
  •