problem with Cat6000's

Terry Kennedy terry at tmk.com
Sun Jan 27 06:36:38 UTC 2002


  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