Install or Uninstall the Proxy Server

The proxy server sends traffic from npc to the active Data Aggregator. The proxy server works as the third node of the service management cluster for fault tolerance. The service management cluster includes the proxy server, the active Data Aggregator, and the inactive Data Aggregator. For more information, see .
capm360
HID_Install_Proxy
The proxy server sends traffic from
Performance Center
to the active Data Aggregator. The proxy server works as the third node of the service management cluster for fault tolerance. The service management cluster includes the proxy server, the active Data Aggregator, and the inactive Data Aggregator. For more information, see Fault Tolerance.
(Optional) Configure the Sudo User Account for the Proxy Server
If you do not have root access to install and run the proxy server, configure the sudo user account.
Follow these steps:
  1. Locate the following file on the proxy server host:
    /etc/sudoers
  2. Add a command alias with the following permissions to the file:
    Cmnd_Alias CA_DAPROXY = /tmp/installDAProxy.bin,/sbin/service daproxy *,/sbin/service consul *,/opt/CA/daproxy/Uninstall/Uninstall
    ## Allows the daproxy user to manage the proxy server
    dasudouser_name
     ALL = CA_DAPROXY
    This command alias details the commands that the sudo user must be able to run.
    With the sudo user configured, add the sudo prefix to all commands to install the proxy server.
    Example:
    sudo ./installDAProxy.bin
Install the Proxy Server
Before you install and configure your fault tolerant Data Aggregators, install the proxy server.
Follow these steps:
  1. Log in to the proxy server host as the root or sudo user.
  2. Copy the 
    installDAProxy.bin
     file to the 
    /tmp
     directory.
  3. Change to the 
    /tmp
     directory:
    cd /tmp
  4. Change permissions for the installation file:
    chmod a+x installDAProxy.bin
  5. To run the console installation, do one of the following steps:
    • To run the installation as the root user, type the following command:
      ./installDAProxy.bin -i console
    • To run the installation as the sudo user, type the following command
      sudo ./installDAProxy.bin -i console
  6. Follow the instructions in the console.
  7. When prompted, specify the following parameters for the proxy server:
    • Install Set
      Specify 1 for an installation set including both the proxy server and Consul.
    • Install Folder
      Specify where to install the proxy server.
      Default:
      /opt/CA/daproxy
    • First DA Host
      Specify the hostname of the first active Data Aggregator.
    • Second DA Host
      Specify the hostname of the second inactive Data Aggregator.
    • DA HTTP API Port
      Specify the port for communication with the Data Aggregator HTTP API.
      Default:
       8581
    • Consul Port
      Specify the port for communication with Consul.
      Default:
       8500
    • Choose host IP address for Consul
      This prompt appears only when multiple public IP addresses are configured.
      Specify the bind address that the Consul agents use to communicate with each other. The Consul agents include the proxy host and both Data Aggregators in the cluster. If prompted for an address, specify an address that the other two hosts in the Consul cluster can reach.
Uninstall the Proxy Server
If necessary, you can easily uninstall the proxy server.
Follow these steps:
  1. Log in to the proxy server host as the root or sudo user.
  2. Run the following command:
    Proxy_Install_Directory
    /daproxy/Uninstall/Uninstall