Tutorial: Manage Access Server Services via Command Line
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 with 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.
Connect to the console and get root privileges.
Run the commands below from this directory.
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:
service openvpnas start
Stop the Access Server daemon:
service openvpnas stop
Restart the Access Server daemon:
service openvpnas restart
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.