WiscVPN (Mac) - Using Terminal to Connect to the WiscVPN AnyConnect Client


WiscVPN is transitioning from using Cisco AnyConnect to Palo Alto GlobalProtect. For information on which client to use during the transition, see the news item WiscVPN Client Transition.

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.

  1. Open Terminal, located in Applications/Utilities.

  2. Finderwindow.png

  3. 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.

  4. terminal_connect_cmd.png

  5. 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

  6. 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.

  7. terminal_login.png

  8. The AnyConnect client will now authenticate and connect.

  9. terminal_connected.png

  10. To disconnect, in Terminal type: /opt/cisco/vpn/bin/vpn disconnect and press Return.

  11. You can make sure the program has disconnected by checking the following lines:


Keywords:cisco vpn osx leopard snow tiger 10.6 10.5 cli command line interface programmatically scripting script ipsec   Doc ID:25583
Owner:Andrei M.Group:DoIT Help Desk
Created:2012-08-11 19:48 CDTUpdated:2016-12-23 14:34 CDT
Sites:Computer-Aided Engineering, DoIT Help Desk
Feedback:  0   0