07-24-2019 05:25 AM
How to check status of devices whether connected to vpn or not, using power shell or command line we are using Cisco anyconnect Secure Mobility client.
Thanks in Advance.
07-24-2019 05:39 AM
Hi,
You can run the command "vpncli.exe" from the command prompt, this will tell you whether the VPN is connected or disconnected.
C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client>vpncli.exe
Cisco AnyConnect Secure Mobility Client (version 4.7.04056) .
Copyright (c) 2004 - 2019 Cisco Systems, Inc. All Rights Reserved.
>> state: Disconnected
>> state: Disconnected
>> notice: Ready to connect.
>> registered with local VPN subsystem.
HTH
07-24-2019 05:53 AM
I verified this on my client and it works great!
Thank you!
07-24-2019 05:51 AM - edited 07-24-2019 05:52 AM
Other CLI options:
ipconfig will tell you whether or not a device is connected to VPN. You would need to know the IP address to look for.
route print will let you know if the device is connected to VPN because the routing table will be modified to send some traffic into your VPN.
Thanks,
Alex
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide