How to get serial numbers from multiple Cisco devices?

Cooky

Golden Member
Apr 2, 2002
1,408
0
76
I'm tasked to audit our SmartNet entitlement, and one challenge I'm facing is how to extract the serial numbers from multiple devices that are not the same platform.

I suppose I can manually do a "show inventory" or "show version | inc Serial", but we have hundreds if not thousands of network devices so that doesn't fly.

I found some sites that state we can do it via SNMP:
snmpget -v1 -c communitystring hostorIP mib-2.47.1.1.1.1.11.1

However, it only works on certain platforms.

Does anyone have any idea how I can do it across all platforms automatically?

thanks,
 

Brovane

Diamond Member
Dec 18, 2001
6,044
2,341
136
I use the following snmp mib pulls to get the chassis ID from our Cisco equipment.

1.3.6.1.4.1.9.9.92.1.1.1.2
This works just our 4500 series stuff.

1.3.6.1.2.1.47.1.1.1.1.11 - This works on most of our equipment including 6500, 4500, 4000, 3500 switches 2800, 3800 routers.

1.3.6.1.4.1.9.5.1.2.19 - This works for our 3700 series switches

I haven't found one MIB that pulls consistently across all the platforms.
.
 

Cooky

Golden Member
Apr 2, 2002
1,408
0
76
thanks for your replies.

We're also exploring the option to run a script that executes the command "show snmp chassis", which only returns the serial number only.
However, once again it doesn't work on ALL Cisco platforms.

I looked into kiwi cattools, but it seems for config backup purpose...spidey does it work for getting serial numbers?
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
yes. Does the same thing - just grabs the mibs and puts everything in a nice table for you.