Minor fix for C5RSM reporting in RANCID

john heasley heas at shrubbery.net
Sat Feb 2 22:54:34 UTC 2002


i think you meant 'l?' in place of these 'o*'s

Fri, Feb 01, 2002 at 04:40:46PM -0500, Terry Kennedy:
>   There is a typo in IOS for the C5RSM (RSP2 for the Catalyst 5x00). If you
> do a "show diag", you'll see:
> 
> switch1-rsm#sh diag
> Slot 0:
>         Physical slot 0, ~physical slot 0xF, logical slot 0, CBus 1
> [snip]
>         EEPROM format version 1
>         C5IP controler, HW rev 7.05, board revision B0
>         Serial number: 13354953  Part number: 73-2119-08
> [snip]
> 
>   Note that "controller" is mis-spelled "controler". This causes RANCID to
> not match on the slot, giving a report like this:
> 
> [snip]
> !
> !Slot 0/: part 73-2119-08, serial 13354953
> !
> [snip]
> 
>   Applying the following patch to bin/rancid (note: your line numbers
> will probably be different):
> 
> *** rancid_orig	Thu Jan 17 15:41:36 2002
> --- rancid	Fri Feb  1 16:33:07 2002
> ***************
> *** 573,579 ****
>   	} elsif (/^\s*Slot (\d+) \(virtual\):/i) {
>   	    $slot = $1;
>   	    next;
> ! 	} elsif (/^\s*(.*Processor.*|.*controller|.*Chassis Interface), HW rev (\S+), board revision (\S+)/i) {
>   	    $board = $1;
>   	    $hwver = $2;
>   	    $boardrev = $3;
> --- 573,579 ----
>   	} elsif (/^\s*Slot (\d+) \(virtual\):/i) {
>   	    $slot = $1;
>   	    next;
> ! 	} elsif (/^\s*(.*Processor.*|.*contro*ler|.*Chassis Interface), HW rev (\S+), board revision (\S+)/i) {
>   	    $board = $1;
>   	    $hwver = $2;
>   	    $boardrev = $3;
> ***************
> *** 592,598 ****
>   		} elsif ($board =~ /ATM/) {
>   		    $board = "AIP";
>   		}
> ! 	    } elsif ($board =~ /(.*) controller/i) {
>   		$board = $1;
>   	    }
>   	    # hwucode{$slot} defined in ShowContCbus
> --- 592,598 ----
>   		} elsif ($board =~ /ATM/) {
>   		    $board = "AIP";
>   		}
> ! 	    } elsif ($board =~ /(.*) contro*ler/i) {
>   		$board = $1;
>   	    }
>   	    # hwucode{$slot} defined in ShowContCbus
> 
>   fixes the output, and the same C5IP now shows up as:
> 
> [snip]
> !
> !Slot 0/C5IP: hvers 7.05 rev B0 ucode 20.22
> !Slot 0/C5IP: software loaded from system 
> !Slot 0/C5IP: part 73-2119-08, serial 13354953
> !
> [snip]
> 
>         Terry Kennedy             http://www.tmk.com
>         terry at tmk.com             New York, NY USA



More information about the Rancid-discuss mailing list