setevent

You can use the setevent command to specify what happens when an error or event is logged to the error log.

Syntax

Read syntax diagramSkip visual syntax diagram>>- svcservicetask -- -- setevent -- --------------------------->

>--+----------------------------------+-- ---------------------->
   '- -snmptrap --+- all -----------+-'
                  +- hardware_only -+
                  '- none ----------'

>--+-------------------------+-- ------------------------------->
   '- -snmpip -- ip_address -'

>--+---------------------------+-- ----------------------------->
   '- -community -- community -'

>--+-------------------------------+-- ------------------------><
   '- -alert --+- all -----------+-'
               +- hardware_only -+
               '- none ----------'

Parameters

-snmptrap all | hardware_only | none
Optionally specifies the SNMP trap setting, that is, when to raise a trap.
-snmpip ip_address
Optionally specifies the IP address of the host system that is running the SNMP manager software.
-community community
Optionally specifies the SNMP community string.
-alert all | hardware_only | none
Optionally specifies the alert setting. That is, when to raise an alert notification.

Description

This command modifies the settings that you want to apply to the error log. These settings define what to do when errors and events are logged. Issue the svctask setevent command to specify what you like to happen when an error or event is logged to the error log. You can select whether the cluster raises an SNMP trap, for entries that are added to the cluster error or event log, or both. Three levels of notification are possible:

If you have an SNMP manager installed or if you want to be notified by e-mail of errors or events, you should enable error notification. The notification levels for SNMP alerts can be set independently.

You can use this command to setup SNMP traps. For SNMP, you must supply the following information:

Possible failures

Examples

An invocation example

svcservicetask setevent -snmptrap all