Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Interface counters via iControl

Livius
Altostratus
Altostratus

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!

 

2 REPLIES 2

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_84258
Historic 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