- CheckMates
- :
- CheckMates Toolbox
- :
- Scripts
- :
- Show VPN Users - One-liner
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Show VPN Users - One-liner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content



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",$NF))}'|tr -s ' '|sed "1d";cvpnd_admin license all 2>/dev/null|grep "User Name"|sed "s/^.*User Name/User/g"|awk 'BEGIN{FS="|"} {print $2 " Type: Mobile Access " $1" ConnectTime: 0"$3}'|sed "s/Session Expiration Time In Minutes/Expires/g"|sed "s/^ *//"|more
Integrated with our ccc script.
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",$
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
