Does IControl has an API to return connection count of members in LTM module ? If yes, please share it. Thx.

We use IControl APIs to automate LTM module operations. We need to find the connection count of DIPs using IControl. Kindly let me know what API to use for the same.

Thank you, Mirza Shadab Beg.

Can you explain a little more? I’m not sure I understand what you are looking for? Connection count of members? Do you mean the quantity of all the connections going to all the servers? Does DIPs = Destination IP’s? Are you asking about configuration objects like how many Virtual IP’s it has?

Can you explain a little more? I’m not sure I understand what you are looking for? Connection count of members? Do you mean the quantity of all the connections going to all the servers? Does DIPs = Destination IP’s? Are you asking about configuration objects like how many Virtual IP’s it has?

I implied number of active connections for a pool member. By DIPs I implied a pool member.

I implied number of active connections for a pool member. By DIPs I implied a pool member.

Hi James, Do we have any icontrol API to get the Pool member - active connection count?

Hi James, Do we have any icontrol API to get the Pool member - active connection count?

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

 show ltm pool default-pool all-properties

    ---------------------------------------------------------------------
    Ltm::Pool: default-pool
    ---------------------------------------------------------------------
    Status
      Availability : available
      State        : enabled
      Reason       : The pool is available
      Monitor      : appreaiprod-http-mon
      Minimum Active Members : 0
      Current Active Members : 2
              Total Requests : 0
            Current Sessions : 0

    Traffic                                  ServerSide
      Bits In                                         0
      Bits Out                                        0
      Packets In                                      0
      Packets Out                                     0
      Current Connections                             0
      Maximum Connections                             0
      Total Connections                               0

    Connection Queue                               Pool  Pool and members
      Number of connections queued now                0                 0
      Number of connections serviced                  0                 0
      Queue head entry age (ms)                       0                 0
      Maximum queue entry age ever (ms)               0                 0
      Maximum queue entry age recently (ms)           0                 0
      Average queue entry age (ms)                    0                 0


    --------------------------------------------------------------
      | Ltm::Pool Member: labihstclqa1:80
      --------------------------------------------------------------
      | Status
      |   Availability   : available
      |   State          : enabled
      |   Reason         : Pool member is available
      |   Monitor        : appreaiprod-http-mon (pool monitor)
      |   Monitor Status : up
      |   Session Status : enabled
      |   Pool Name      : default-pool
      |   IP Address     : 192.168.34.50

| | Traffic ServerSide General | Bits In 0 - | Bits Out 0 - | Packets In 0 - | Packets Out 0 - | Current Connections 0 - | Maximum Connections 0 - | Total Connections 0 - | Total Requests - 0 | Current Sessions - 0 | | Connection Queue | Number of connections queued now 0 | Number of connections serviced 0 | Queue head entry age (ms) 0 | Maximum queue entry age ever (ms) 0 | Maximum queue entry age recently (ms) 0 | Average queue entry age (ms) 0

which value do you want.

You can retrieve the pool member stats, including the current connection count, for all members of a pool by hitting the member stats page:

I.e.: https://MyF5.com/mgmt/tm/ltm/pool/pool_10.3.3.31/members/stats

You can also retrieve stats for individual pool members by hitting the individual member’s stat page:

I.e. https://MyF5.com/mgmt/tm/ltm/pool/pool_10.3.3.31/members/~Common~10.3.3.31:80/stats

I believe the value you will want to examine is serverside.curConns to get the current connection count.

What will be Python code for this