09-14-2005 12:40 AM - edited 02-21-2020 12:23 AM
There's tree in Cat4000(IOS) MIB, that contains list of modules (with model name, s/n etc.). It looks like this (for module model, but the same goes for other info):
$ snmpbulkwalk -m /dev/null -t 10 -v 2c -Osqn -Iu vdcs09c -c ******** .1.3.6.1.4.1.9.9.92.1.1.1.3
.1.3.6.1.4.1.9.9.92.1.1.1.3.1 "WS-C4006"
.1.3.6.1.4.1.9.9.92.1.1.1.3.8 "WS-C4006"
.1.3.6.1.4.1.9.9.92.1.1.1.3.1000 "WS-X4014"
.1.3.6.1.4.1.9.9.92.1.1.1.3.2000 "WS-X4418-GB"
.1.3.6.1.4.1.9.9.92.1.1.1.3.3000 "WS-X4418-GB"
.1.3.6.1.4.1.9.9.92.1.1.1.3.4000 "WS-X4418-GB"
.1.3.6.1.4.1.9.9.92.1.1.1.3.5000 "WS-X4418-GB"
The problem is, that the list has no indication which module is in what slot. There is such a tree in Cat6K MIB, but that one does not work on Cat4K. Is there way to get this module-slot relation via SNMP?
Borek Lupomesky
09-15-2005 03:59 AM
Try using cardType (.1.3.6.1.4.1.9.3.6.11.1.2)
and correlate the output to cardSlotNumber (.1.3.6.1.4.1.9.3.6.11.1.7)
For example:
nms-server2:/home/nhabib> snmpwalk -c public nms-6509a cardType
OLD-CISCO-CHASSIS-MIB::cardType.11 = INTEGER: cat6k-wsx-6380-nam(1533)
OLD-CISCO-CHASSIS-MIB::cardType.12 = INTEGER: cat6k-wsx-6348-rj45(1514)
OLD-CISCO-CHASSIS-MIB::cardType.13 = INTEGER: unknown(1)
OLD-CISCO-CHASSIS-MIB::cardType.14 = INTEGER: cat6k-wsc-6500-sfm(1521)
OLD-CISCO-CHASSIS-MIB::cardType.15 = INTEGER: cat6k-wsx-sup2-2ge(1520)
OLD-CISCO-CHASSIS-MIB::cardType.16 = INTEGER: cat6k-wsf-6k-pfc2(4059)
OLD-CISCO-CHASSIS-MIB::cardType.17 = INTEGER: cat6k-msfc2(1510)
OLD-CISCO-CHASSIS-MIB::cardType.18 = INTEGER: cat6k-ws-svc-nam1(1542)
OLD-CISCO-CHASSIS-MIB::cardType.19 = INTEGER: wsx-6182-2pa(658)
OLD-CISCO-CHASSIS-MIB::cardType.20 = INTEGER: wsx-6182-2pa(658)
OLD-CISCO-CHASSIS-MIB::cardType.22 = INTEGER: wsx-6182-2pa(658)
OLD-CISCO-CHASSIS-MIB::cardType.23 = INTEGER: pa-atmdx-mm-oc3(410)
OLD-CISCO-CHASSIS-MIB::cardType.25 = INTEGER: pa-atmdx-mm-oc3(410)
OLD-CISCO-CHASSIS-MIB::cardType.26 = INTEGER: pa-possw-mm(565)
nms-server2:/home/nhabib> snmpwalk -c public nms-6509a cardSlotNumber
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.11 = INTEGER: 3
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.12 = INTEGER: 4
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.13 = INTEGER: 5
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.14 = INTEGER: 6
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.15 = INTEGER: 1
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.16 = INTEGER: 0
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.17 = INTEGER: 1
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.18 = INTEGER: 7
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.19 = INTEGER: 2
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.20 = INTEGER: 8
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.22 = INTEGER: 8
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.23 = INTEGER: 0
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.25 = INTEGER: 0
OLD-CISCO-CHASSIS-MIB::cardSlotNumber.26 = INTEGER: 1
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide