Forum Discussion
hjb_137394
May 19, 2014Nimbostratus
I want to get the top cpu(us+sy),
I want to get the top cpu(us+sy),which api i can use?
[root@bigip6400-prd-1:Standby] config top top - 14:01:44 up 14 days, 23:59, 1 user, load average: 0.73, 0.88, 0.81 Tasks: 188 total, 1 running...
Kevin_Stewart
May 19, 2014Employee
If I remember correctly, the top command gives you information about the management plane processes, from which tmm is generally the largest consumer. If you want to dig into CPU utilization within tmm, and particularly within each tmm/cpu, then from the command line:
tmsh show sys cpu
which translates to the following iControlREST syntax:
curl -sk -u 'admin:admin' -H "Content-Type: application/json" -X GET https://x.x.x.x/mgmt/tm/sys/cpu
You'll need to do some additional parsing to get the User and System values that you're looking for, but the information is all there.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects