Configure email alerts from ILOM CLI

From Peter Pap's Technowiki
Jump to: navigation, search

1. Configure the email client for the SP:

set /SP/clients/smtp state=enabled address=X.X.X.X

2. Test that it works:

set /SP/clients/smtp send_test_email_to=myaddress@mycompany.com


When you look at the pre-configured alerts on an ILOM, they are all snmptraps:

-> show /SP/alertmgmt/rules/1

 /SP/alertmgmt/rules/1
    Targets:

    Properties:
        type = snmptrap
        level = disable
        destination = 0.0.0.0
        destination_port = 0
        community_or_username = public
        snmp_version = 1
        testrule = (Cannot show property)

    Commands:
        cd
        set
        show

So you need to convert the to email alerts and configure:

1. Convert snmptrap to email alert

set /SP/alertmgmt/rules/1 level=major type=email

2. Configure target email address:

set /SP/alertmgmt/rules/1 destination=myaddress@mycompany.com

It should look something like this when you're done:

-> show /SP/alertmgmt/rules/1

 /SP/alertmgmt/rules/1
    Targets:

    Properties:
        type = email
        level = major
        destination = myaddress@mycompany.com
        email_custom_sender = (none)
        email_message_prefix = (none)
        event_class_filter = (none)
        event_type_filter = (none)
        testrule = (Cannot show property)

    Commands:
        cd
        set
        show

3. Test it:

set /SP/alertmgmt/rules/1 testrule=true