I am looking for some example PHP code that will allow me to get the current number of active VPN sessions for a given partition. Does anyone have any code they can share with me to help out with this?
For the PHP side of this you could use my iCR class at https://devcentral.f5.com/s/articles/php-and-icontrol-rest
I suspect that you can retrieve session data from /mgmt/tm/apm/session so maybe you can try that out and let me know
I will give that a try.