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

Filter by:
  • Solution
  • Technology
Answers

F5 V13.1.0.2 view source connection response format

Hi Team

In recent times we are facing issue in two different F5 device with v13.1.0.2.

For one device we are getting the response for the view source connection is

F5 version V 13.1.0.2

URL : https://deviceIp:443/mgmt/tm/sys/connection

{"kind":"tm:sys:connection:connectionstats","selfLink":"https://localhost/mgmt/tm/sys/connection?ver=13.1.0.2","entries";:{"https://localhost/mgmt/tm/sys/connection/0";:{"nestedStats":{"entries":{...}}}}}

but for the different box we are getting the response as

F5 version 13.1.0.2

URL : https://deviceIp:443/mgmt/tm/sys/connection

Response : { "kind": "tm:sys:connection:connectionstats", "selfLink": "https://localhost/mgmt/tm/sys/connection?ver=13.1.0.2";, "apiRawValues": { "apiAnonymous": "..." } }

Why is the different occurring just curious to know how to sample response for all the REST api's used based on the F5 version.

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Most likely, the box with nestedStats has some ongoing connections, while the other with apiRawValues does not have any connection. Run tmsh show sys connection to check the number of connections on each box.

e.g.,

# yes | tmsh show sys connection
Sys::Connections
Total records returned: 0
# curl -sku <user>:<pass> https://localhost/mgmt/tm/sys/connection
{
    "apiRawValues": {
        "apiAnonymous": "Sys::Connections\n"
    },
    "kind": "tm:sys:connection:connectionstats",
    "selfLink": "https://localhost/mgmt/tm/sys/connection?ver=13.1.1.2"
}
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

The nestedStats for non-zero connections was introduced in v13.1. Prior versions reply the apiRawData irrespective of a number of connections. If you want to get the older version's response, specify the ?ver= query string: e.g.,

# curl -sku <user>:<pass> https://<host>/mgmt/tm/sys/connection?ver=12.1.3
0