Skip to content

Commit cfd29cf

Browse files
authored
Merge pull request #6846 from EnterpriseDB/content/docs/pem/10/pem_user_fix
PEM 10 - quick fixes for PEM_SERVER_PASSWORD and --pem-user
2 parents 72457fb + f659d72 commit cfd29cf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

product_docs/docs/pem/10/registering_agent.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ If you don't want the installer to register the agent, clear the **Register now*
2626
## Registering a PEM agent using the pemworker utility
2727

2828
The pemworker utility is installed automatically with the PEM agent. It's located in the `/usr/edb/pem/agent/bin` directory on Linux and `C:\Program Files\edb\pem\agent-x64\bin` on Windows.
29-
To register an agent, set the PEM server password, invoke the utility as shown in the examples, and add the relevant options from the table as needed. Follow each option with a corresponding value.
29+
30+
To register an agent, set the PEM server database user password, invoke the utility as shown in the examples, and add the relevant options from the table as needed. Follow each option with a corresponding value.
3031

3132
#### Linux
3233

@@ -48,7 +49,7 @@ set PEM_SERVER_PASSWORD=edb
4849
|---------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
4950
| `--pem-server` | The IP address of the PEM backend database server. This parameter is required. |
5051
| `--pem-port` | The port of the PEM backend database server. The default value is `5432`. |
51-
| `--pem-user` | The name of a database with the `pem_admin` role and the `rolcreaterole` flag set (or a superuser) on the PEM backend database server. This user will be used to connect to the PEM server to perform agent registration. This parameter is required. |
52+
| `--pem-user` | The name of a database user with the `pem_admin` role and the `rolcreaterole` flag set on the PEM backend database server, or a superuser. This user will be used to connect to the PEM server to perform agent registration. This parameter is required. |
5253
| `--pem-agent-user` | The name of a database user on the PEM server backend database server. After registration, the agent will use this user to open connections to the PEM database server to write probe data, evaluate alerts, etc. This parameter is optional. If omitted, the agent will connect using a new user created during registration named `agent<N>` where `<N>` is the agent ID. Note that this user is always created and even if you specify a `pem-agent-user` the agent will use `SET ROLE agent<N>` to switch roles after the connection is made. |
5354
| `--pem-ssl-mode` | The [SSL mode](https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-PROTECTION) to be used by the PEM agent user (see above). The possible values are `prefer`, `require`, `disable`, `verify-CA`, and `verify-full`. The default value is `require`. |
5455
| `--cert-path` | The complete path to a directory in which certificates will be stored. If you don't provide a path, certificates are created in `~/.pem` on Linux and `%APPDATA%/pem` on Windows. |

product_docs/docs/pem/9/registering_agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ If you don't want the installer to register the agent, clear the **Register now*
2828

2929
The pemworker utility is installed with the PEM agent. It's located in `/usr/edb/pem/agent/bin` on Linux and `C:\Program Files\edb\pem\agent-x64\bin` on Windows.
3030

31-
To register an agent, set the PEM server password, invoke the utility as shown in the examples, and add the relevant options from the table as needed. Follow each option with a corresponding value.
31+
To register an agent, set the PEM server database user password, invoke the utility as shown in the examples, and add the relevant options from the table as needed. Follow each option with a corresponding value.
3232

3333
#### Linux
3434

0 commit comments

Comments
 (0)