ealert-config

Usage

avcli ealert-config [--ssl] [--tls] [--port port] [--sender sender] [--username username] [--password password] --host host recipients...

Description

The ealert-config command configures e-Alert support in everRun systems. If you do not provide a user name, the command assumes that authentication is not required to access the SMTP server. If you provide a user name but not a password, the command prompts you for the password.

Options

--ssl Use SSL when communicating with the SMTP server. You can specify this option only if --tls is not specified.
--tls Use TLS when communicating with the SMTP server(s). You can specify this option only if --ssl is not specified.
--port port Use this port number to connect to the SMTP server.
--sender sender Send email from this sender (name or IP address).
--username username Use this name for authentication on the specified SMTP host.
--password password Use this password for authentication on the specified SMTP host.
--host host The DNS or IP address of the SMTP server.
recipients The list of email addresses to receive eAlert emails; required only when e-Alerts are enabled.

Examples

The following command configures email alerts to use the SMTP server mail.my-domain.com and to send alerts to the recipient admin@my-domain.com:

$ avcli ealert-config --host mail.my-domain.com admin@my-domain.com

The following command configures email alerts to use the SMTP server mail.my-domain.com and to send alerts the recipients admin@my-domain.com and bob@my-domain.com:

$ avcli ealert-config --host mail.my-domain.com admin@my-domain.com bob@my-domain.com

The following command configures email alerts to use the protocol SSL and the SMTP server mail.my-domain.com, and to send alerts to the recipient bob@my-domain.com, using the username admin and the password secret for authentication:

$ avcli ealert-config --ssl --username admin --password secret --host mail.my-domain.com bob@my-domain.com

The following command configures email alerts to use the protocol SSL and the SMTP server mail.my-domain.com, and to send alerts to the recipient bob@my-domain.com, using the username admin and no password for authentication:

$ avcli ealert-config --ssl --username admin --host mail.my-domain.com bob@my-domain.com

The following command configures email alerts to send alerts from the sender sample@gmail.com, using the protocol TLS on port 587 and the SMTP server mail.my-domain.com, and to send alerts to the recipient bob@my-domain.com, using the username admin and no password for authentication:

$ avcli ealert-config --tls --port 587 --sender sample@gmail.com --username admin --password secret --host mail.my-domain.com bob@my-domain.com