This is cobbled together from a couple of different places. I used my Ubuntu install to do this as I didn’t want to use Windows and I am not allowed to use my Mac at my work.
install net-snmp on Ubuntu with “sudo apt-get install net-snmp”
Once that is installed using this site to find the relevant snmp OID’s was pretty easy:
http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&substep=2&translate=Translate&tree=NO
Here are the two for S/N and Model#:
mib-2.47.1.1.1.1.11.1 – Cisco Serial #
mib-2.47.1.1.1.1.13.1 – Cisco Model#
Put into a command:
snmpget -v1 -c (community string) (ip address) (OID)
Then I just output this into a file and had everything from my network.
