Forum Discussion

SatzKumar_32762's avatar
SatzKumar_32762
Icon for Nimbostratus rankNimbostratus
Feb 08, 2019

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 :

 

{"kind":"tm:sys:connection:connectionstats","selfLink":";:{";:{"nestedStats":{"entries":{...}}}}}

 

but for the different box we are getting the response as

 

F5 version 13.1.0.2

 

URL :

 

Response : { "kind": "tm:sys:connection:connectionstats", "selfLink": ";, "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.

 

2 Replies

  • 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 : 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"
    }
    
  • 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 : https:///mgmt/tm/sys/connection?ver=12.1.3