Forum Discussion
JF_179206
Dec 05, 2014Nimbostratus
How to get interface and system stats that are part of the F5-SYSTEM-MIB via REST API?
I am looking to get the counters / global statistics for the interfaces and system that are available via SNMP. I can see them using the F5 tmsh cli in the console. I can als get pools, nodes and vs...
- 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
JF_179206
Dec 05, 2014Nimbostratus
The problem is that I am trying to get those statistics via the REST API like I can do for the pools, nodes and vservers.
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