Forum Discussion
I think we are on the right path here. But as I understand,
set GETCOUNT [table key -count -subtable [IP::client_addr]]
this command is limited to only one client IP address. Can I substitute it with VS IP address instead to get a value for the GETCOUNT?
teemo_13 I could be wrong on this one because I haven't had to really deal with TPS but I believe this isn't checking every connection on the F5 but it's checking the virtual server (VS) that this particular iRule is associated to for this particular instance of use of the iRule. With that being said, if you used this iRule on 4 or 5 VSs each one would have its own instance of the particular counted variable and it wouldn't be shared across each VS. So the value that you are receiving in the GETCOUNT variable should be unique to that virtual server. Now when you log this to the F5 you will want to use something that easily differentitates each entry between virtual servers for this same iRule. If you are only using this iRule in one location then no reason to narrow it down any further. Now I absolutely could be wrong so if I am I hope someone comes to correct this assumption. I did find some more articles that might be of assistance to you.
https://community.f5.com/t5/technical-articles/the-table-command-subtables/ta-p/278501
https://community.f5.com/t5/technical-articles/the-table-command-counting/ta-p/278467