215
Examples
# Set the SNMP notification queue size to 200.
<Sysname> system-view
[Sysname] snmp-agent trap queue-size 200
Related commands
snmp-agent
target-host
snmp-agent
trap
enable
snmp-agent
trap
life
snmp-agent usm-user { v1 | v2c }
Use
snmp-agent usm-user
{
v1
|
v2c
}
to create an SNMPv1 or SNMPv2c user.
Use
undo snmp-agent usm-user
{
v1
|
v2c
}
to delete an SNMPv1 or SNMPv2c user.
Syntax
snmp-agent
usm-user
{
v1
|
v2c
}
user-name
group-name
[
acl
{
ipv4-acl-number
|
name
ipv4-acl-name
} |
acl ipv6
{
ipv6-acl-number
|
name
ipv6-acl-name
}
] *
undo
snmp-agent
usm-user
{
v1
|
v2c
}
user-name
Default
No SNMPv1 or SNMPv2c users exist.
Views
System view
Predefined user roles
network-admin
Parameters
v1
: Specifies SNMPv1.
v2c
: Specifies SNMPv2c.
user-name
: Specifies an SNMP username, a case-sensitive string of 1 to 32 characters.
group-name
: Specifies an SNMPv1 or SNMPv2c group name, a case-sensitive string of 1 to 32
characters. The group can be one that has been created or not. If the group has not been created,
the user takes effect after you create the group.
acl
: Specifies a basic IPv4 ACL for the user.
ipv4-acl-number
: Specifies a basic IPv4 ACL by its number in the range of 2000 to 2999.
name ipv4-acl-name
: Specifies a basic IPv4 ACL for the user. The
ipv4-acl-name
argument
represents a basic IPv4 ACL name, a case-insensitive string of 1 to 63 characters.
acl
ipv6
: Specifies a basic IPv6 ACL for the user.