Cisco Chassis Information with SNMP
From NippAero
The ENTITY-MIB is useful for identifying serial numbers and daughter cards in a Cisco device.
SNMP Walk Serial Numbers
For example, you could walk the following OID to get the serial numbers of the chassis and cards installed in the router.
entPhysicalSerialNum .1.3.6.1.2.1.47.1.1.1.1.11.1 (SNMPv2-SMI::mib-2.47.1.1.1.1.11)
[root@linux]# snmpwalk -c public -v 1 testrouter .1.3.6.1.2.1.47.1.1.1.1.11 -On .1.3.6.1.2.1.47.1.1.1.1.11.1 = STRING: "FRK0843F1JH" .1.3.6.1.2.1.47.1.1.1.1.11.2 = "" .1.3.6.1.2.1.47.1.1.1.1.11.3 = STRING: "FOC08340VFF" .1.3.6.1.2.1.47.1.1.1.1.11.4 = "" .1.3.6.1.2.1.47.1.1.1.1.11.5 = STRING: "FOC100628DE" .1.3.6.1.2.1.47.1.1.1.1.11.6 = "" .1.3.6.1.2.1.47.1.1.1.1.11.7 = "" .1.3.6.1.2.1.47.1.1.1.1.11.8 = "" .1.3.6.1.2.1.47.1.1.1.1.11.9 = STRING: "FOC110WEXST" .1.3.6.1.2.1.47.1.1.1.1.11.10 = "" .1.3.6.1.2.1.47.1.1.1.1.11.11 = "" .1.3.6.1.2.1.47.1.1.1.1.11.12 = "" .1.3.6.1.2.1.47.1.1.1.1.11.13 = "" .1.3.6.1.2.1.47.1.1.1.1.11.14 = "" .1.3.6.1.2.1.47.1.1.1.1.11.15 = "" .1.3.6.1.2.1.47.1.1.1.1.11.16 = "" .1.3.6.1.2.1.47.1.1.1.1.11.17 = "" .1.3.6.1.2.1.47.1.1.1.1.11.18 = "" .1.3.6.1.2.1.47.1.1.1.1.11.19 = "" .1.3.6.1.2.1.47.1.1.1.1.11.20 = "" .1.3.6.1.2.1.47.1.1.1.1.11.21 = STRING: "FOC10782T5D"
ftp://ftp.cisco.com/pub/mibs/oid/ENTITY-MIB.oid
### THIS FILE WAS GENERATED BY MIB2SCHEMA "org" "1.3" "dod" "1.3.6" "internet" "1.3.6.1" "directory" "1.3.6.1.1" "mgmt" "1.3.6.1.2" "experimental" "1.3.6.1.3" "private" "1.3.6.1.4" "enterprises" "1.3.6.1.4.1" "mib-2" "1.3.6.1.2.1" "entityMIB" "1.3.6.1.2.1.47" "entityMIBObjects" "1.3.6.1.2.1.47.1" "entityMIBTraps" "1.3.6.1.2.1.47.2" "entityConformance" "1.3.6.1.2.1.47.3" "entityPhysical" "1.3.6.1.2.1.47.1.1" "entityLogical" "1.3.6.1.2.1.47.1.2" "entityMapping" "1.3.6.1.2.1.47.1.3" "entityGeneral" "1.3.6.1.2.1.47.1.4" "entPhysicalTable" "1.3.6.1.2.1.47.1.1.1" "entPhysicalEntry" "1.3.6.1.2.1.47.1.1.1.1" "entPhysicalIndex" "1.3.6.1.2.1.47.1.1.1.1.1" "entPhysicalDescr" "1.3.6.1.2.1.47.1.1.1.1.2" "entPhysicalVendorType" "1.3.6.1.2.1.47.1.1.1.1.3" "entPhysicalContainedIn" "1.3.6.1.2.1.47.1.1.1.1.4" "entPhysicalClass" "1.3.6.1.2.1.47.1.1.1.1.5" "entPhysicalParentRelPos" "1.3.6.1.2.1.47.1.1.1.1.6" "entPhysicalName" "1.3.6.1.2.1.47.1.1.1.1.7" "entPhysicalHardwareRev" "1.3.6.1.2.1.47.1.1.1.1.8" "entPhysicalFirmwareRev" "1.3.6.1.2.1.47.1.1.1.1.9" "entPhysicalSoftwareRev" "1.3.6.1.2.1.47.1.1.1.1.10" "entPhysicalSerialNum" "1.3.6.1.2.1.47.1.1.1.1.11" "entPhysicalMfgName" "1.3.6.1.2.1.47.1.1.1.1.12" "entPhysicalModelName" "1.3.6.1.2.1.47.1.1.1.1.13" "entPhysicalAlias" "1.3.6.1.2.1.47.1.1.1.1.14" "entPhysicalAssetID" "1.3.6.1.2.1.47.1.1.1.1.15" "entPhysicalIsFRU" "1.3.6.1.2.1.47.1.1.1.1.16" "entPhysicalMfgDate" "1.3.6.1.2.1.47.1.1.1.1.17" "entPhysicalUris" "1.3.6.1.2.1.47.1.1.1.1.18" "entLogicalTable" "1.3.6.1.2.1.47.1.2.1" "entLogicalEntry" "1.3.6.1.2.1.47.1.2.1.1" "entLogicalIndex" "1.3.6.1.2.1.47.1.2.1.1.1" "entLogicalDescr" "1.3.6.1.2.1.47.1.2.1.1.2" "entLogicalType" "1.3.6.1.2.1.47.1.2.1.1.3" "entLogicalCommunity" "1.3.6.1.2.1.47.1.2.1.1.4" "entLogicalTAddress" "1.3.6.1.2.1.47.1.2.1.1.5" "entLogicalTDomain" "1.3.6.1.2.1.47.1.2.1.1.6" "entLogicalContextEngineID" "1.3.6.1.2.1.47.1.2.1.1.7" "entLogicalContextName" "1.3.6.1.2.1.47.1.2.1.1.8" "entLPMappingTable" "1.3.6.1.2.1.47.1.3.1" "entAliasMappingTable" "1.3.6.1.2.1.47.1.3.2" "entPhysicalContainsTable" "1.3.6.1.2.1.47.1.3.3" "entLPMappingEntry" "1.3.6.1.2.1.47.1.3.1.1" "entLPPhysicalIndex" "1.3.6.1.2.1.47.1.3.1.1.1" "entAliasMappingEntry" "1.3.6.1.2.1.47.1.3.2.1" "entAliasLogicalIndexOrZero" "1.3.6.1.2.1.47.1.3.2.1.1" "entAliasMappingIdentifier" "1.3.6.1.2.1.47.1.3.2.1.2" "entPhysicalContainsEntry" "1.3.6.1.2.1.47.1.3.3.1" "entPhysicalChildIndex" "1.3.6.1.2.1.47.1.3.3.1.1" "entLastChangeTime" "1.3.6.1.2.1.47.1.4.1" "entityMIBTrapPrefix" "1.3.6.1.2.1.47.2" "entityCompliances" "1.3.6.1.2.1.47.3.1" "entityGroups" "1.3.6.1.2.1.47.3.2" "entityCompliance" "1.3.6.1.2.1.47.3.1.1" "entity2Compliance" "1.3.6.1.2.1.47.3.1.2" "entity3Compliance" "1.3.6.1.2.1.47.3.1.3" "entityPhysicalGroup" "1.3.6.1.2.1.47.3.2.1" "entityLogicalGroup" "1.3.6.1.2.1.47.3.2.2" "entityMappingGroup" "1.3.6.1.2.1.47.3.2.3" "entityGeneralGroup" "1.3.6.1.2.1.47.3.2.4" "entityPhysical2Group" "1.3.6.1.2.1.47.3.2.6" "entityLogical2Group" "1.3.6.1.2.1.47.3.2.7" "entityPhysical3Group" "1.3.6.1.2.1.47.3.2.8" "entityNotificationsGroup" "1.3.6.1.2.1.47.3.2.5"
Categories: Network Management | SNMP | Script | Cisco
