cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11716
Views
0
Helpful
3
Replies

How to check status of VPN whether connected or disconnected

ayadav
Level 1
Level 1

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.

 

3 Replies 3

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

I verified this on my client and it works great!

Thank you!

Alex Pfeil
Level 7
Level 7

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