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

run a program with anyconnect client

mialbert
Level 1
Level 1

I am using anyconnect client 2.3.2016.  I am wanting to know if i can run a program(specifically a login script)automatically upon vpn startup.  I am needing to run this client due to application reasons. 

3 Replies 3

Hi,

Please check this out:

Writing and Deploying Scripts

Importing Scripts

Keep me posted.

Thanks.

Portu.

Please rate any posts you find helpful.

I have to do this with a c1900isr.  thanks

hi mialbert,

you will not be able to push the scripts from the router, however the doc that Portu referred to does say this:

Or use an enterprise  software deployment system to deploy scripts manually to the VPN  endpoints on which you want to run the scripts.

If you use this method, use the script filename prefixes below:

OnConnect

OnDisconnect

Install the scripts in the directory shown in Table 3-8.


Table 3-8     Required Script Locations

OS
Directory

Microsoft Windows 7 and Vista

%ALLUSERSPROFILE%\Cisco\Cisco AnyConnect VPN Client\Script

Microsoft Windows XP

%ALLUSERSPROFILE%\Application Data\Cisco\Cisco AnyConnect VPN Client\
Script

Linux

(On Linux, assign execute permissions to the file for User, Group and Other.)

/opt/cisco/vpn/script

Mac OS X

/opt/cisco/vpn/script

In other words, rename your script to something like OnConnect_login.bat and put it in the appropriate directory, and it should work.

Note that this applies to Anyconnect 2.4 and later so you would need to upgrade.

hth

Herbert