clogin -x fails when cisco prompt gets too long

Zhang, Anchi AZhang at reliant.com
Thu Feb 13 00:32:41 UTC 2003


No, it does not seem to work; I am getting the same result.  -anchi

-----Original Message-----
From: Rizzo, Joe [mailto:JRizzo at ea.com]
Sent: Wednesday, February 12, 2003 5:32 PM
To: Andrew Partan; Zhang, Anchi
Cc: rancid-discuss at shrubbery.net
Subject: RE: clogin -x fails when cisco prompt gets too long


Would this be an acceptable fix:

--- clogin.orig Wed Feb 12 15:24:34 2003
+++ clogin      Wed Feb 12 15:23:52 2003
@@ -458,7 +458,7 @@
        }
        regsub -all "\[)(]" $prompt {\\&} reprompt
        # match cisco config mode prompts too, but not for catalyst ie:
(enable)
-       regsub -all "\[#>]$" $reprompt {(\\([^\\r\\n]+\\))?&} reprompt
+        regsub -all "\[#>]$" $reprompt {(\(config\))?&} reprompt
        expect {
            -re $reprompt       {}
            -re "\[\n\r]+"      { exp_continue }

Thanks,
Joe




More information about the Rancid-discuss mailing list