settrap

Specifies SNMP events to be trapped. When the event occurs, a message is sent to all SNMP managers.

Read syntax diagramSkip visual syntax diagram
>>-settrap--+--------+-- -event--+--------------+--------------><
            +- -?----+           +-all----------+
            +- -h----+           +-none---------+
            '- -help-'           | .----------. |
                                 | V          | |
                                 '---+-err--+-+-'
                                     +-info-+
                                     +-warn-+
                                     '-sev--'

Parameters

–? | –h | –help
Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored.
–event
Specifies the events for which traps are to be sent. You can specify any of the following values:
all
Generates an SNMP trap when an information, error, warning, or severe event occurs. This parameter cannot be combined with other values.
none
Turns off SNMP traps for all events. This value cannot be combined with other values.
info
Generates an SNMP trap when an information event occurs. This value can be combined with any value except all or none. Multiple values must be separated by a comma but no space.
err
Generates an SNMP trap when an error event occurs. This value can be combined with any value except all or none. Multiple values must be separated by a comma but no space.
warn
Generates an SNMP trap when a warning event occurs. This value can be combined with any value except all or none. Multiple values must be separated by a comma but no space.
sev
Generates an SNMP trap when a severe event occurs. This value can be combined with any value except all or none. Multiple values must be separated by a comma but no space.

Prerequisites

You must have Administrator privileges to use the command.

You must be logged in to the operating system on the engine hosting the master metadata server to run this command.

Description

Note: To generate traps, you must set the SNMP event types that you want to generate traps and you must add an SNMP manager (using the addsnmpmgr command).

SNMP traps of the specified type are generated for all SNMP managers.

When you change a disruptive cluster setting, dynamic cluster settings (such as SNMP settings) cannot be modified until you (using the stopcluster and startcluster commands).

Example

Sets the SNMP traps The following example sets SNMP traps for severe and warning events:
sfscli> settrap -event sev,warn
SNMP trap event level was successfully set.

Parent topic: Administrative commands

Related tasks
Configuring metadata servers for SNMP traps

Related reference
addsnmpmgr
lssnmpmgr
lstrapsetting
rmsnmpmgr

Library | Support | Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2004. All Rights Reserved.
IBM TotalStorage SAN File System v2.2