Description: Some customers ask for a list of VPN Clients connected in real-time. Follow the steps below to output a list of usernames for current VPN users.
- Install the Linux jq tool:
On Ubuntu/Debian:apt -y install jq
On Centos/RHEL:yum install jq -y
- From the /usr/local/openvpn_as/scripts directory, run this command, as root:
./sacli VPNstatus | jq '.[] | .client_list[][0]'
- The output displays the usernames of the currently connected VPN users. If no results return, there aren't current connections.
If you have additional questions, please submit a ticket.
Comments
0 comments
Please sign in to leave a comment.