Forum Discussion
How to get interface and system stats that are part of the F5-SYSTEM-MIB via REST API?
- Jan 12, 2015
Did you see this in the iControl REST user guide?
To obtain statistics for a resource, this example queries the /Common/my-Pool object for current statistics. The response that contains the statistical output appears in the second block. GET https://192.168.25.42/mgmt/tm/ltm/pool/~Common~my-Pool/stats
So for interface stats for example, you could do this:
curl -k -u "admin:admin" https://10.1.0.213/mgmt/tm/net/interface/stats -H "Content-Type:application/json" -X GET
Other than interface, what do you need? Things like CPU and mem are the the sys section, so
curl -k -u "admin:admin" https://10.1.0.213/mgmt/tm/sys/cpu/stats -H "Content-Type:application/json" -X GET
Hi there, I too am trying to get cpu stats of BIG IP F5 version 12 via either Rest API or SNMP command.
I am being told that only admin user can extract cpu stats via rest API call. Cannot there be a read only user who can get the cpu stats out of F5?
Can you actually send me the exact (snmpget/snmpwalk command I could run to get the F5 cpu stats please.
I will appreciate the same. many thanks Sumit
Recent Discussions
Related Content
* 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