DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

Automated Reboots...

More
05 Jul 2007 09:48 #43876 by spasticated
Replied by spasticated on topic Automated Reboots...
just to restart this trhead, would Hamways' script work on a 3300? anyone tried it?

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

More
06 Jul 2007 01:10 #43899 by peppery
Replied by peppery on topic Automated Reboots...
Has anyone managed to get these scripts to work in Windows whilst the OS is not logged on or whilst the Desktop is locked? If so what was required?
Thanks
Peppery

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

More
06 Jul 2007 07:43 #43902 by lorian
Replied by lorian on topic Automated Reboots...
You should be able to to make it into a background service using microsoft's instsrv.exe program, try googling for it.

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

More
15 Oct 2007 20:21 #45382 by andybill
Replied by andybill on topic expect-ations
has anyone tried to use the expect approach to actually configure a "blank" 2800 or similar? Ie if a router gets "in a mess", the remote branch offices does a factory reset, goes to a "rescueme" username /password agreed with the ISP and then the ops / helpdesk guys connect to it and send over a new config? I know there's the approach of using backups of config files, but its quicker to generate an expect script with 10 - 15 input variables than to generate a backup / config file for 150 plus routers ....
andy

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

More
22 Oct 2007 18:14 #45480 by andybill
Replied by andybill on topic Draytek?
any Draytek people watching this forum?
Just wondering if any response to my point - and also if there is any documentation available on the CLI (not just the command list spreadsheet that;s on draytek.com.au ), e.g. for setting up syslog and SNMP, etc

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

More
11 Dec 2007 06:36 #46274 by catzi
Replied by catzi on topic Automated Reboots...
An alternative I use to reboot my 2800G router is to set up a cron job with a shell script that uses wget:

#!/bin/sh
wget --http-user=admin --http-passwd=password --user-agent=Mozilla/5.0 'http://192.168.1.1/./cgi-bin/reboot.cgi?sReboot=Current'

Substitute the IP address and password as appropriate. You may wish to use a more secure method for the password but that isn't a problem for me. Note the script will reboot with the current configuration, substitute the keyword 'Default' for 'Current' if you want to reset to factory defaults.

The script can be automated with cron (for linux systems) or run from the command line. I think wget can also be downloaded for Windows boxes too.

Hope it's useful.

Iain

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

Moderators: ChrisSami