Forum Discussion

Scot_85536's avatar
Scot_85536
Icon for Nimbostratus rankNimbostratus
Dec 14, 2009

statistics in irule, but not statistics profile

Hi everyone,

 

 

I'm messing with some irules and wondering if there is any way to pull the number of current connections at the node and/or pool levels into an irule for processing or reporting. Something like how b pool or the nodes statistics pages show the number of current/max/limit/tot connections.

 

 

I know I probably could use a statistics profile, but since the LTM keeps track of the number of connections already that seems like a waste of cycles to do it again.

 

 

Thanks!

3 Replies

  • Hi Scot,

     

     

    Unfortunately, there isn't a way to retrieve connection stats for nodes or pool members from an iRule (Click here). It would make a nice addition though, so you might try suggesting it in a request for enhancement case with F5 Support. If you do so and get an RFE CR, could you post it here for others to reference/add their request to?

     

     

    You could indeed use a stats profile or global variable/array to track this on a pool member level. If you try this approach and get anywhere, could you post an example iRule to the Codeshare (Click here)?

     

     

    Thanks,

     

    Aaron
  • Thanks for confirming that hoolio. I suspected that was the case.

     

     

    I have opened a case with F5 support and asked the same question. I also put in the request that if this is not possible I would like to request it as a feature enhancement. If I get an RFE CR I will post it back here.
  • Hi, is this feature already added to iRules? Can I work with number of connections per pool member in iRule, like save it to variable etc.