I posted this once before on Cisco's forums, but it seems they took down the post to my script to login through the VPNcli.exe. using a script. (their site only states that a Script can not be run after a VPN session has been established) which only means that the server can not push a script out to the VPNclient. It does not state that the Client can not run a script to log on and a script for what needs to be done, such as FTP.
I am curious if anyone has a basic script for logging into the Cisco Anyconnect 2.5
At certain times during the work day we have to log into a Cisco Anyconnect 2.5 version. I created a script that calls up the VPNcli.exe (command line interface) to connect to a network and then then it would run another command line to pull the files. Then it would close the VPN connection. Most places I go to state this is impossible to do, but I have a script that does it, just its a little sloppy programming.
My issue is I can not find a way to have the script recognize when the connection is fully establish so I have it on a sleep timer. I would like to change this so it recognizes stdendofline ("connection established to " VPNnetwork) before it starts the next function. Also the CLI I think has 4 commands (connect, disconnect, status and something else I can't remember off the top of my head, but its located in the admin guide).
My script is located on the individual machine and not being pushed out by a server. If you can help me out I can send over my code. All personal information are variables so you can set it to your own server as well. I think a lot of people would be able to use this and I know its possible, but not fluent in VBscript.
Thanks for taking the time to read through my question.