- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI want to retrieve serial numbers from multiple devices using SNMP. I'm just using the net-snmp.org snmpget/snmpwalk tools
I am finding that the SNMP OID for serial numbers is different on different hardware, even with cisco, for example:
Cisco Aironet 1.3.6.1.4.1.9.9.92.1.1.1.2
Cisco 2950 1.3.6.1.4.1.9.3.6.3
Xerox printer 1.3.6.1.2.1.43.5.1.1.17.1
I dont really understand MIBS, but is there any way of constructing a MIB file or getting existing MIB files to extract serial numbers that would cover all SNMP products? Any comments and discussion which helps me understand how snmp works in this regard would also be appreciated
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: dkarpekinPosted on 2008-10-15 at 19:57:17ID: 22727806
MIB's - it is manufactureie devoped file, support certain functionality.
.1.11.1 = STRING: "FDC01235PAN"If you want to write a batch file to automate the process, follow these steps:
kiwi-catto ols-overvi ew/ (freeware for up to five devices) does a fine job of retrieving the serial number of routers and provides a nice inventory.
public/477 /SNMP/chas sis.shtml /docs/ios/ 12_3t/12_3 t4/feature / guide/gtp epudi.html
You need to check with manufacturies , if they do have MIB's allowing to pull serial#.
snmpwalk - basicly will show you available MIB's on particular hardware- therefore given you idea, what kind of info/statistics, you get retrive from device.
1.By telnet
Router# show inventory
2.snmpget -v1 -c communitystring hostorIP mib-2.47.1.1.1.1.11.1The output looks like this:
SNMPv2-SMI::mib-2.47.1.1.1
Download Gawk for Windows (awk) to parse the output from the snmpget command.
Install both tools in the same directory.
Create a text file that lists the router hostnames or IP addresses; name it Routers.txt.
Put the following in a batch file (I called mine Getsnscript.tx) and run it:
@echo off
for /F %%1 in ('type routers.txt') do snmpget -v1 -c
cisco %%1 mib-2.47.1.1.1.1.11.1 | awk -F" " "{ print $4 }"The output might look something like this:
C:netsnmpbin> getsnscript.bat
"FO234C35PXN"
"FTX093431P13
"FO234C35PXN"If you want, you can redirect it to a text file and import that text file to a spreadsheet. Of course, you can also get much more complex with the script and retrieve more information.
3.Use SNMP from a GUI application
Of course, there are always GUI applications that can accomplish the same thing as CLI scripts. I've found that Kiwi CatTools- http://www.kiwisyslog.com/
If your routers are newer and the results of the show inventory command are accurate, you should be able to easily retrieve your router's proper chassis serial number remotely over the network. However, with older models, you may have to first manually enter the router serial number into the IOS to be able to remotely retrieve it.
For Cisco in particular:
http://www.cisco.com/warp/
http://www.cisco.com/en/US
Other hardware needs to be confirm , if they can do so.