Method of querying CPU usage on an AR router

22

Query CPU usage by running the following commands on an AR router:
- display cpu-usage [ slot slot-id ]
Or display cpu-usage [ process process-id ] [ slave ]
- display cpu-usage configuration [ slave | slot slot-id ]. This command is used to query configuration information about CPU usage.

Query CPU usage based on the NMS OID on an AR router:
- hwEntityCpuUsage 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5, querying CPU usage
- hwEntityCpuUsageThreshold 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.6, querying alarm thresholds for CPU usage

Query CPU usage through the web NMS on an AR router:
Log in to the web NMS, and choose Device Information > Device Information to view the CPU usage item.

Other related questions:
MIB node of CPU usage
The HUAWEI-CPU-MIB file is used to query CPU usage information of the SRU and interface card. The hwCpuDevTable is used to describe CPU usage. The OID prefix of the table is 1.3.6.1.4.1.2011.6.3.4.1. The indexes of the table are hwFrameIndex, hwSlotIndex, and hwCpuDevIndex. hwCpuDevIndex [1] Integer32 This node is used for expansion. On a single-CPU router, this value is 0. not-accessible For the SRU, the value 0 indicates the information of the primary core, and a value from 1 to 255 indicates the information of a secondary core. Example: 5 indicates that the CPU usage of the primary core of the SRU is 27% and the CPU usage of the secondary core 1 is 1%. ***** SNMP QUERY STARTED ***** 1: hwCpuDevDuty.0.0.0 (integer) 27 2: hwCpuDevDuty.0.0.1 (integer) 1 3: hwAvgDuty1min.0.0.0 (integer) 27 4: hwAvgDuty1min.0.0.1 (integer) 1 5: hwAvgDuty5min.0.0.0 (integer) 27 6: hwAvgDuty5min.0.0.1 (integer) 1 ***** SNMP QUERY FINISHED *****

Method used to query the CPU usage of the USG2000, USG5000, or USG6000
You can view the CPU usage of the USG2000, USG5000, or USG6000 as follows: Run the display cpu-usage command. [sysname]display cpu-usage ===== Current CPU usage info ===== Dataplane CPU Average Usage : 0.41%(5 Seconds) Mgmtplane CPU Average Usage : 14%(60 Seconds) Dataplane indicates the CPU usage of the data plane, and Mgmtplane indicates the CPU usage of the management plane. You can run the following commands in the diagnosis view to view the CPU usage of each process: [sysname]diagnose [sysname-diagnose]display cpu-usage

After a query operation, the CPU usage is high
When you log in to an S series switch (except the S1700) through Telnet from a host, the switch and the host need to exchange packets if you perform any operations. The CPU of the switch processes TCP packets received from the host, and encapsulates related information into TCP packets to send to the host. The query operation requires a large amount of data, and the CPU of the switch receives and sends packets frequently. Therefore, the CPU usage is high after the query operation.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top