Skip to main content
Version Next

High Availability Agent Management

Below are the commands required to manage the high availability Agent in the PostgreSQL Ecosystem:

Command Syntax
Terminal input
    pgsmart ha agent [OPERATION] [Flags]

Operations:

  • Info — Allows displaying agent information
  • Status — Allows displaying agent status
  • Start — Allows starting the agent service
  • Stop — Allows stopping the agent service
  • Restart — Allows restarting the agent service
  • Reload — Allows reloading the agent's component services

Flags:

  • -a, --agent=<agent> => Alias, hostname, or IP of the server where the desired PgSmart Agent is installed
  • -h, --help => Help
Command Execution

Display agent information

Terminal input
    pgsmart ha agent info
  1. Select the desired PgSmart Agent (or Register a new Agent).

    Figure 1 - High Availability - Agent - Information
    Figure 1 - High Availability - Agent - Information

Display agent status

Terminal input
    pgsmart ha agent status
  1. Select the PgSmart Agent (or Register a new Agent).

    Figure 2 - High Availability - Agent - Status
    Figure 2 - High Availability - Agent - Status

Start the agent service

Terminal input
    pgsmart ha agent start
  1. Select the PgSmart Agent (or Register a new Agent).

    Figure 3 - High Availability - Agent - Start
    Figure 3 - High Availability - Agent - Start

Stop the agent service

Terminal input
    pgsmart ha agent stop
  1. Select the PgSmart Agent (or Register a new Agent).

    Figure 4 - High Availability - Agent - Stop
    Figure 4 - High Availability - Agent - Stop

Restart the agent service

Terminal input
    pgsmart ha agent restart
  1. Select the PgSmart Agent (or Register a new Agent).

    Figure 5 - High Availability - Agent - Restart
    Figure 5 - High Availability - Agent - Restart

Reload agent services

Terminal input
    pgsmart ha agent reload
  1. Select the PgSmart Agent (or Register a new Agent).

    Figure 6 - High Availability - Agent - Reload
    Figure 6 - High Availability - Agent - Reload