10-27
To make the configured user take effect, create an SNMP group first.
Related commands: snmp-agent group, snmp-agent community, snmp-agent usm-user v3.
Examples
# Create a v2c user
userv2c
in group
readCom
.
<Sysname> system-view
[Sysname] snmp-agent sys-info version v2c
[Sysname] snmp-agent group v2c readCom
[Sysname] snmp-agent usm-user v2c userv2c readCom
z
Set the SNMP version on the NMS to SNMPv2c
z
Fill in the read community name
userv2c
, and then the NMS can access the agent
# Create a v2c user
userv2c
in group
readCom
, allowing only the NMS with the IP address of 1.1.1.1
to access the agent by using this user name; other NMSs are not allowed to access the agent by using
this user name.
<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule permit source 1.1.1.1 0.0.0.0
[Sysname-acl-basic-2001] rule deny source any
[Sysname-acl-basic-2001] quit
[Sysname] snmp-agent sys-info version v2c
[Sysname] snmp-agent group v2c readCom
[Sysname] snmp-agent usm-user v2c userv2c readCom acl 2001
z
Set the IP address of the NMS to 1.1.1.1
z
Set the SNMP version on the NMS to SNMPv2c
z
Fill in both the read community and write community options with
userv2c
, and then the NMS can
access the agent.
snmp-agent usm-user v3
Syntax
snmp-agent usm-user v3 user-name group-name
[
cipher
] [
authentication-mode
{
md5
|
sha
}
auth-password
[
privacy-mode
{
3des
|
aes128
|
des56
}
priv-password
] ]
[
acl acl-number
]
undo snmp-agent usm-user
v3
user-name
group-name
{
local
|
engineid
engineid-string
}
View
System view
Default Level
3: Manage level
Parameters
user-name
: User name, a string of 1 to 32 characters. It is case sensitive.
group-name
: Group name, a string of 1 to 32 characters. It is case sensitive.
cipher
: Specifies that
auth-password
and
priv-password
are cipher text passwords, which can be
calculated by using the
snmp-agent calculate-password
command.
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...