Mailing List Archive

Minor fix for C5RSM reporting in RANCID
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
Minor fix for C5RSM reporting in RANCID [ In reply to ]
On Fri, Feb 01, 2002 at 04:40:46PM -0500, Terry Kennedy wrote:
> There is a typo in IOS for the C5RSM (RSP2 for the Catalyst 5x00). If you
> do a "show diag", you'll see:

What is the cisco bugid? What version(s) of s/w does this exist in?

I don't really want to much rancid over for every little bug typo
in every vendor's code, esp if this is for a limited set of versions.
If the bug is wide-spread, then I could see perhaps doing it.

--asp
Minor fix for C5RSM reporting in RANCID [ In reply to ]
> On Fri, Feb 01, 2002 at 04:40:46PM -0500, Terry Kennedy wrote:
> > There is a typo in IOS for the C5RSM (RSP2 for the Catalyst 5x00). If you
> > do a "show diag", you'll see:
>
> What is the cisco bugid? What version(s) of s/w does this exist in?

No bug ID (that I know of). A search of the bug toolkit for "controler"
only shows some of the same typo in bug notes for unrelated problems. But
since this would be a P5 (or lower) bug, it may not show up there. Similar-
ly, it would probably be pretty low on the list to get fixed, and many of
the releases it is present in are EOL anyway.

I have verified it is present in:

11.2(18)P *
11.3(11)T *
12.0(9)W5-17 *
12.1(9)
12.2(6a)

The above noted with "*" were done by downloading the image, uncompressing
it, and searching for "controler". The ones without "*" were actually observed
on a running C5RSM.

Further, I looked in rsp-jsv-mz.122-7.bin (which doesn't run on the C5RSM!)
and it even shows up there.

> I don't really want to much rancid over for every little bug typo
> in every vendor's code, esp if this is for a limited set of versions.
> If the bug is wide-spread, then I could see perhaps doing it.

I'd say that based on the above, it is pretty widespread - it looks like
it is in every IOS ever built that includes C5IP device support, including
some that don't even run on that hardware.

Terry Kennedy http://www.tmk.com
terry at tmk.com New York, NY USA
Minor fix for C5RSM reporting in RANCID [ In reply to ]
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
Minor fix for C5RSM reporting in RANCID [ In reply to ]
i do not have a ddts, but cisco will be generating one fore this bug.

> 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]
> >
Minor fix for C5RSM reporting in RANCID [ In reply to ]
On Fri, Feb 01, 2002 at 06:47:27PM -0500, Terry Kennedy wrote:
> No bug ID (that I know of). A search of the bug toolkit for "controler"
> only shows some of the same typo in bug notes for unrelated problems. But
> since this would be a P5 (or lower) bug, it may not show up there. Similar-
> ly, it would probably be pretty low on the list to get fixed, and many of
> the releases it is present in are EOL anyway.
>
> I have verified it is present in:
>
> 11.2(18)P *
> 11.3(11)T *
> 12.0(9)W5-17 *
> 12.1(9)
> 12.2(6a)

Silly cisco. I've just commited a change that should handle this.
--asp

--- rancid.in.old Sat Mar 2 18:58:14 2002
+++ rancid.in Sat Mar 2 19:28:37 2002
@@ -573,7 +573,7 @@
} elsif (/^\s*Slot (\d+) \(virtual\):/i) {
$slot = $1;
next;
- } elsif (/^\s*(.*Processor.*|.*controller|.*Chassis Interface)(, FRU\s?:.*)?, HW rev (\S+), board revision (\S+)/i) {
+ } elsif (/^\s*(.*Processor.*|.*controller|.*controler|.*Chassis Interface)(, FRU\s?:.*)?, HW rev (\S+), board revision (\S+)/i) {
$board = $1;
$hwver = $3;
$boardrev = $4;