Forum Discussion

Pranjal_Kumar_3's avatar
Pranjal_Kumar_3
Icon for Nimbostratus rankNimbostratus
Feb 06, 2018

Is it possible to get Count of New Connections for given Virtual Server

Hi Team,

 

Currently the Rest call mgmt/tm/ltm/virtual/~Common~demo-ecom-vip/stats provides values for following parameters curConns, evictedConns, maxConns, pktsIn, pktsOut, slowKilled, totConns

 

Is there a way to get count of New Connections?

 

Thanks, Pranjal

 

4 Replies

  • What would you consider to be a new connection? A new connection would also be a current connection. When would a current connection be old?

     

  • Correct. But current connection is something that already established and is up and running. By New Connection i mean, any connections that are created in a given time frame. Current connections value can have connections that were created outside of that time frame also.

     

  • Maybe you could use the TCP profile stats for this. Create a unique TCP profile for the VS you want to monitor and read the TCP profile stats. Like this:

    curl -k -u admin:admin -H "Content-Type: application/json" https://10.23.92.5/mgmt/tm/ltm/profile/tcp/~Common~tcp-serverssl/stats
    

    Read the open value:

    "open": {
        "value": 0
    },
    

    I think this value will hold the connections that are trying to get connected.

  • Look at the bigtop command on Bash.

     

    See F5 bigtop utility

     

    You can set the set the update interval and a load of other settings, but need to be running it to see the difference.