You can use the pemworker utility to register a server for monitoring by the PEM server or to unregister a database server. During registration, the pemworker utility will bind the new server to the agent that resides on the system from which you invoked the registration command. To register a server:pemworker --register-serverpemworker.exe REGISTER-SERVICEAppend command line options to the command string when invoking the pemworker utility. Each option should be followed by a corresponding value:When registering a database server, you must provide the password associated with the administrative user on the new server. Use the PEM_NEW_SERVER_PASSWORD environment variable to provide the associated password.Before any changes are made on the PEM database, the connecting agent is authenticated with the PEM database server. When invoking the pemworker utility, you must provide the password associated with the PEM server administrative user. There are three ways to specify the administrative password; you can:
• set the PEM_MONITORED_SERVER_PASSWORD environment variable.
• provide the password on the command line with the PGPASSWORD keyword.
• create an entry in the .pgpass file.