User Manual
UMN:CLI
V8102
147
Command
Mode
Description
show snmp contact
Enable
Global
Shows the name of the administrator.
show snmp location
Shows the location of the SNMP agent.
show snmp agent-address
Shows the IP address of the SNMP agent.
7.1.5
SNMP Com2sec
SNMP v2 authorizes the host to access the agent according to the identity of the host and
community name. The
com2sec
command specifies the mapping from the identity of the
host and community name to security name.
To configure an SNMP security name, use the following command.
Command
Mode
Description
snmp com2sec
COM2SEC
{
A.B.C.D
|
A.B.C.D/M
}
COMMU-
NITY
Global
Specifies the mapping from the identity of the host and
community name to security name, enter security and
community name.
COM2SEC: com2sec name
COMMUNITY: community name
snmp com2sec
COM2SEC ipv6
{
X:X::X:X
|
X:X::X:X/M
}
COMMU-
NITY
no snmp com2sec
COM2SEC
Deletes a specified security name, enter the security
name.
COM2SEC: security name
show snmp com2sec
Enable
Global
Shows a specified security name.
The following is an example of configuring SNMP com2sec.
SWITCH(config)#
snmp com2sec
TEST 10.1.1.1 PUBLIC
SWITCH(config)#
show snmp com2sec
Com2Sec List
SecName
Source
Community
------------------------------------------------
TEST
10.1.1.1
PUBLIC
SWITCH(config)#
7.1.6
SNMP Group
You can create an SNMP group that can access SNMP agent and its community that be-
longs to a group.
To create an SNMP group, use the following command.
Command
Mode
Description
snmp group
GROUP
{
v1
|
v2c
|
v3
}
SECURITY
Global
Creates SNMP group, enter the group name.
GROUP: group name
SECURITY: security name