Support Center > Search Results > SecureKnowledge Details
How to query utilization of individual CPU cores via SNMP
Solution

To query the utilization of individual CPU cores via SNMP, send an SNMP Query for OID tree 1.3.6.1.4.1.2620.1.6.7.5 (.iso.org.dod.internet.private.enterprises.checkpoint.products.svn.svnPerf.multiProcTable)

Example output:

[Expert@HostName]# top -n 1  &&  snmpwalk -v2c -c public localhost 1.3.6.1.4.1.2620.1.6.7.5

Cpu0  :  2.2%us,  1.8%sy,  0.1%ni, 93.5%id,  1.6%wa,  0.0%hi,  0.8%si,  0.0%st
Cpu1  :  2.2%us,  1.4%sy,  0.0%ni, 95.7%id,  0.2%wa,  0.0%hi,  0.5%si,  0.0%st
Cpu2  :  2.3%us,  1.3%sy,  0.0%ni, 95.7%id,  0.2%wa,  0.0%hi,  0.5%si,  0.0%st
Cpu3  :  1.9%us,  1.4%sy,  0.0%ni, 95.8%id,  0.3%wa,  0.0%hi,  0.5%si,  0.0%st

SNMPv2-SMI::enterprises.2620.1.6.7.5.1.1.1.0 = INTEGER: 1      <--- Cpu0 core index
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.1.2.0 = INTEGER: 2      <--- Cpu1 core index
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.1.3.0 = INTEGER: 3      <--- Cpu2 core index
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.1.4.0 = INTEGER: 4      <--- Cpu3 core index
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.2.1.0 = INTEGER: 2      <--- Cpu0 User Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.2.2.0 = INTEGER: 2      <--- Cpu1 User Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.2.3.0 = INTEGER: 1      <--- Cpu2 User Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.2.4.0 = INTEGER: 2      <--- Cpu3 User Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.3.1.0 = INTEGER: 2      <--- Cpu0 System Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.3.2.0 = INTEGER: 2      <--- Cpu1 System Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.3.3.0 = INTEGER: 2      <--- Cpu2 System Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.3.4.0 = INTEGER: 2      <--- Cpu3 System Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.4.1.0 = INTEGER: 95     <--- Cpu0 Idle Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.4.2.0 = INTEGER: 96     <--- Cpu1 Idle Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.4.3.0 = INTEGER: 96     <--- Cpu2 Idle Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.4.4.0 = INTEGER: 96     <--- Cpu3 Idle Time
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.5.1.0 = INTEGER: 5      <--- Cpu0 Usage
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.5.2.0 = INTEGER: 4      <--- Cpu1 Usage
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.5.3.0 = INTEGER: 4      <--- Cpu2 Usage
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.5.4.0 = INTEGER: 4      <--- Cpu3 Usage
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.7.1.0 = INTEGER: 1060   <--- Cpu0 Interrupts
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.7.2.0 = INTEGER: 1042   <--- Cpu1 Interrupts
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.7.3.0 = INTEGER: 1042   <--- Cpu2 Interrupts
SNMPv2-SMI::enterprises.2620.1.6.7.5.1.7.4.0 = INTEGER: 1051   <--- Cpu3 Interrupts
[Expert@HostName]# 

 

Related solutions:

Give us Feedback
Please rate this document
[1=Worst,5=Best]
Comment