cancel
Showing results for 
Search instead for 
Did you mean: 

VPN Active session count for a partition via API & PHP

MARTY1
Nimbostratus
Nimbostratus

Hello,

 

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?

 

Thanks,

Marty

2 REPLIES 2

PeteWhite
F5 Employee
F5 Employee

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

MARTY1
Nimbostratus
Nimbostratus

I will give that a try.

 

Thank you!