User manual

2
CLI Commands
2-91
config
Parameters This command has four parameters. The last two are optional.
Command Example
Root> config snmp addv1target 4 joe 125.26.78.95 162
config.snmp.addV2Target
Syntax addV2Target index community [IP] [udpNum]
Purpose This command configures v2 community string. The IP address and
port number of 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.
index Index of the target entry. Valid values are 1 to 6.
community Community string of the target entry. 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 names are allowed, but the
corresponding security names (refer to the
command config.snmp.addTargetParams on
page 22-87) must also match.
IP The address of the trap recipient shown in 4-byte
dotted-decimal format.
udpNum The 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.
index Index of the target entry. Valid values are 1 to 6.