addsnmpmgr

Adds an SNMP manager to receive SNMP traps. To generate traps, you must add an SNMP manager and set the SNMP traps to be generated (using the settrap command).

Read syntax diagramSkip visual syntax diagram
>>-addsnmpmgr--+--------+-- -ip--ip_address--------------------->
               +- -?----+
               +- -h----+
               '- -help-'

>--+---------------------+--+----------------+------------------>
   '- -port--port_number-'  '- -ver--+-v1--+-'
                                     '-v2c-'

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

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.
–ip ip_address
Specifies the IP address of the SNMP trap receiver.
–port port_number
Specifies the SNMP-trap port number. The default port number is 162.
–ver v1 | v2c
Specifies the SNMP version. You can specify one of the following values:
v1
Sends SNMP version 1 traps. This is the default value.
v2c
Sends SNMP version 2 notifications using community-based security.
–community community
Specifies the community as any alphanumeric string used to authenticate v1 or v2c traps. The default community is "public."

Commas and colons are not valid characters in the community name. This name can be no longer than 128 characters in length.

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

To generate traps, you must add an SNMP manager and set the SNMP traps to be generated (using the settrap command). If an SNMP manager is not added, traps are not generated.

You can add up to two SNMP managers to SAN File System. One of these SNMP managers can be used by the optional Call Home feature.

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

Example

Adds an SNMP manager The following example adds an SNMP manager to the SNMPMgr1 community using SNMP v2c.
sfscli> addsnmpmgr -ip 192.168.0.1 -port 8192 -ver v2c -community SNMPMgr1
SNMP manager 192.168.0.1 successfully added.

Parent topic: Administrative commands

Related tasks
Adding SNMP managers
Modifying SNMP managers

Related reference
lssnmpmgr
lstrapsetting
rmsnmpmgr
settrap

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