Alfred is right, it varies, but I'm
having pretty good luck with this approach:
If the snmp sysObjectID of the device
is 1.3.6.1.4.1.9.5.*
then it is a catalyst. Use the switch
mib. Its serial number is at ".1.3.6.1.4.1.9.5.1.2.19.0"
otherwise get its serial number from
the old temporary mib: ".1.3.6.1.4.1.9.3.6.3.0"
Similarly, for the model number:
If the snmp sysObjectID of the device
is 1.3.6.1.4.1.9.5.*
then it is a catalyst. Use the
switch mib. Its model number is at ".1.3.6.1.4.1.9.5.1.2.16.0"
otherwise, first try the Entity mib:
".1.3.6.1.2.1.47.1.1.1.1.2.1"
If nothing is there, try the old temporary
mib: ".1.3.6.1.4.1.9.3.6.1.0"
This customer has fairly current, and
fairly consistent, devices and code levels, and using this
approach we are able to populate serial
number and model fields very consistently.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
(248) 552-4968 Voicemail, Fax, Pager
REIBENSCHUH Alfred <alfred.reibenschuh AT it-austria DOT com>
Sent by: owner-nv-l AT lists.us.ibm DOT com
09/20/2005 05:02 AM
|
To
| "'nv-l AT lists.us.ibm DOT com'"
<nv-l AT lists.us.ibm DOT com>
|
cc
|
|
Subject
| RE: [nv-l] Serial Number
switch |
|
that depends entirely on the brand
of your switches.
if you have cisco you might want
to look at the ENTITY-MIB and CISCO-ENTITY-ASSET-MIB mibs.
please note that the serial numbers
retrieved from these mibs "MIGHT NOT" correspond with those
on the outside of the physical
parts.
cheers,
--
fredo
Diese Nachricht und allfällige
angehängte Dokumente sind vertraulich und nur für den/die Adressaten bestimmt.
Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung,
Weiterleitung oder sonstige Verwendung dieser Information nicht gestattet.
In diesem Fall bitten wir, den Absender zu verständigen und die Information
zu vernichten. Für Übermittlungsfehler oder sonstige Irrtümer bei Übermittlung
besteht keine Haftung.
This message and any attached
files are confidential and intended solely for the addressee(s). Any publication,
transmission or other use of the information by a person or entity other
than the intended addressee is prohibited. If you receive this in error
please contact the sender and delete the material. The sender does not
accept liability for any errors or omissions as a result of the transmission.
-----Original Message-----
From: Javier Morate Guerrero [mailto:jmorate AT carrefour DOT com]
Sent: Tuesday, September 20, 2005 8:56 AM
To: nv-l AT lists.us.ibm DOT com
Subject: [nv-l] Serial Number switch
Hi,
I need to obtain all the serial numbers of
the switches that there is in my network. Can you give me an idea?
Un saludo,
Francisco Javier Morate Guerrero
Dpto. Gestión de Sistemas
Carrefour España
jmorate AT carrefour DOT com
|