addemailalert

Use the addemailalert command to add e-mail addresses to the list of e-mail addresses to receive e-mail alerts.

Syntax

Read syntax diagramSkip visual syntax diagram addemailalert -help-h-?-typeallsessionsession_proconfigcommseverestatusactive_standby_connectedactive_standby_disconnectedpathingtask_successtask_failed -recipient email_or_userName ,  email_or_userName -sessionssessionsname,  sessionsname

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-type { all | session | session_rpo | config | comm | severestatus | active_standby_connected | active_standby_disconnected | pathing | task_success | task_failed }
Specifies which type of alerts to notify the recipients. If type is not specified, the recipient will receive all categories.
-session

Specifies which sessions notify the recipients if their state changes. If sessions aren't specified, recipient will receive alerts for all sessions (used only for session type alerts).

-recipient email_or_username[,email_or_username]

Specifies the user names or email addresses to be added to the alert recipient list. Multiple user names or email addresses can be added using a comma separated list.

Example: Adding an e-mail address to the alert recipient list

csmcli> addemailalert -recipient user@us.ibm.com

The following output is returned:



IWNR1720I [Apr 12, 2016 10:05:41 AM] The e-mail recipient list has been updated.
IWNR1724I [Apr 12, 2016 10:05:41 AM] The e-mail recipient user@us.ibm.com has been added to category ALL.

Example: Adding multiple e-mail addresses to the alert recipient list

csmcli> addemailalert -recipient user1@us.ibm.com,user2@us.ibm.com

The following output is returned:

IWNR1720I [Apr 12, 2016 10:07:48 AM] The e-mail recipient list has been updated.
IWNR1724I [Apr 12, 2016 10:07:48 AM] The e-mail recipient user1@us.ibm.com has been added to category ALL.
IWNR1724I [Apr 12, 2016 10:07:48 AM] The e-mail recipient user2@us.ibm.com has been added to category ALL.

Example: Adding multiple e-mail addresses to the alert recipient list for only session state change events

csmcli> addemailalert -type session -recipient user1@us.ibm.com,user2@us.ibm.com

The following output is returned:

IWNR1720I [Apr 12, 2016 10:07:48 AM] The e-mail recipient list has been updated.
IWNR1724I [Apr 12, 2016 10:07:48 AM] The e-mail recipient user1@us.ibm.com has been added to category SESSION.
IWNR1724I [Apr 12, 2016 10:07:48 AM] The e-mail recipient user2@us.ibm.com has been added to category SESSION.

Example: Adding sessions to a session state change email alert

addemailalert -type session -recipient user1@us.ibm.com -sessions test, test2

The following output is returned:

IWNR1720I [Nov 4, 2022, 4:46:20 PM] The email recipient list has been updated.