[nmglug] expect

Bill York iago at pobox.com
Tue May 23 16:44:39 PDT 2006


decidedly low-tech: attach a light timer. cisco routers do not need to
be downed nicely since there's no open files.

On 5/23/06, Aaron Birenboim NMOSUG <eunichs at boim.com> wrote:
> I need a script to re-boot my router every day or so.
> Too many outages.  (Cisco 678)
>
> Anybody have an expect script (or similar) to do this?
>
> Session would look something like:
>
> telnet 10.0.0.1 << EOF
> userPassword
> en
> SuperUserPassword
> reboot
> EOF
>
> of course we may need some 'expects' in between
> so the above responses come only AFTER the appropriate prompts.
>
>             aaron
>
>
>
> _______________________________________________
> nmglug mailing list
> nmglug at nmglug.org
> http://www.nmglug.org/mailman/listinfo/nmglug
>
>


-- 
bill, ke5hwy




More information about the nmglug mailing list