Tutorial: Manage Failover Settings Using the Access Server CLI⁠

Overview⁠

This tutorial shows how to configure and manage failover settings in OpenVPN Access Server using either the Web API or the sacli command-line tool.

Access Server supports failover deployments for high availability within a local area network (LAN). In a failover deployment:

  • The primary node handles active traffic.

  • The secondary node remains in standby mode.

If the primary node becomes unavailable, the secondary node automatically takes over.

This tutorial explains how to:

  1. Validate the failover configuration.

  2. Configure failover settings.

  3. Initialize the secondary node.

  4. Verify failover state changes.

  5. Test failover behavior.

To learn more about failover deployments, refer to the Failover Setup Guide.

Prerequisites⁠

  • Access Server 3.1.0 or newer (required for Step 1 / Web API method)

  • Root access to both Access Server nodes.

  • A completed failover deployment setup.

  • (Optional) A remote system for API calls.

Choose a configuration method⁠

This tutorial provides two ways to configure failover settings:

Method

Availability

Best for

Web API (apicall)

Access Server 3.1.0 and newer

Automation and API workflows

sacli commands

All supported Access Server versions

Direct server administration

Use the method that best fits your environment and workflow.

Placeholder values used in this tutorial⁠

Replace the following placeholders with values for your environment:

Placeholder

Description

<FAILOVER_IP>

Shared virtual failover IP address

<UCARP_PASSWORD>

UCARP shared secret password

<PRIMARY_IP>

IP address of the primary node

<SECONDARY_IP>

IP address of the secondary node