Put it wherever you want, make terminal program that will be used by default to open. Spawn /opt/cisco/anyconnect/bin/vpn connect ĭon't forget to give execution permision to it. Now, I was only need to write short Bash command that will start service and interact with it (I use Expect program for this, man is here).īash script looks like this: #!/usr/bin/expect -f
An圜onnect Service is located at /opt/cisco/anyconnect/bin/vpn and supports commands Connect, Disconnect, Status and some other. I continue investigations and some day found that I can connect from terminal. Though it was not need to enter credentials every time (this apple script I insert at the end of this post). But as I mentioned earlier anyconnect bot always connects from the first try. First of all I made a try to create Apple Script, that will interact with Cisco An圜onnect GUI client. So my idea was to create some script that will do this work for me, to be honest I have always liked to automate my work. Sometimes connection was not established from the first try, and I need to do this again, next time I can accidentally insert wrong password. I was really tied every day reconnecting to my Corporate Network: open Cisco client, press button Connect then insert username and password, and after all of this accept policy.