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

How to check status of VPN whether connected or disconnected

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
VIP Advocate RJI VIP Advocate
VIP Advocate

Re: How to check status of VPN whether connected or disconnected

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

Contributor

Re: How to check status of VPN whether connected or disconnected

I verified this on my client and it works great!

Thank you!

Highlighted
Contributor

Re: How to check status of VPN whether connected or disconnected

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