Skip to main content

Tutorial: Manage Access Server Services via Command Line

Abstract

Follow this tutorial to monitor and manage your Access Server services from the command line.

Overview

This tutorial provides instructions for managing Access Server services using command-line interface (CLI) commands. You'll learn to view detailed VPN status, monitor connected users, and manage internal services using the sacli tool. Additionally, you’ll see how to start, stop, and restart the Access Server daemon itself.

  • Console access and the ability to get root access.

  • A basic understanding of Linux commands and navigating directories.

  • An installed Access Server.

  1. Connect to the console and get root privileges.

  2. Run the commands below for your desired outcome with Access Server services.

  • Use this command to retrieve live, detailed VPN status from the OpenVPN daemons in JSON format:

    sacli VPNStatus
  • Use this command to see how many users are currently connected to the VPN:

    sacli VPNSummary
  • This command shows the current status of internal services within the Access Server:

    sacli status
    
  • To stop internal services (without stopping the Access Server daemon itself):

    sacli stop
  • To start or restart internal services (if the server is already running, only the services with modified settings will restart):

    sacli start

Use the following traditional UNIX commands to manage the entire Access Server daemon.

  • Start the Access Server daemon:

    systemctl start openvpnas
  • Stop the Access Server daemon:

    systemctl stop openvpnas
  • Restart the Access Server daemon:

    systemctl restart openvpnas

Important

If you make changes to the configuration file, /usr/local/openvpn_as/etc/as.conf, it requires a full restart using the daemon commands to take effect.