Alerts are sent when conditions in the switch match an alert level that you create by editing a preconfigured rule already on the switch. Part of configuring the rule is specifying the alert level, and also, specifying the alert type, which can be an email. When an alert of the specified level or greater occurs, the switch then sends an email. By default, alerts are disabled.
-> set /SP/alertmgmt/rules/alert destination=email_to type=email email_custom_sender=email_from level=level
where:
alert is the number of the alert.
email_to is the email address to receive the alert.
email_from is the sender, as seen in the From field. For example: ilom-gwl-hostname, where hostname is the host name of the SP.
level is the level of the alert.
For example, to set alert 1 to send an email to user@headsup.com whenever a major or higher severity event happens:
-> set /SP/alertmgmt/rules/1 destination=user@companyq.com type=email email_custom_sender=ilom-gwl-unit1 level=major Set 'destination' to 'user@companyq.com' Set 'type' to 'email' Set 'email_custom_sender' to 'ilom-gwl-unit1' Set 'level' to 'major' ->