Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shutdown script

Status
Not open for further replies.

tombert

Technical User
Sep 9, 2005
5
US
Hello all,

I was wondering if there is a way to schedule a shutdown of a router, not a reload from a remote location ?

Thanks
 
There is no "shutdown" state on a router. If it's powered on, it's running. To shut it down remotely, you'd need something like a Western Telematic or APC remote-control power source.
 
I guess I should restate my question..

To Schedule a Shutdown of a serial, BRI, or ethernet interface not the router in general.

Thanks
 
Maybe you could use some sort of tftp server and a scheduled task from your OS to pass the script to the router at the desired time (you'd probably have to re-paste the whole running config over an IP connection, which may result in immediate disconnection if you use access lists).
Wait, i think i just proved my own suggestion couldn't work..never mind!

CCNA, CCDP, Net+, A+
Work Smarter, Not Harder....
 
You could probably use any terminal emulator with builtin macros to execute the script you want (i.e. shutting down interfaces etc). However the emulator itself will need to be time-controlled by some kind of app (no idea what that would be) to fire off the macro only at certain times.

Is this to try and achieve shutting out certain users from using a certain interface during certain hours? If so, why not just use timed acl's to achieve the same thing. That approach is a whole lot easier in my opinion than using the approach above.
 
Thanks KiscoKid,

The timed ACL will do the trick.
 
You could purchase one of those security light timers and actually have the router power on and off at a preset time. Little bit easier than programming timed access lists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top