Discussion:
[rancid] Changes in "show inventory raw" every night on Cisco 6509 chassis
Tyler J. Wagner
2011-09-21 14:55:38 UTC
Permalink
Everyone,

I have a problem with rancid and one of my Cisco 6509 9-slot switch
chassis. I have two of them, nearly identical. One of them behaves normally
with rancid. On the other, the output of "show inventory raw" changes every
night. It is usually missing, some lines one night, then has them back the
next. So I get emails every night with:

Index: configs/switch01
===================================================================
retrieving revision 1.71
diff -u -4 -r1.71 switch01
@@ -288,8 +288,95 @@
!NAME: "Gi1/35", DESCR: "10/100/1000BaseT Gi1/35"
!PID: 0x
!VID: 0x
!SN: 0x
+ !NAME: "Gi1/36", DESCR: "10/100/1000BaseT Gi1/36"
+ !PID: 0x
+ !VID: 0x
+ !SN: 0x
+ !NAME: "Gi1/37", DESCR: "10/100/1000BaseT Gi1/37"
+ !PID: 0x
+ !VID: 0x
+ !SN: 0x
+ !NAME: "Gi1/38", DESCR: "10/100/1000BaseT Gi1/38"
....
+ !NAME: "module 5 device-1 temperature Sensor", DESCR: "module 5 device-1
temperature Sensor"
+ !NAME: "module 5 device-2 temperature Sensor", DESCR: "module 5 device-2
temperature Sensor"
+ !NAME: "module 5 asic-1 temperature Sensor", DESCR: "module 5 asic-1
temperature Sensor"
+ !NAME: "module 5 asic-2 temperature Sensor", DESCR: "module 5 asic-2
temperature Sensor"


The next night, the same email will have the above output with the lines
missing (prefixed by - signs).

The problem does not seem to happen when I run this command on console. The
output is consistent.

Does anyone have any ideas what is triggering, or how to solve this?

Regards,
Tyler
--
"... jingoism, racism, fear, religious fundamentalism: these are the
ways of appealing to people if you’re trying to organize a mass base
of support for policies that are really intended to crush them."
-- Noam Chomsky, in "Understanding Power"
john heasley
2011-09-21 17:50:59 UTC
Permalink
Post by Tyler J. Wagner
Everyone,
I have a problem with rancid and one of my Cisco 6509 9-slot switch
chassis. I have two of them, nearly identical. One of them behaves normally
with rancid. On the other, the output of "show inventory raw" changes every
night. It is usually missing, some lines one night, then has them back the
Index: configs/switch01
===================================================================
retrieving revision 1.71
diff -u -4 -r1.71 switch01
@@ -288,8 +288,95 @@
!NAME: "Gi1/35", DESCR: "10/100/1000BaseT Gi1/35"
!PID: 0x
!VID: 0x
!SN: 0x
+ !NAME: "Gi1/36", DESCR: "10/100/1000BaseT Gi1/36"
+ !PID: 0x
+ !VID: 0x
+ !SN: 0x
+ !NAME: "Gi1/37", DESCR: "10/100/1000BaseT Gi1/37"
+ !PID: 0x
+ !VID: 0x
+ !SN: 0x
+ !NAME: "Gi1/38", DESCR: "10/100/1000BaseT Gi1/38"
....
+ !NAME: "module 5 device-1 temperature Sensor", DESCR: "module 5 device-1
temperature Sensor"
+ !NAME: "module 5 device-2 temperature Sensor", DESCR: "module 5 device-2
temperature Sensor"
+ !NAME: "module 5 asic-1 temperature Sensor", DESCR: "module 5 asic-1
temperature Sensor"
+ !NAME: "module 5 asic-2 temperature Sensor", DESCR: "module 5 asic-2
temperature Sensor"
The next night, the same email will have the above output with the lines
missing (prefixed by - signs).
The problem does not seem to happen when I run this command on console. The
output is consistent.
most likely a cvs problem; look for cvs errors in the log file for the group.
otherwise, the device might not be displaying those lines reliably, though
you see no problem in your manual test.
Tyler J. Wagner
2011-10-11 15:55:14 UTC
Permalink
Post by john heasley
Post by Tyler J. Wagner
I have a problem with rancid and one of my Cisco 6509 9-slot switch
chassis. I have two of them, nearly identical. One of them behaves normally
with rancid. On the other, the output of "show inventory raw" changes every
night. It is usually missing, some lines one night, then has them back the
most likely a cvs problem; look for cvs errors in the log file for the group.
otherwise, the device might not be displaying those lines reliably, though
you see no problem in your manual test.
CVS seems fine, no errors in logs, no CVS lock files persist, "sudo -u
rancid cvs update -PdA" displays nothing of interest. Logs show CVS
generating a new revision.

Suppose my hardware is display changing output. How do I tell rancid to
ignore "show inventory raw" with respect to the nightly email or diff?

Regards,
Tyler
--
"To have a child is to give fate a hostage."
-- John F. Kennedy
Loading...