Skip to main content
Version 3.1.1

PgSmart Agent(s) Registration

Once PgSmart is installed, the next step is to register the agents, which, as mentioned earlier, are the platform components that provide the services or resources requested by the client.

note
  • Registering a new PgSmart Agent is a prerequisite for any service and must be done for each machine through the PgSmart CLI or PgSmart Web.

  • This option is available before any PgSmart command is executed.

Prerequisites
  • PgSmart Client and PgSmart Agent installed on the servers where the services will run.
Command Syntax
Terminal input
   pgsmart config agent
  1. When you run the command, PgSmart lists the agents that are already registered.

    1.1 To register a new agent, select Register.

  2. Enter the hostname or IP of the server where the PgSmart Agent is installed. [Default: localhost].

  3. Enter the port used by the Agent. [Default: 4432].

  4. Enter an alias for the agent (optional).

  5. Enter the agent's connection key (copy the connection key to the server where the agent is installed and running using the commands below).

    Terminal input
       cat /opt/pgsmart-agent/pgsmart.yml | grep connectionKey
  6. Confirm the client/agent registration.

    Figure 1 - PgSmart Agemt regoster
    Figure 1 - PgSmart Agemt regoster