[rancid] Re: expect script help

Martin Barry marty at supine.com
Fri Jan 29 14:00:44 UTC 2010


$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


More information about the Rancid-discuss mailing list