ICALL or IRule that excute a command when avaliable pool members are below a certain shreshold

I need an IRule or ICall that monitor the pool members,if the aviliable pool members are below a certain shreshold,excute a command such as:“tmsh--delete sys connections”. Thanks very much!

Looks like a good use case for iCall but unfortunately I’ve no practical experience. Time to hit the manuals, well, if there were any. This is a good starting point I’m sure: “>https://devcentral.f5.com/icall/getting-started” target=“_blank”>">https://devcentral.f5.com/icall/getting-started

Did you ever figure anything out on this? I need to remove connections form within an irule. Haven’t found anything.