FW V06.XX/HAFM SW V08.02.00 HP StorageWorks CLI Reference Guide for Directors and Edge Switches Reference Guide (AA-RQ7AE-TE, July 2004)

CLI Commands
94 CLI Reference Guide for Directors and Edge Switches
Syntax
addCommunity commIndexcommNamewriteAuthorization
trapRecipient udpPortNum
Purpose
This command adds an SNMP community to the SNMP configuration.
Parameters
This command has five parameters. Up to six community names and trap
recipients may be defined.
Command Example
Root> config snmp addCommunity 1 “CommunityName1” enabled
123.123.123.123 162
config.snmp.addCommunity
commIndex Specifies the community to be created or edited.
Valid values are integers in the range 1–6.
commName Specifies the community name of the community
specified by commIndex.
The community name must not exceed 32 characters in
length. Valid characters include all those in the ISO
Latin-1 character set. Duplicate community names are
allowed, but the corresponding
writeAuthorization values must match.
writeAuthorization Specifies the write authorization state of the community.
Valid values are enabled and disabled. Boolean 1
and 0 may be substituted as values.
trapRecipient Specifies the trap recipient. Values must be 4 bytes in
dotted-decimal format.
udpPortNum Specifies the user datagram protocol (UDP) port number
to which the director sends traps for each recipient.
The value can be a decimal number or the default, which
162. Valid values include all legal UDP port numbers.