WiscVPN (Mac) - Using Terminal to Connect to the WiscVPN AnyConnect Client
This document describes how to establish a connection to WiscVPN with the AnyConnect VPN client software using the Terminal in OSX.
When the WiscVPN AnyConnect Client is installed, it installs not only the graphical VPN client but also a command-line interface. This is useful for scripting a connection to WiscVPN. For installation of the WiscVPN AnyConnect Client, see WiscVPN (Mac) - Downloading and Installing the WiscVPN AnyConnect Client.
Open Terminal, located in Applications/Utilities.
Type: /opt/cisco/anyconnect/bin/vpn connect wiscvpn.doit.wisc.edu and press Return.
(If you receive a "No such file or directory" message, type /opt/cisco/vpn/bin/vpn connect wiscvpn.doit.wisc.edu) instead.
Choose the connection type; AnyConnect will prompt for this (ip-pool, ip-pool-OffCampus, ip-static, and ip-static-OffCampus). For more information on connection type, see WiscVPN - Split Tunneling.
For more information about the difference between dynamic and static IP's as well as how to acquire a static IP, see WiscVPN - Static vs. Dynamic IP Addresses
Enter your NetID and password at the corresponding prompts. Note: those using a static IP will have received a separate username and password, which is normally your NetID with an underscore and a one added to it, such as bbadger_1.
The AnyConnect client will now authenticate and connect.
To disconnect, in Terminal type: /opt/cisco/vpn/bin/vpn disconnect and press Return.
You can make sure the program has disconnected by checking the following lines: