HP StorageWorks Storage Mirroring scripting guide (T2558-96074, February 2008)

13 - 8
Email Set Filter Include
Email Subject
Command EMAIL SETFILTERINCLUDE
Description Specifies which Event Viewer messages are sent via e-mail
Syntax
EMAIL SETFILTERINCLUDE [INFO, WARNING, ERROR] [EXCLUDEIDS "<lID1,ID2-ID4,...>"]
Options INFO—Information messages will be sent via e-mail
WARNING—Warning messages will be sent via e-mail
ERROR—Error messages will be sent via e-mail
EXCLUDEIDS ID1,ID2-ID4,...—A comma separated list of IDs or ID ranges. A space should
separate the EXCLUDEIDS switch from the list but within the list, there should be no spaces.
Ranges are specified with a begin and end number and separated with a dash (-). The entire list
should be enclose in quotation marks.
Examples
email setfilterinclude warning, error
email setfilterinclude warning, error excludeids "4007, 4012, 4015"
email setfilterinclude excludeids "4000-4010, 5100"
Notes The default settings for this command are info and warning. No IDs are excluded, by default.
The options info, warning, and error can be used in any combination and in any order. The first
option does not require a comma, but the second and remaining options do require a comma
before the option.
When changing the filter options, e-mail notification will automatically be stopped and restarted.
If a failure occurs while stopping or restarting e-mail notification, Storage Mirroring will output a
related error message
You must have an active source specified for any e-mail command to work properly.
Command EMAIL SUBJECT
Description Specifies if additional text will be displayed in the subject of the e-mail message
Syntax
EMAIL SUBJECT [PREFIX <prefix> | NOPREFIX] [DESCRIPTION | NODESCRIPTION]
Options PREFIX prefix—Text which will be inserted at the front of the subject line for each Storage
Mirroring generated e-mail message. This will help distinguish the Storage Mirroring messages
from other messages.
NOPREFIX—No prefix will be inserted at the front of the subject line for each Storage Mirroring
generated e-mail message
DESCRIPTION—Append the message description to the end of the subject line
NODESCRIPTION—Do not append the message description to the end of the subject line
Examples
email subject prefix "Storage Mirroring Notification" description
email subject prefix "Storage Mirroring Notification" nodescription
Notes Prefix phrases that contain non-alphnumeric characters must be enclosed in quotation marks.
The entire subject line is limited to 150 characters.
You must have an active source specified for any e-mail command to work properly.