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>>- svctask -- -- 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.
Note:Note: These arguments are not mutually exclusive.

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. You can set the following values for the -snmptrap and -alert arguments:

all
Sends an SNMP trap for all errors and state changes that are logged.
hardware_only
Sends an SNMP trap for all errors, but not for object state changes.
none
Does not send any SNMP traps or errors. This is the default setting for a new cluster.

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

Possible failures

Examples

An invocation example

svctask setevent -snmptrap all -snmpip 1.2.3.4 
-community mysancommunity