Monitoring CPU usage over SNMP in IOS XR
SNMP on IOS XR is not documented at all right now in my opinion. Of course IOS XR supports standard base of MIB’s but if you want to monitor something platform specific it’s hard to guess which MIB you should use. SNMP Object Navigator on cisco.com does not know yet, there is such think as IOS XR or NX-OS.
I got this information from Cisco representative and I’m putting it here so you can use this too. I had to implement CPU usage monitoring on IOS XR for my customer, but unfortunately standard MIB’s were not working. On IOS XR you have to use cpmCPUTotalTable defined in CISCO-PROCESS-MIB
cpmCPUTotalIndex .22.214.171.124.126.96.36.199.188.8.131.52.1.1 cpmCPUTotalPhysicalIndex .184.108.40.206.220.127.116.11.18.104.22.168.1.2 cpmCPUTotal1minRev .22.214.171.124.126.96.36.199.188.8.131.52.1.7 cpmCPUTotal5minRev .184.108.40.206.220.127.116.11.18.104.22.168.1.8
cpmCPUTotalIndex is a unique value to identify each CPU but this is not fixed value. Then you need to check an entity with cpmCPUTotalPhysicalIndex as entPhysicalIndex.
Update: Same MIBs can be used to monitor supervisor usage on Nexus 7000