15-Feb-2019 07:28
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!
16-Feb-2019
07:12
- last edited on
05-Jun-2023
11:28
by
JimmyPackets
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"
}
}
}
},
22-Feb-2019
10:40
- last edited on
05-Jun-2023
11:27
by
JimmyPackets
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