Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RANCID: Users

patch to identify new "calhoun" platform C2950 uniquely

 

 

RANCID users RSS feed   Index | Next | Previous | View Threaded


afort at staff

Oct 15, 2001, 8:13 PM

Post #1 of 1 (215 views)
Permalink
patch to identify new "calhoun" platform C2950 uniquely

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

RANCID users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.