cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1094
Views
1
Helpful
4
Replies

How to determine if VPN is connected?

Peter Ski
Level 1
Level 1

My company uses Casco Systems VPN Client version 5.0.07.0440. We want some of our applications to know whether or not the VPN is connected. I noticed the file "C:\Program Files (x86)\Cisco Systems\VPN Client\vpnapi.dll" which has a few functions that I believe may be helpful in this endeavor:

  • vpn_get_stats
  • vpn_get_autoinit_stat
  • vpn_stats_get_counters

There are just 3 out of 31 functions available from this library. I am hoping that I can possibly invoke these functions from an application to determine if the VPN is connected. However, I am unable to do so because I do not know what the return types are and I do not know if these functions take any arguments.

Is there documentation anywhere on this file? If not, is there a CLI approach I can take?

4 Replies 4

I saw the thread before creating this one. Unfortunately, it seems to be a solution for a different product

This is for Anyconnect which is the cisco VPN. Which solution do you have: ?

I mentioned it in my question, but here is the information from the application itself:

Capture3.PNG

There's a section about the API in the release notes, but the linked documentation is missing.