problem with Cat6000's

john heasley heas at shrubbery.net
Mon Jan 28 01:14:31 UTC 2002


josh,

please report this to cisco.  make them fix thier stuff.

cat6509> (enable)  show ver 
WS-C6509 Software, Version NmpSW: 7.1(1)
Copyright (c) 1995-2001 by Cisco Systems
NMP S/W compiled on Nov 30 2001, 17:24:31

System Bootstrap Version: 5.3(1) 

Sun, Jan 27, 2002 at 01:36:38AM -0500, Terry Kennedy:
>   This is apparently a problem with the SSH implementation in CatOS - when
> RANCID says "exit", the switch closes the connection before echoing the 
> exit command, which causes the script to not see that things completed
> properly. The following diff shows a fix to cat5rancid to deal with this.
> Note that your line numbers will be different - I have other unrelated
> changes.
> 
> ***************
> *** 1051,1056 ****
> --- 1050,1060 ----
>   TOP: while(<INPUT>) {
>       tr/\015//d;
>       if (/> \(enable\) ?exit$/) {
> +       $clean_run=1;
> +       last;
> +     }
> +     # CatOS SSH client stomps on the "exit" command echo...
> +     if (/> \(enable\)*Connection*/) {
>         $clean_run=1;
>         last;
>       }
> 
>         Terry Kennedy             http://www.tmk.com
>         terry at tmk.com             New York, NY USA



More information about the Rancid-discuss mailing list