DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

Can I reboot my Draytek externally with a script?

  • killik
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 Aug 2016 00:41 #1 by killik
Hello.

I frequently need to reboot my Draytek router and I do that by either using the router's power switch or through its web configurator page.
It's a bit tedious task, so I was wondering if I can accomplish it faster with a batch/script file. I click it and the router reboots.
Is this possible? Is there some simple way I can do this?

thanks for your help.

My system:
Windows 10 Pro 64bit
Draytek Vigor 2760n
FW: 1.2.1.3

Please Log in or Create an account to join the conversation.

  • hornbyp
  • User
  • User
More
13 Aug 2016 17:37 #2 by hornbyp
In answer to your questions 1) Is it possible? => YES. 2) Is there some simple way to do this? => Probably nothing as simple as you'd like :|

I suppose the first question is why does it need rebooting frequently? ... have you tried to resolve the underlying issue?

Doesn't the 2760n have a 'scheduled reboot' facility? Would that help?

Otherwise, you need to script either the Telnet or Web GUI interface functions. With Telnet, the commands you need to issue are documented, but you need to find some scripting/programming tool to implement them. With the Web GUI, you could use a Windows batch script and CURL ... once you know how the interface works. You could use Telerik Fiddler to achieve that.

This might be of interest: http://blog.dotsmart.net/2008/02/14/draytek-vigor-2800-reboot-script , which is a similar method (javascript under Windows Scripting Host, to access the Web Gui)

Please Log in or Create an account to join the conversation.

  • killik
  • Topic Author
  • Offline
  • New Member
  • New Member
More
28 Aug 2016 02:36 #3 by killik
thanks, I created a small script which reboots the router through telnet. I am using this Telnet Scripting Tool to pass the necessary commands:
http://support.moonpoint.com/downloads/windows/network/Telnet/tst10.php

I needed this because I open many network connections at the same time (torrents, hundreds of Chrome tabs, online game) and sometimes after a long network uptime, either Windows or the router lose the internet connection and I need to reboot the router in order to get it back.
It doesnt happen often but it does happen.
Also I had no luck in making a successful Reconnect script for Jdownloader2 through its Wizard menu. This script solves the problem for good.

thanks again for the help.

Please Log in or Create an account to join the conversation.

  • hornbyp
  • User
  • User
More
30 Aug 2016 21:26 #4 by hornbyp

killik wrote: I am using this Telnet Scripting Tool to pass the necessary commands:
http://support.moonpoint.com/downloads/windows/network/Telnet/tst10.php



That's a useful little tool, that I wasn't aware of!

Please Log in or Create an account to join the conversation.