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.
-
Registering a new PgSmart Agent is a prerequisite for any service and must be done for each machine through the PgSmart Client.
-
This option is available before any PgSmart command is executed.
- PgSmart Client and PgSmart Agent installed on the servers where the services will run.
- Instructions
- Agent Register
- Connection Key
pgsmart config agent
-
When you run the command, PgSmart lists the agents that are already registered.
1.1 To register a new agent, select
Register
. -
Enter the
hostname
orIP
of the server where the PgSmart Agent is installed. [Default: localhost]. -
Enter the
port
used by the Agent. [Default: 4432]. -
Enter an
alias for the agent
(optional). -
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 inputcat /opt/pgsmart-agent/pgsmart.yml | grep connectionKey
-
Confirm the client/agent registration.
Figure 1 - PgSmart Agemt regoster