[rancid] Re: Rancid 2.3.1 shows diff versions even when nothing has changed....hmm
john heasley
heas at shrubbery.net
Wed Mar 4 23:22:57 UTC 2009
Wed, Mar 04, 2009 at 10:57:12PM +0000, john heasley:
> Wed, Mar 04, 2009 at 09:33:19AM -0700, Travis Zadikem:
> > I am running rancid 2.3.1 (new install) and if I do a rancid-run it works
> > just fine, but if I run the same command a second time on it will show a
> > version different on some of the switches even though no change has been
> > done on the switch. For this to be truly effective I was wondering what the
> > fix is. Here is a sample of what it shows. It looks the problem is some
> > sort of wrapping issue. Any ideas? Thanks!
>
> Please try the attached clogin patch. One or two folks said that a version
> of this fixes this problem for them.
>
> If folks would confirm that it doesn't break SAN/PIX/ASA, catalysts, Cisco
> Nexus, Redback and Juniper ERX...I'd feel far more comfortable with comitting
> it.
Once again, this time with the attachment.
-------------- next part --------------
? ciscoips
? grancid.in
? ipslogin
? tlogin.in.badmerge
Index: clogin.in
===================================================================
RCS file: /home/rancid/.CVS/rancid/bin/clogin.in,v
retrieving revision 1.131
diff -d -u -r1.131 clogin.in
--- clogin.in 4 Mar 2009 22:46:11 -0000 1.131
+++ clogin.in 4 Mar 2009 23:22:49 -0000
@@ -868,9 +868,13 @@
if [ regexp -- ".*> .*enable" "$prompt" ] {
send "set length 0\r"
expect -re $prompt {}
+ send "set width 80\r"
+ expect -re $prompt {}
send "set logging session disable\r"
} else {
send "terminal length 0\r"
+ expect -re $prompt {}
+ send "terminal width 80\r"
}
expect -re $prompt {}
source $sfile
More information about the Rancid-discuss
mailing list