Sun N1 System Manager 1.1 Administration Guide

ProcedureTo Create and Test a Notification

Steps
  1. Log in to the N1 System Manager.

    See To Access the N1 System Manager Command Line for details.

  2. Type the following command:


    N1-ok> create notification notification topic topic
    type type destination destination
    

    The notification is created and enabled. See create notification in Sun N1 System Manager 1.1 Command Line Reference Manual for details and valid topics.

  3. Type the following command:


    N1-ok> start notification notification test
    

    A test notification message is sent. See start notification in Sun N1 System Manager 1.1 Command Line Reference Manual for details.


Example 5–18 Creating an Email Notification

This example shows how to create a notification to be sent by email if a physical threshold value is exceeded. The notification is called test2. The recipient's email address is nobody@sun.com


N1-ok> create notification test2 destination nobody@sun.com
topic EReport.Physical.ThresholdExceeded type email

The show notification command can be used to verify that the notification has been created.


N1-ok> show notification
Name    Event Topic                         Destination       State
test2   EReport.Physical.ThresholdExceeded  nobody@sun.com     enabled 


Example 5–19 Creating an SNMP Notification

This example shows how to create a notification to be sent by SNMP if a physical threshold value is exceeded. The notification is called test23. The recipient SNMP address is sun.com


N1-ok> create notification test23 destination sun.com
topic EReport.Physical.ThresholdExceeded type snmp

The show notification command can be used to verify that the notification has been created.


N1-ok> show notification
Name    Event Topic                         Destination  State
test23  EReport.Physical.ThresholdExceeded  sun.com     enabled