3Com S7902E Command Reference Manual - page 2135
1-30
z
If you do not specify the
cipher
keyword, the system considers the arguments
auth-password
and
priv-password
as plain text passwords. In this case, if you perform the copy and paste operation,
the system will encrypt these two passwords, resulting in inconsistency of the cipher text and plain
text passwords of the two devices.
Note that:
z
If you use the
snmp-agent usm-user v3
cipher
command, the
pri-password
argument in this
command can be obtained by the
snmp-agent calculate-password
command. To make the
calculated cipher text password applicable to the
snmp-agent usm-user v3
cipher
command and
have the same effect as that in the
snmp-agent usm-user v3
cipher
command, ensure that the
same privacy protocol is specified for the two commands and the local engine ID specified in the
snmp-agent usm-user v3
cipher
command is consistent with the SNMP entity engine ID
specified in the
snmp-agent calculate-password
command.
z
If you execute this command repeatedly to configure the same user (namely, the user names are
the same, no limitation to other keywords and arguments), the last configuration takes effect.
z
A plain text password is required when the NMS accesses the device; therefore, please remember
the user name and the plain text password when you create a user.
Related commands:
snmp-agent calculate-password
,
snmp-agent group
,
snmp-agent usm-user
{
v1
|
v2c
}.
Examples
# Add a user
testUser
to the SNMPv3 group
testGroup
. Configure the security model as
authentication without privacy
, the authentication protocol as
MD5
, the plain-text authentication
password as
authkey
.
[Sysname] snmp-agent group v3 testGroup authentication
[Sysname] snmp-agent usm-user v3 testUser testGroup authentication-mode md5 authkey
z
Set the SNMP version on the NMS to SNMPv3
z
Fill in the user name testUser,
z
Set the authentication protocol to MD5
z
Set the authentication password to authkey
z
Establish a connection, and the NMS can access the MIB objects in the ViewDefault view on the
device
# Add a user
testUser
to the SNMPv3 group
testGroup
. Configure the security model as
authentication and privacy
, the authentication protocol as MD5, the privacy protocol as DES56, the
plain-text authentication password as
authkey
, and
the plain-text privacy password as
prikey
.
[Sysname] snmp-agent group v3 testGroup privacy
[Sysname] snmp-agent usm-user v3 testUser testGroup authentication-mode md5 authkey
privacy-mode des56 prikey
z
Set the SNMP version on the NMS to SNMPv3
z
Fill in the user name testUser,
z
Set the authentication protocol to MD5
z
Set the authentication password to authkey
z
Set the privacy protocol to DES
z
Set the privacy password to prikey