How can we query the CPU usage of the data plane using SNMP

Latest reply: Oct 8, 2014 01:38:26 3321 1 0 0
Hello,

I know that SNMP is not the newest deal in our branch but sometimes new OIDs appear that makes the life of every network administrator easier.

In one of my recent cases I found one of them that I think would be helpful in a lot of situations : the possibility to query the cpu usage of the control and data plane
Unfortunately, in V2R3, there is no way to query the cpu usage of the data plane but starting from V2R5  a new mib info  has been introduced :hwCpuDevTable (The OID prefix of this table is1.3.6.1.4.1.2011.6.3.4.1.)

You can find the whole description of this table in the MIB Reference of the V2R5 version but in the mean time I want to show you a small example of how it works.

 Example:
In the following example, I generated some traffic on one of  the router’s interfaces while I displayed the cpu-usage on the device and query it by snmp

1.3.6.1.4.1.2011.6.3.4.1.2.0.0.1 // queries the average cpu-usage of the data plane
1.3.6.1.4.1.2011.6.3.4.1.3.0.0.1 //cpu-usage of the data plane within the latest 1 minutes
1.3.6.1.4.1.2011.6.3.4.1.4.0.0.1 //cpu-usage of the data plane within the latest 5 minutes.

As you can see the OIDs that end in 1 return the same result as the cpu-usage of the data plane
Output of the display cpu-usage command on the router:

Data    Plane                                                                 
    CPU Usage: 37.4%   Max: 76.9%                                             
    CPU utilization for ten seconds: 37.4%  one minute:  37.3%  five minutes:  57.5% .    
      


***** SNMP QUERY STARTED *****

2: hwCpuDevDuty.0.0.1 (integer) 37

4: hwAvgDuty1min.0.0.1 (integer) 37

6: hwAvgDuty5min.0.0.1 (integer) 57


***** SNMP QUERY FINISHED *****


   I hope this is helpful and some of you will use this on the future. Thank you!                                        
                                                                               

  • x
  • convention:

Created Oct 8, 2014 01:38:26 Helpful(0) Helpful(0)

good case, very usefule.

a little comment, the HUAWEI-CPU-MIB is a simpler way to query the CPU information supported begin V2R5 of AR G3 router, there is a complex method way in earlier version, it can be found in the HUAWEI-ENTITY-EXTENT-MIB (OID prefix is 1.3.6.1.4.1.2011.5.25.31), for the detail refer the documenation.

  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top