Mailing List Archive

Cisco switch config issues
I have been running rancid for a little more than a year now and have been
enduring the one little nagging problem I have... until today. :)

I have a cisco 3750 switch with vlans configured on it that keeps sending
me diffs for a non-change event. Here it is:

Index: configs/<ip addy here>
===================================================================
retrieving revision 1.17
diff -U4 -r1.17 <ip addy here>
@@ -59,19 +59,11 @@
!VTP: Local updater ID is <ip addt here> on interface Vl2 (lowest
numbered VLAN interface found)
!
!VLAN: VLAN Name Status Ports
!VLAN: ---- -------------------------------- ---------
-------------------------------
- !VLAN: 1 default active Gi1/0/9,
Gi1/0/10, Gi1/0/11
- !VLAN: Gi1/0/12,
Gi1/0/13, Gi1/0/14
- !VLAN: Gi1/0/15,
Gi1/0/16, Gi1/0/17
- !VLAN: Gi1/0/18,
Gi1/0/19, Gi1/0/20
- !VLAN: Gi1/0/21,
Gi1/0/22, Gi1/0/23
- !VLAN: Gi1/0/26
- !VLAN: 2 VLAN0002 active Gi1/0/1, Gi1/0/2,
Gi1/0/3
- !VLAN: Gi1/0/4, Gi1/0/5,
Gi1/0/6
- !VLAN: Gi1/0/7, Gi1/0/8
- !VLAN: 10 VLAN0010 active Gi1/0/24,
Gi1/0/25, Gi1/0/27
- !VLAN: Gi1/0/28
+ !VLAN: 1 default active Gi1/0/9,
Gi1/0/10, Gi1/0/11, Gi1/0/12, Gi1/0/13, Gi1/0/14, Gi1/0/15, Gi1/0/16,
Gi1/0/17, Gi1/0/18, Gi1/0/19, Gi1/0/20, Gi1/0/21, Gi1/0/22, Gi1/0/23,
Gi1/0/26
+ !VLAN: 2 VLAN0002 active Gi1/0/1, Gi1/0/2,
Gi1/0/3, Gi1/0/4, Gi1/0/5, Gi1/0/6, Gi1/0/7, Gi1/0/8
+ !VLAN: 10 VLAN0010 active Gi1/0/24,
Gi1/0/25, Gi1/0/27, Gi1/0/28
!VLAN: 1002 fddi-default act/unsup
!VLAN: 1003 token-ring-default act/unsup
!VLAN: 1004 fddinet-default act/unsup
!VLAN: 1005 trnet-default act/unsup


The information is just a slightly different format of the version from
before. Is there an easy way to "fix" this?

- Brian J.
Cisco switch config issues [ In reply to ]
> I have been running rancid for a little more than a year now and have been
> enduring the one little nagging problem I have... until today. :)
>
> I have a cisco 3750 switch with vlans configured on it that keeps sending
> me diffs for a non-change event. Here it is:
[snip]
> The information is just a slightly different format of the version from
> before. Is there an easy way to "fix" this?

This comes up a bit. Here's what I posted the last time:

--------
From: IN%"terry@tmk.com" 6-APR-2004 10:18:34.47
To: IN%"dcorbe at resultstel.com"
CC: IN%"rancid-discuss at shrubbery.net"
Subj: Re: [Fwd: [netops] switches router config diffs]

> I'm getting a lot of these on my Cisco Catalyst 2950 during every single
> rancid-run update. These are worthless diffs as there aren't any
> changes in configuration but changes in port status.

I know this one 8-)

I bet you have people accessing the switches with different terminal
width settings in their terminal programs. The VTY picks this up as part
of telnet option negotiations. Since RANCID is a non-interactive session
to the switch, it doesn't negotiate width.

Try this patch for clogin (you'll probably need to apply it manually):

*** 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

Terry Kennedy http://www.tmk.com
terry at tmk.com New York, NY USA
--------