The problem is that i'd like to pull the following information :
- CPU name (eg: module 0/RSP0/CPU0)
- CPU usage last 1 minute
The index is at 1.3.6.1.4.1.9.9.109.1.1.1.1.2. The value(!) coming out of the oid's are then used as last numeral in the OID for the CPU name.
The problem is that i have to re-use the value of a certain OID as the last numeral in a different OID to get the name of the CPU.
Anyone who can help me with this problem?
See the explanation from the Cisco discussion forum :
-Obtaining PhysicalIndex mapping
NMS% snmpwalk -v2c -c <community_name> <router's IP address> 1.3.6.1.4.1.9.9.109.1.1.1.1.2
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2 = INTEGER: 52690955
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2082 = INTEGER:35271015
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2098 = INTEGER: 8695772
RP/0/RSP0/CPU0:ASR9000#sh platform
Node Type State Config State
----------------------------------------------------------------------------------------------------------
0/RSP0/CPU0 A9K-RSP-4G(Active) IOS XR RUN PWR,NSHUT,MON
0/0/CPU0 A9K-4T-E IOS XR RUN PWR,NSHUT,MON
0/1/CPU0 A9K-40GE-E IOS XR RUN PWR,NSHUT,MON
-Verifying which card should be used for polling
NMS% snmpwalk -v2c -c <community_name> <router's IP address> 1.3.6.1.2.1.47.1.1.1.1.7.52690955
SNMPv2-SMI::mib-2.47.1.1.1.1.7.52690955 = STRING: "module 0/RSP0/CPU0"
NMS% snmpwalk -v2c -c <community_name> <router's IP address> 1.3.6.1.2.1.47.1.1.1.1.7.35271015
SNMPv2-SMI::mib-2.47.1.1.1.1.7.35271015 = STRING: "module 0/0/CPU0"
NMS% snmpwalk -v2c -c <community_name> <router's IP address> 1.3.6.1.2.1.47.1.1.1.1.7.8695772
SNMPv2-SMI::mib-2.47.1.1.1.1.7.8695772 = STRING: "module 0/1/CPU0"
-Verifying CPU utilization for one minute (as an example)
NMS% snmpwalk -v2c -c <community_name> <router's IP address> 1.3.6.1.4.1.9.9.109.1.1.1.1.7.2
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.2 = Gauge32: 3