For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

mhouston_213290's avatar
mhouston_213290
Icon for Nimbostratus rankNimbostratus
Oct 20, 2015

Get serverside.curConns with Rest API

Hello,

 

I have seen this question asked a few times on the thread here but have not been able to find the answer I am looking for.

 

I am trying to use the Rest API to get the total amount of connections per pool or per node. So far, I have the following:

 

curl -sk -u username:password https:/nameOfMyF5/mgmt/tm/ltm/pool/~Common~poolname/stats

 

The above command will give me all of the stats for that pool, one of which will be serverside.curConns and its value. However, I would like to use this in a script and I want the RestAPI to only give me the curConns as a result.

 

Anyway to do this?

 

Thank you! Any help will be greatly appreciated, I am very new to using the Rest API.

 

4 Replies

  • curl -sk -u username:password https:/nameOfMyF5/mgmt/tm/ltm/pool/~Common~poolname/stats?$select=serverside.curConns

    • JRahm's avatar
      JRahm
      Icon for Admin rankAdmin
      For other filter options available to you: https://devcentral.f5.com/s/articles/demystifying-icontrol-rest-part-3-how-to-pass-query-parameters-and-tmsh-options
  • Awesome guys ! Do you know how I can build the front-end (a web page, maybe) for displaying such information. Actually, I want to build a portal or a page which can show all the server connections in real-time, for monitoring reasons.

     

    Thanks in advance !