CPU utilization is the sum of work handled
by a Central Processing Unit. It is also used to estimate system
performance. CPU utilization can vary according to the type and amount
of computing task because some tasks require heavy CPU time while others
require less CPU time. Process time is another name for CPU time and is
the amount of time used by a CPU for processing instruction of an
operating system or a computer program. CPU time is quantified in clock
ticks or seconds. CPU utilization
shows the burden on a processor in terms of percentage that indicates
if any changes are to be made in the system otherwise it may get
exhausted of capacity.
CPU utilization can be calculated by using the following formulas.
Let us define CPU utilization as U
U = 100% - (Percentage of time that is spent in idle task)
% time in idle task =
(Take the average time period of background task without load) * 100%
-------------------------------------------------------------------------------------------------------
(Avg. period of background task including some load)
Percentage time in idle task =
(BG loop count computed during 25 ms) *100%
----------------------------------------------------------------------
(BG loop count projected in an unloaded CPU)
Actual % =
Scaled % * (100%)
------------------------------
max value 8 bit value
Note: CPU utilization upsurges when a system process requires more time.
1. OID for CPU Utilization
CPU utilization can be calculated by using the following formulas.
Let us define CPU utilization as U
U = 100% - (Percentage of time that is spent in idle task)
% time in idle task =
(Take the average time period of background task without load) * 100%
-------------------------------------------------------------------------------------------------------
(Avg. period of background task including some load)
Percentage time in idle task =
(BG loop count computed during 25 ms) *100%
----------------------------------------------------------------------
(BG loop count projected in an unloaded CPU)
Actual % =
Scaled % * (100%)
------------------------------
max value 8 bit value
Note: CPU utilization upsurges when a system process requires more time.
1. OID for CPU Utilization
hrDeviceIndex 1.3.6.1.2.1.25.3.2.1.1
hrDeviceDescr hrDeviceDescr 1.3.6.1.2.1.25.3.2.1.3
hrProcessorFrwID hrProcessorFrwID 1.3.6.1.2.1.25.3.3.1.1
hrProcessorLoad hrProcessorLoad 1.3.6.1.2.1.25.3.3.1.2
2. Sample for SNMPwalk for CPU Utilization Appliance
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.11 sysDescr
SNMPv2-MIB::sysDescr.0 = STRING: Palo Alto Networks PA-3000 series firewall
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.11 1.3.6.1.2.1.25.3.2.1.1
HOST-RESOURCES-MIB::hrDeviceIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrDeviceIndex.2 = INTEGER: 2
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.11 1.3.6.1.2.1.25.3.2.1.3
HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: Management Processor
HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: Slot-1 Data Processor
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.11 1.3.6.1.2.1.25.3.3.1.1
HOST-RESOURCES-MIB::hrProcessorFrwID.1 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.2 = OID: SNMPv2-SMI::zeroDotZero
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.11 1.3.6.1.2.1.25.3.3.1.2
HOST-RESOURCES-MIB::hrProcessorLoad.1 = INTEGER: 3
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 6
[root@TeguhLab ~]#
3. Sample for SNMPwalk for CPU Utilization Linux
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.10 sysDescr
SNMPv2-MIB::sysDescr.0 = STRING: Linux TeguhLab 2.6.32-642.el6.x86_64 #1 SMP Wed Apr 13 00:51:26 EDT 2016 x86_64
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.10 1.3.6.1.2.1.25.3.2.1.1
HOST-RESOURCES-MIB::hrDeviceIndex.196608 = INTEGER: 196608
HOST-RESOURCES-MIB::hrDeviceIndex.196609 = INTEGER: 196609
HOST-RESOURCES-MIB::hrDeviceIndex.196610 = INTEGER: 196610
HOST-RESOURCES-MIB::hrDeviceIndex.196611 = INTEGER: 196611
HOST-RESOURCES-MIB::hrDeviceIndex.262145 = INTEGER: 262145
HOST-RESOURCES-MIB::hrDeviceIndex.262146 = INTEGER: 262146
HOST-RESOURCES-MIB::hrDeviceIndex.393232 = INTEGER: 393232
HOST-RESOURCES-MIB::hrDeviceIndex.786432 = INTEGER: 786432
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.10 1.3.6.1.2.1.25.3.2.1.3
HOST-RESOURCES-MIB::hrDeviceDescr.196608 = STRING: GenuineIntel: Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz
HOST-RESOURCES-MIB::hrDeviceDescr.196609 = STRING: GenuineIntel: Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz
HOST-RESOURCES-MIB::hrDeviceDescr.196610 = STRING: GenuineIntel: Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz
HOST-RESOURCES-MIB::hrDeviceDescr.196611 = STRING: GenuineIntel: Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz
HOST-RESOURCES-MIB::hrDeviceDescr.262145 = STRING: network interface lo
HOST-RESOURCES-MIB::hrDeviceDescr.262146 = STRING: network interface eth0
HOST-RESOURCES-MIB::hrDeviceDescr.393232 = STRING: SCSI disk (/dev/sda)
HOST-RESOURCES-MIB::hrDeviceDescr.786432 = STRING: Guessing that there's a floating point co-processor
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.10 1.3.6.1.2.1.25.3.3.1.1
HOST-RESOURCES-MIB::hrProcessorFrwID.196608 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.196609 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.196610 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.196611 = OID: SNMPv2-SMI::zeroDotZero
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.10 1.3.6.1.2.1.25.3.3.1.2
HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 35
HOST-RESOURCES-MIB::hrProcessorLoad.196609 = INTEGER: 28
HOST-RESOURCES-MIB::hrProcessorLoad.196610 = INTEGER: 14
HOST-RESOURCES-MIB::hrProcessorLoad.196611 = INTEGER: 26
[root@TeguhLab ~]#
4. Sample for SNMPwalk for CPU Utilization Windows
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.20 sysDescr
SNMPv2-MIB::sysDescr.0 = STRING: Hardware: Intel64 Family 6 Model 62 Stepping 4 AT/AT COMPATIBLE - Software: Windows Version 6.0 (Build 6002 Multiprocessor Free)
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.20 1.3.6.1.2.1.25.3.2.1.1
HOST-RESOURCES-MIB::hrDeviceIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrDeviceIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrDeviceIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrDeviceIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrDeviceIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrDeviceIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrDeviceIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrDeviceIndex.8 = INTEGER: 8
HOST-RESOURCES-MIB::hrDeviceIndex.9 = INTEGER: 9
HOST-RESOURCES-MIB::hrDeviceIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrDeviceIndex.11 = INTEGER: 11
HOST-RESOURCES-MIB::hrDeviceIndex.12 = INTEGER: 12
HOST-RESOURCES-MIB::hrDeviceIndex.13 = INTEGER: 13
HOST-RESOURCES-MIB::hrDeviceIndex.14 = INTEGER: 14
HOST-RESOURCES-MIB::hrDeviceIndex.15 = INTEGER: 15
HOST-RESOURCES-MIB::hrDeviceIndex.16 = INTEGER: 16
HOST-RESOURCES-MIB::hrDeviceIndex.17 = INTEGER: 17
HOST-RESOURCES-MIB::hrDeviceIndex.18 = INTEGER: 18
HOST-RESOURCES-MIB::hrDeviceIndex.19 = INTEGER: 19
HOST-RESOURCES-MIB::hrDeviceIndex.20 = INTEGER: 20
HOST-RESOURCES-MIB::hrDeviceIndex.21 = INTEGER: 21
HOST-RESOURCES-MIB::hrDeviceIndex.22 = INTEGER: 22
HOST-RESOURCES-MIB::hrDeviceIndex.23 = INTEGER: 23
HOST-RESOURCES-MIB::hrDeviceIndex.24 = INTEGER: 24
HOST-RESOURCES-MIB::hrDeviceIndex.25 = INTEGER: 25
HOST-RESOURCES-MIB::hrDeviceIndex.26 = INTEGER: 26
HOST-RESOURCES-MIB::hrDeviceIndex.27 = INTEGER: 27
HOST-RESOURCES-MIB::hrDeviceIndex.28 = INTEGER: 28
HOST-RESOURCES-MIB::hrDeviceIndex.29 = INTEGER: 29
HOST-RESOURCES-MIB::hrDeviceIndex.30 = INTEGER: 30
HOST-RESOURCES-MIB::hrDeviceIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrDeviceIndex.32 = INTEGER: 32
HOST-RESOURCES-MIB::hrDeviceIndex.33 = INTEGER: 33
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.20 1.3.6.1.2.1.25.3.2.1.3
HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: Microsoft XPS Document Writer
HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: Unknown Processor Type
HOST-RESOURCES-MIB::hrDeviceDescr.3 = STRING: Unknown Processor Type
HOST-RESOURCES-MIB::hrDeviceDescr.4 = STRING: Unknown Processor Type
HOST-RESOURCES-MIB::hrDeviceDescr.5 = STRING: Unknown Processor Type
HOST-RESOURCES-MIB::hrDeviceDescr.6 = STRING: Software Loopback Interface 1
HOST-RESOURCES-MIB::hrDeviceDescr.7 = STRING: WAN Miniport (SSTP)
HOST-RESOURCES-MIB::hrDeviceDescr.8 = STRING: WAN Miniport (L2TP)
HOST-RESOURCES-MIB::hrDeviceDescr.9 = STRING: WAN Miniport (PPTP)
HOST-RESOURCES-MIB::hrDeviceDescr.10 = STRING: WAN Miniport (PPPOE)
HOST-RESOURCES-MIB::hrDeviceDescr.11 = STRING: WAN Miniport (IPv6)
HOST-RESOURCES-MIB::hrDeviceDescr.12 = STRING: WAN Miniport (Network Monitor)
HOST-RESOURCES-MIB::hrDeviceDescr.13 = STRING: WAN Miniport (IP)
HOST-RESOURCES-MIB::hrDeviceDescr.14 = STRING: RAS Async Adapter
HOST-RESOURCES-MIB::hrDeviceDescr.15 = STRING: Intel(R) PRO/1000 MT Network Connection
HOST-RESOURCES-MIB::hrDeviceDescr.16 = STRING: isatap.{68793BD1-65E5-4BDE-8B15-B1131A83E0A1}
HOST-RESOURCES-MIB::hrDeviceDescr.17 = STRING: Intel(R) PRO/1000 MT Network Connection #2
HOST-RESOURCES-MIB::hrDeviceDescr.18 = STRING: isatap.{4A5C5272-63D8-4C95-9B71-4AD876C04186}
HOST-RESOURCES-MIB::hrDeviceDescr.19 = STRING: PANGP Virtual Ethernet Adapter
HOST-RESOURCES-MIB::hrDeviceDescr.20 = STRING: isatap.{5B665CE1-02A0-4D00-86F9-1D0B34FD9C66}
HOST-RESOURCES-MIB::hrDeviceDescr.21 = STRING: PANGP Virtual Ethernet Adapter-QoS Packet Scheduler-0000
HOST-RESOURCES-MIB::hrDeviceDescr.22 = STRING: WAN Miniport (IPv6)-QoS Packet Scheduler-0000
HOST-RESOURCES-MIB::hrDeviceDescr.23 = STRING: WAN Miniport (IP)-QoS Packet Scheduler-0000
HOST-RESOURCES-MIB::hrDeviceDescr.24 = STRING: WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000
HOST-RESOURCES-MIB::hrDeviceDescr.25 = STRING: Intel(R) PRO/1000 MT Network Connection #2-QoS Packet Scheduler-
HOST-RESOURCES-MIB::hrDeviceDescr.26 = STRING: Intel(R) PRO/1000 MT Network Connection-QoS Packet Scheduler-000
HOST-RESOURCES-MIB::hrDeviceDescr.27 = STRING: A:\
HOST-RESOURCES-MIB::hrDeviceDescr.28 = STRING: D:\
HOST-RESOURCES-MIB::hrDeviceDescr.29 = STRING: Fixed Disk
HOST-RESOURCES-MIB::hrDeviceDescr.30 = STRING: IBM enhanced (101- or 102-key) keyboard, Subtype=(0)
HOST-RESOURCES-MIB::hrDeviceDescr.31 = STRING: LPT1:
HOST-RESOURCES-MIB::hrDeviceDescr.32 = STRING: COM1:
HOST-RESOURCES-MIB::hrDeviceDescr.33 = STRING: COM2:
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.20 1.3.6.1.2.1.25.3.3.1.1
HOST-RESOURCES-MIB::hrProcessorFrwID.2 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.3 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.4 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.5 = OID: SNMPv2-SMI::zeroDotZero
[root@TeguhLab ~]# snmpwalk -v2c -c public 10.10.10.20 1.3.6.1.2.1.25.3.3.1.2
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 30
HOST-RESOURCES-MIB::hrProcessorLoad.3 = INTEGER: 20
HOST-RESOURCES-MIB::hrProcessorLoad.4 = INTEGER: 26
HOST-RESOURCES-MIB::hrProcessorLoad.5 = INTEGER: 32
[root@TeguhLab ~]#
5. Table Resume CPU Utilization
7. Sample Graph CPU Utilization(Load)
No comments:
Post a Comment