1-28
priv-password
: Encryption password, a string of 1 to 64 characters in plain text, a 32-bit hexadecimal
number in cipher text if MD5 algorithm is used, and a 40-bit hexadecimal number in cipher text if SHA
algorithm is used.
acl-number
: Binds a user with an ACL, where
acl-number
represents ACL number, in the range 2000 to
2999. Using ACLs can restrict the source addresses of SNMP messages, namely, permitting or refusing
the SNMP messages with specific source addresses, thus restricting access between the NMS and the
agent.
local
: Specifies a local entity user.
engineid
-
string
: Engine ID associated with the user, an even number of hexadecimal characters, in the
range 10 to 64.
Description
Use the
snmp-agent usm-user
command to add a user to an SNMP group.
Use the
undo snmp-agent usm-user
command to remove a user from an SNMP group.
This command is applicable to SNMPv3. If the agent and the NMS communicate using SNMPv3
messages, you need to create an SNMPv3 user first.
To make the configured user take effect, you need to create a group first. You can configure whether to
perform authentication or privacy when you create a group, and configure the algorithm and password
for authentication or privacy when you create a user.
An SNMPv3 user is related the engine ID: if you change the engine ID after configuring a user, the user
corresponding to the original engine ID becomes invalid.
Note that:
z
If the password is in cipher text, the
pri-password
argument 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, ensure that the same authentication algorithm 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 use the command repeatedly to configure the same user (namely, with the same username),
the last configuration takes effect.
z
You must enter a plain text password when the NMS accesses the device. Therefore, when you
create a user, you need to memorize the username and the corresponding plain text password.
Related commands:
snmp-agent group
,
snmp-agent community
,
snmp-agent local-engineid
.
Examples
# Add a user named
testUser
to the SNMPv3 group named
testGroup
. Set the security mode to
authentication without privacy, the authentication algorithm to
md5
, and authentication password
authkey
.
<Sysname> system-view
[Sysname] snmp-agent group v3 testGroup authentication
[Sysname] snmp-agent usm-user v3 testUser testGroup authentication-mode md5 authkey
On the NMS, set the version to
SNMPv3
, the username to
testUser
, the authentication algorithm to
MD5
, and the authentication password to
authkey
, and establish a connection with the device. Then
the NMS can access the MIB objects in the view
ViewDefault
on the device.
Содержание 5500-EI PWR
Страница 43: ...2 6...
Страница 76: ...1 17...
Страница 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Страница 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Страница 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Страница 519: ...iii...
Страница 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Страница 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Страница 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Страница 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Страница 1111: ...ii xmodem get 3 18...
Страница 1314: ...A 44 Z...