[rancid] Re: Vlans getting toggled on Cisco 6500

john heasley heas at shrubbery.net
Thu Jan 11 20:10:34 UTC 2007


I am still concerned about how this will affect other users of clogin.
Specifically, Cisco CSS, Force10, Juniper ERX, Procket, Redback, and
Extreme.

Could those with access to these please try this patch?

Wed, Jan 10, 2007 at 05:51:42PM -0600, Justin Shore:
> Here's the patch against RANCID 2.3.2a5.

*** clogin_orig Fri Aug  9 16:54:10 2002
--- clogin      Sun Apr  6 19:20:42 2003
***************
*** 455,460 ****
--- 455,462 ----
            send "set length 0\r"
        } else {
            send "term length 0\r"
+           expect -re $prompt  {}
+           send "term width 80\r"
        }
        regsub -all "\[)(]" $prompt {\\&} reprompt
        # match cisco config mode prompts too, but not for catalyst ie:
(enable)
***************
*** 699,704 ****
--- 701,708 ----
            send "set logging session disable\r"
        } else {
            send "term length 0\r"
+           expect -re $prompt  {}
+           send "term width 80\r"
        }
        expect -re $prompt      {}
        source $sfile


RANCID 2.3.2a6

Index: clogin.in
===================================================================
RCS file: /home/rancid/.CVS/rancid/bin/clogin.in,v
retrieving revision 1.107
diff -d -u -r1.107 clogin.in
--- clogin.in	8 Dec 2006 21:28:25 -0000	1.107
+++ clogin.in	11 Jan 2007 03:51:29 -0000
@@ -582,6 +582,8 @@
 	    set command "set logging session disable;$command"
 	} else {
 	    send "term length 0\r"
+	    expect -re $prompt  {}
+	    send "term width 80\r"
 	}
 	# escape any parens in the prompt, such as "(enable)"
 	regsub -all {[)(]} $prompt {\\&} reprompt
@@ -869,6 +871,8 @@
 	    send "set logging session disable\r"
 	} else {
 	    send "term length 0\r"
+	    expect -re $prompt  {}
+	    send "term width 80\r"
 	}
 	expect -re $prompt	{}
 	source $sfile




More information about the Rancid-discuss mailing list