FW 08.01.00 McDATA E/OS Command Line Interface User Manual (620-000134-740, November 2005)

2
CLI Commands
2-83
config
config.snmp.addV2Target
Syntax addV2Target index community [IP] [udpNum]
Purpose This command configures a v2 community string. The IP address and
port number of a v2 trap recipient can be optionally specified. The
community string can be used for v2 access only if mapped to a
security and group name.
Parameters This command has four parameters. The last two are optional.
Command Example
Root> config snmp addv2target 3 smith 125.26.78.96 162
Root> config snmp addv2target 3 smith
config.snmp.addV3Target
Syntax addV3Target index [IP] [udpNum]
index Index of the Target entry. Valid values are 1
to 6.
community Community string of the Target entry
described by the index. The maximum length
of the community string is 32 characters. All
characters in the ISO Latin-1 character set are
valid for community names. Duplicate
Community strings are allowed.
IP The IP address of the trap recipient shown in
4-byte dotted-decimal format.
udpNum UDP Port Number of the Trap recipient to
which the SNMP agent will send the traps.
This value is expressed in decimal and the
default value is 162. The default number is
assumed if this field is replaced with
"default". All legal UDP port numbers are
allowed. If the IP address is specified and this
parameter is not specified, it will be set to the
default value.