I have 2 VPN and sometimes I should switch them very often. I decided to create .bat file which could connect to desired VPN with credentials set in this file.
Cisco Anyconnect Command Line Uninstall
So I create .bat file with following code:
- To launch the CLI command prompt and issue commands on a Windows system, locate the file vpncli.exe in the Windows folder C: Program Files Cisco Cisco AnyConnect VPN Client. Double-click the file vpncli.exe. 19 For Linux To launch the CLI command prompt and issue commands on a Linux system, locate the file vpn in the.
- I ran into the same difficulty try to use Cisco AnyConnect from Mac OS X Terminal. To get the Cisco vpn command to take its input from standard input, you have to specify the -s option, which puts the Cisco vpn command into interactive mode. Then you can provide the responses that you give in interactive mode.
Cisco AnyConnect Secure Mobility Client Administrator Guide, Release 4.0. Open a command prompt and change to the directory where you installed the debugging tools.
Where 1.txt contains credentials of VPN #1 which has trusted cerficate.
here's what 1.txt contains:
Where 1 goes for GROUP with number 1.
The second VPN is untrusted and I have this prompt awaring me what VPN is untrusted. I used similar code for .bat file:
And following data in 2.txt:
('y' goes for accepting untrusted server)
But now it says 'Login failed' after entering password is prompted and then it appears in loop and never stops.
Cisco Anyconnect Command Line Options
The question is: how should I modify my 2.txt file to make script connect to VPN #2?
Comments are closed.