Hello,
I have a rather funky problem with a few switches when adding them to NAV. Some of these swithes are *OLD* 2500 and 3500 series, and NAV will simply fail getting the serial info from the switches. Instead it will poll something like "0x0000F". I've been thinking for a long time that the serial OID was unsupported by the certain old IOS, but recently I've started seeing the same behavior on newer Cisco series such as the Catalyst 3560 series. NAV will fetch the serial info off some of these devices just perfect, while with some switches will return "Cisco 3560" as serial. I've tried added a fake serial on the few switches where I have this problem, but NAV often fails in general to poll port info etc off these devices with bogus serial info.
I've done some research on two EXACT same devices (series, IOS and bootstrap version) and here is the info:
Both devices show:
Cisco IOS Software, C3560 Software (C3560-IPBASEK9-M), Version 12.2(46)SE, RELEASE SOFTWARE (fc2) Copyright (c) 1986-2008 by Cisco Systems, Inc. Compiled Thu 21-Aug-08 15:26 by nachen Image text-base: 0x00003000, data-base: 0x01600000
ROM: Bootstrap program is C3560 boot loader BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(25r)SEC, RELEASE SOFTWARE (fc4)
SOME-HOSTNAME-SW uptime is 1 day, 10 hours, 48 minutes System returned to ROM by power-on System image file is "flash:c3560-ipbasek9-mz.122-46.SE.bin"
... and they both show their serial info in "show version" or "show hardware".
I can understand how it COULD fail on some devices for SOME reason, but why would it completely halt NAV from polling info properly? And can someone please report back if they have the same problem? (maybe it’s a bug worth troubleshooting?)
Have a very nice weekend everyone, and good luck with updating! (and maybe I see some of you in Barcelona next week) :)
------------------------------------------------------ Vidar Stokkenes Networking Consulant Dep. for networking og telecommunications HN IKT - Tromsø
Phone: (+47) 76 16 61 87 or (+47) 77 66 99 55 Cell: (+47) 95 87 99 42 e-mail: vidar.stokkenes@hn-ikt.no
Before printing, think about the environment
On Fri, 23 Jan 2009 09:55:27 +0100 Stokkenes Vidar Vidar.Stokkenes@hn-ikt.no wrote:
NAV will fetch the serial info off some of these devices just perfect, while with some switches will return "Cisco 3560" as serial. I've tried added a fake serial on the few switches where I have this problem, but NAV often fails in general to poll port info etc off these devices with bogus serial info.
[snip]
I can understand how it COULD fail on some devices for SOME reason, but why would it completely halt NAV from polling info properly? And can someone please report back if they have the same problem? (maybe it’s a bug worth troubleshooting?)
We do know of situations where something like this could possibly happen. Two typical cases are devices that report garbage binary data as serial numbers via SNMP, and devices that report identical bogus serial numbers, thus creating a duplicate problem.
In the case of binary garbage, getDeviceData is not always robust enough to filter this out, and once it tries to store the serial in the database, PostgreSQL shoots it down, and the collection run for that device may be aborted.
When it comes to duplicate serial numbers, getDeviceData will have a hard time trying to resolve it, since the data model doesn't support it. Trying to set the same serial number for two devices will cause a PostgreSQL integrity error, and most likely abort the collection run for the device whose serial number cannot be set.
The first problem is easier to solve than the second: Add more sanity checks to the serial number strings. The second problem is a very difficult one, as NAV relies on correct serial number retrieval to detect when a device has been replaced (either a module or a chassis).
In many cases, the problems with bogus and/or duplicate serial numbers can be resolved by upgrading the software on the devices, if at all possible.
Have a very nice weekend everyone, and good luck with updating! (and maybe I see some of you in Barcelona next week) :)
Same to you (except for the Barcelona part) :)