Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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!

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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"
          }
        }
      }
    },
0
Comments on this Answer
Comment made 3 weeks ago by Livius 165

Thanks for your answer!

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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

1