10-29
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> system-view
[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> system-view
[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
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...