Skip to main content

As described. Thanks

It will report the WAN and LAN IP, so VPN will report the VPN IP


I'm using an extension attribute (see below) to read Cisco Anyconnect. This displays a 10. IP number, as this is the vpn IP address. This is not what shows in the inventory for IP Address or Reported IP Address, but it is more useful if you want to connect using screen sharing which is how I find it useful (due to Jamf Remote not working when the user is on vpn).

!/bin/bash

clientIPV4=$(/opt/cisco/anyconnect/bin/vpn stats | grep "Client Address (IPv4):" | awk '{print $4}')

echo "<result>$clientIPV4</result>"