Network
Network Management CLI
This page applies to:
- HAProxy ALOHA 16.5 and newer
The HAProxy ALOHA Network Management CLI provides a way to manage connection profiles via the command line. Connection profiles are collections of network interface settings. You can use the Network Management CLI to manage physical and virtual network interfaces on the command line.
Common use cases for the Network Management CLI include managing VLAN interfaces, managing link bonding, and configuring VRRP.
This section describes how to install the HAProxy ALOHA management package which includes the Network Management CLI.
Install the HAProxy ALOHA network management package Jump to heading
Network Management CLI may already be installed
If you installed the Data Plane API on HAProxy ALOHA using the HAProxy ALOHA management package version 16.5 or greater, the Network Management CLI is already installed. If you installed the Data Plane API using the HAProxy ALOHA management package version 16.0 or earlier, you may need to update to a newer version of the API.
To install the Network Management CLI, follow the instructions to install the Data Plane API on HAProxy ALOHA. Both the Network Management CLI and Data Plane API belong to the same HAProxy ALOHA management package. You must install version 16.5 or later of the management package to enable the Network Management CLI.
To verify the Network Management CLI is ready for use, navigate to the File Manager in the Tools tab, and check that the netctl binary exists in /app/management/usr/bin. This means that the Network Management CLI is successfully installed. The netctl utility is what you will use when calling Network Management CLI commands.
Use the Network Management CLI Jump to heading
You can use the Network Management CLI to view your devices and your connection profiles. A device is either a physical network interface on the host, for example eth0, or a virtual network interface, for example eth1.1 for VLAN, that is created when its connection profile is activated. A connection profile is a collection of network interface settings.
List devices Jump to heading
To list devices use the following command:
nix
nix
outputtext
outputtext
Each device will show a status. If the connection is activated for the device it will show as connected. If its connection is not activated, it will show as unavailable. Devices showing as unmanaged cannot have a connection activated on them.
List connection profiles Jump to heading
To list all connection profiles use the following command:
outputtext
outputtext
The output includes the list of all connection profiles and their settings. These settings include:
- the IDfor the connection profile or its name
- the UUIDwhich is a unique identifier for the connection profile
- the typeof connection, for examplebond,ethernet, andvlan
- the interface-nameor the name of the device associated with the connection profile
Show connection profile Jump to heading
You can view all of the attributes associated with a connection profile using the netctl connection show command:
nix
nix
outputtext
outputtext
Hit tab twice after the command
Enter TAB twice after your netctl command to see available parameters. Here are some examples:
nix
nix
nix
nix
nix
nix
nix
nix
Do you have any suggestions on how we can improve the content of this page?