Forum Discussion
Interface counters via iControl
Hi,
We are in process of building analytics graphs, by collecting equipment counters via iControl (REST API). We managed to fetch the pool, node, member, VS counters and stats but we could not find a way to find the following metrics : - total connections - TPS/SSL counters - interface counters
We could not find the right objects to be queried via iControl for these graphs. Can someone point me in the right direction ?
Thanks in advance!
- jaikumar_f5
Noctilucent
I think it should be something below,
curl -s -k -u admin -H "Content-Type: application/json" -X GET https://1.1.1.1/mgmt/tm/net/interface/stats | jq
Output would be,
Enter host password for user 'admin': { "kind": "tm:net:interface:interfacecollectionstats", "selfLink": "https://localhost/mgmt/tm/net/interface/stats?ver=13.1.0.5", "entries": { "https://localhost/mgmt/tm/net/interface/1.1/stats": { "nestedStats": { "kind": "tm:net:interface:interfacestats", "selfLink": "https://localhost/mgmt/tm/net/interface/1.1/stats?ver=13.1.0.5", "entries": { "counters.bitsIn": { "value": 0 }, "counters.bitsOut": { "value": 0 }, "counters.dropsAll": { "value": 0 }, "counters.errorsAll": { "value": 0 }, "counters.pktsIn": { "value": 0 }, "counters.pktsOut": { "value": 0 }, "mediaActive": { "description": "none" }, "tmName": { "description": "1.1" }, "status": { "description": "disabled" } } } },
- Chikita_84258Historic F5 Account
Total connections
curl -sku admin https://localhost/mgmt/tm/sys/connection
TPS/SSL counters
curl -sku admin https://localhost/mgmt/tm/sys/performance/throughput
Interface counters
Possibly you might be looking for the output from 'tmsh show sys traffic'. If that's the case,
curl -sku admin https://localhost/mgmt/tm/sys/traffic/stats?options=raw
If that's 'tmsh show sys tmm-traffic', then
curl -sku admin https://localhost/mgmt/tm/sys/tmm-traffic
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