Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Show VPN Users - One-liner

Danny
Champion Champion
Champion

COVID-19  💊 We take care of your Remote Access VPN needs!
👍 Available as SmartConsole Extension.

One-liner (Bash) to show all VPN users connected to a VPN gateway.


    fw tab -t userc_users -f -u 2>/dev/null|tr ",;" "\n"|egrep "UserName|ConnectTime|SRAddress|Schema"|tr -d "\n"|sed "s/UserName/User/g; s/SRAddress:[[:space:]]/\n/g; s/Schema:/Type:/g; s/IKE/Endpoint Connect;/g; s/SSL/SSL Network Extender/g; s/([0-9])//g; s/CN=//g"|awk '{ print $0 " >",(strftime("%c",$
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




0 Replies