[rancid] Re: expect script help

Brian Lam blam at rockyou.com
Fri Jan 29 18:32:00 UTC 2010


thank you.  i should be able to figure out from here.  i will let you know.

On Fri, Jan 29, 2010 at 6:00 AM, Martin Barry <marty at supine.com> wrote:

> $quoted_author = "Brian Lam" ;
> >
> > The expect / python script /usr/local/rancid/bin/clogin was looping
> because
> > my router doesn't like 'exit' and prefer 'quit'.
>
> You can either modify the following to match the 'force10' platform (does
> the newer one accept quit?)
>
> # line 678
>    if { [ string compare "extreme" "$platform" ] } {
>        send -h "exit\r"
>    } else {
>        send -h "quit\r"
>    }
>
>
> or you could add a stanza in the next section to catch the error thrown
> when
> sending 'exit' to old force10.
>
> cheers
> Marty
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>



-- 
Brian Lam | IT/Operations | Rockyou, Inc. | Phone: 408-425-9801 | AIM:
brianclam2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100129/65b59480/attachment.html 


More information about the Rancid-discuss mailing list