patch to identify new "calhoun" platform C2950 uniquely

Andrew Fort afort at staff.webcentral.com.au
Tue Oct 16 04:13:51 UTC 2001


the new catalyst 2950 switch uses a new hardware platform (called CALHOUN).

this patch (against 2.2b5 sources), makes rancid identify the new box as a
"2950" (it calls itself C2950 as opposed to C2900XL for the older model).

otherwise, the new switch is very similar to the old (more switchplane
bandwidth, no ISL trunks!), but I'd like it to be identified seperately in
my network (so I can grep rancid files to find the new babies for my live
inventory reports)

with the patch, the new switch diffs in like..

Index: configs/sw150.bne
===================================================================
retrieving revision 1.1
diff -u -4 -r1.1 sw150.bne
@@ -0,0 +1,305 @@
+ !RANCID-CONTENT-TYPE: cisco
+ !
+ !Chassis type: WS-C2950-24 - a 2950 switch

--diff--

--- rancid	Wed Aug  8 13:08:42 2001
+++ /usr/local/rancid/bin/rancid	Tue Oct 16 13:36:06 2001
@@ -212,6 +212,9 @@
 		$type = "12000";
 	    } elsif ( $1 =~ /1201[26]-8R\/GRP/) {
 		$type = "12000";
+	    } elsif ( $1 =~ /WS-C2950/) {
+		$type = "2950";
+		$device = "switch";
 	    } elsif ( $1 =~ /WS-C29/) {
 		$type = "2900XL";
 		$device = "switch";


--diff--

-amf



More information about the Rancid-discuss mailing list