You can use the command-line interface
(CLI) to set up your system to send event notification and inventory
reports to specified recipients and the IBM® Support
Center.
To set up, manage, and activate e-mail event and
inventory notifications, complete the following steps:
- Enable your system to use the e-mail notification function. To do this, issue the svctask mkemailserver CLI
command. Up to six SMTP e-mail
servers can be configured to provide redundant access to the external
e-mail network.
The following example
creates an e-mail server object. It specifies the name, IP address,
and port number of the SMTP e-mail server. After you issue the command,
you see a message that indicates that the e-mail server was successfully
created.
svctask mkemailserver -ip ip_address -port port_number
where
ip_address specifies the IP address
of a remote e-mail server and
port_number specifies
the port number for the e-mail server.
- Add recipients of e-mail
event and inventory notifications to the e-mail event notification
facility. To do this, issue the svctask mkemailuser CLI
command. You can add up to twelve recipients, one recipient at a time.
The
following example adds e-mail recipient
manager2008 and designates
that
manager2008 receive e-mail error-type event notifications.
svctask mkemailuser -address manager2008@ibm.com
-error on -usertype local
- Set the contact information
that is used by the e-mail event notification facility. To
do this, issue the svctask chemail CLI command.
If you are starting the e-mail event notification facility, the reply, contact, primary,
and location parameters are required. If you
are modifying contact information used by the e-mail event notification
facility, at least one of the parameters must be specified.
The
following example sets the contact information for the e-mail recipient
manager2008.
svctask chemail -reply manager2008@ibm.com -contact manager2008
-primary 0441234567 -location 'room 256 floor 1 IBM'
- Optionally, generate a
report that lists e-mail event notification settings for all e-mail
recipients, or change or delete e-mail recipients.
- To generate a report that lists the e-mail event notification
settings for all e-mail recipients, an individual e-mail recipient,
or a specified type of e-mail recipient (local or support), issue
the svctask lsemailuser CLI command.
- To change the settings that are defined for a recipient, issue
the svctask chemailuser CLI command. You must specify
the user ID or name of the e-mail recipient for whom you are modifying
settings.
- To remove a previously defined e-mail recipient, issue the svctask
rmemailuser CLI command. You must specify the user ID or
name of the e-mail recipient that you want to remove.
- Activate the e-mail and inventory notification
function. To do this, issue the svctask startemail CLI
command. There are no parameters for this command.
Note: Inventory information is automatically reported to IBM when
you activate error reporting.
- Optionally, test the e-mail notification function to ensure
that it is operating correctly and send an inventory e-mail notification.
- To send a test e-mail notification to one or
more recipients, issue the svctask testemail CLI
command. You must either specify all or the user
ID or user name of an e-mail recipient that you want to send a test
e-mail to.
- To send an inventory e-mail notification to
all recipients that are enabled to receive inventory e-mail notifications,
issue the svctask sendinventoryemail CLI command.
There are no parameters for this command.