I am using my school's VPN service to surf on netflix. I have to connect to the VPN most of the time. My school uses Cisco AnyConnect Secure Mobility Client. I have to enter password and accept a banner every time I connect. Is there a way to automate this connection on OS X?
If you are using OS X to control your connection:
The reason this comes up is because the Cisco box you are connecting to is forcing interaction. It's actually a setting on the Cisco VPN aggregator that enforces security. Apple doesn't provide circumvention for (Apple Script/Automator) this as part of the agreement Cisco made with Apple (according to both Cisco and Apple). I've investigated this before and this was the answer I was given by both sides.
The same is true with the Cisco OS X VPN client.
Yes, you can automate this using AppleScript.
Here's a script I use:
This is a script I found and tweaked; I'm not sure who the original author is as there are several version floating around. I got it from https://gist.github.com/twksos/44b45abf5263635776ec