Log in to the N1 System Manager.
See To Access the N1 System Manager Command Line for details.
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.
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.
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 |
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 |