For information about how to configure administrative alerts, see the following procedures.
You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
View the enabled alerts.
% dpconf get-server-prop -h host -p port enabled-admin-alerts |
Enable one or more administrative alerts.
% dpconf set-server-prop -h host -p port enabled-admin-alerts:alert1 \ [enabled-admin-alerts:alert2 ...] |
For example, to enable all available alerts, run this command:
% dpconf set-server-prop -h host -p port \ enabled-admin-alerts:error-configuration-reload-failure-with-impact \ enabled-admin-alerts:error-server-shutdown-abrupt \ enabled-admin-alerts:info-configuration-reload \ enabled-admin-alerts:info-data-source-available \ enabled-admin-alerts:info-server-shutdown-clean \ enabled-admin-alerts:info-server-startup \ enabled-admin-alerts:warning-configuration-reload-failure-no-impact \ enabled-admin-alerts:warning-data-source-unavailable \ enabled-admin-alerts:warning-data-sources-inconsistent \ enabled-admin-alerts:warning-listener-unavailable |
To disable all alerts, run this command:
% dpconf set-server-prop -h host -p port enabled-admin-alerts:none |
To add an alert to an existing list of enabled alerts, run this command:
% dpconf set-server-prop -h host -p port enabled-admin-alerts+:alert-name |
To remove an alert from an existing list of enabled alerts, run this command:
% dpconf set-server-prop -h host -p port enabled-admin-alerts-:alert-name |
By default, no alerts are enabled.
For more information, see enabled-admin-alerts(5dpconf).
You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Select the alerts that will be sent to the syslog daemon, as described in To Enable Administrative Alerts.
Enable alerts to be sent to the syslog daemon.
$ dpconf set-server-prop -h host -p port syslog-alerts-enabled:true |
All alerts are sent to the syslog with the facility of USER.
Set the host name of the syslog daemon to which alerts are to be sent.
$ dpconf set-server-prop -h host -p port syslog_hostname:hostname |
You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Select the alerts that will be sent to the syslog, as described in To Enable Administrative Alerts.
Configure the address and characteristics of the email.
$ dpconf set-server-prop -h host -p port email-alerts-smtp-host:host-name \ email-alerts-smtp-port:port-number \ email-alerts-message-from-address:sender-email-address \ email-alerts-message-to-address:receiver-email-address \ [email-alerts-message-to-address:receiver-email-address ...] \ email-alerts-message-subject:email-subject |
Enable alerts to be sent to email.
$ dpconf set-server-prop -h host -p port email-alerts-enabled:true |
(Optional) Set a flag to include the alert code in the email
$ dpconf set-server-prop -h host -p port \ email-alerts-message-subject-includes-alert-code:true |
You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Select the alerts that will be sent to the syslog, as described in To Enable Administrative Alerts.
Enable alerts to run a script.
$ dpconf set-server-prop -h host -p port scriptable-alerts-enabled:true |
Set the name of the script that will be run.
$ dpconf set-server-prop -h host -p port scriptable-alerts-command:script-name |