Forum Discussion

Pushkar_73645's avatar
Pushkar_73645
Icon for Nimbostratus rankNimbostratus
Dec 31, 2012

Get number of active connections using icontol api

Hi,

 

 

I am trying to use soap calls to find out number of active connection to f5 LTM. Right now i can get the connection count from the web gui. Does anyone know which soap call i can use?

 

 

Regards,

 

Pushkar

 

3 Replies

  • Pushkar,

     

     

    The 'number of active connections' is too broad of a statement. You need to be more specific: Connections to a specific virtual server, to a specific pool, or broader metrics like TCP connections in ESTABLISHED state, etc.

     

     

    I'd point you to the following API calls as places to start:

     

     

    System.Statistics.get_tcp_statistics()

     

    System.Statistics.get_ip_statistics()

     

    System.Statistics.get_ipv6_statistics()

     

    LocalLB.VirtualServer.get_all_statistics()

     

    LocalLB.Pool.get_all_statistics()

     

     

    Unfortunately what they return isn't documented very neatly -- you'll have to explore that yourself.

     

     

    -M
  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Mmm... What don't you think is documented very well? The iControl API docs are pretty good if you download the SDK and peruse them.

     

     

    H
  • Hamish, each one of the aforementioned calls is documented as returning:

     

     

    https://devcentral.f5.com/wiki/iControl.Common__StatisticType.ashx

     

     

    Which is a list of hundreds of potential items. In general, they are organized and grouped somewhat together when you find the right area. What you'll probably need to do is actually try the API call and see what it returns. It is not so easy to find a statistic in that list and back track to the API call you should use to get that statistic type. Hence my statement that "what they return isn't documented very neatly." I hope that is more clear.

     

     

    It would actually be nice if each of the API calls had a list of the specific statistics that are returned rather than referring you to a global list of statistics that iControl might return for something of 'StatisticType' type.