The PEM CLI allows you to export and import the alert templates or probes from one PEM server to another.
You can install the PEM CLI using the package edb-pem-cli-8.5.0-1-<platform_name> separately from the edb.repo repository. It creates the binary file /usr/edb/pem/cli/bin/pem and the license file /usr/edb/pem/edb-pem-cli-license.txt.
After installing the PEM CLI package, use the ./pem -h command to see all the available options.
You can see all the available options with the import-alert-templates subcommand:
You can see all the available options with the list-alert-templates subcommand:
You can see all the available options with the export-alert-templates subcommand:
You can see all the available options with the import-probes subcommand:
You can see all the available options with the export-probes subcommand:
You can see all the available options with the list-probes subcommand:
Example
To list all the probes (system as well as custom probes) use the -c all option:
Where:
PEM_PASSWORD_FILE=/tmp/pass is the password file with the password of the postgres user.
PEM_API_USER=postgres is the username through which you're running the PEM CLI.
PEM_SERVER_URL=https://172.17.0.4/pem is the URL of the PEM server containing the probes.
-i list-probes is the insecure option with the list-probes subcommand to allow insecure connection and to list the probes.
-c all is the -c option with the all value to list all the system as well as custom probes.