217
[Sysname] acl basic name testacl
[Sysname-acl-ipv4-basic-testacl] rule permit source 1.1.1.2 0.0.0.0
[Sysname-acl-ipv4-basic-testacl] rule deny source any
[Sysname-acl-ipv4-basic-testacl] quit
[Sysname] snmp-agent sys-info version v2c
[Sysname] snmp-agent group v2c readCom
[Sysname] snmp-agent usm-user v2c userv2c readCom acl name testacl
Related commands
display
snmp-agent
community
snmp-agent
community
snmp-agent
group
snmp-agent usm-user v3
Use
snmp-agent usm-user v3
to create an SNMPv3 user.
Use
undo snmp-agent usm-user v3
to delete an SNMPv3 user.
Syntax
In non-FIPS mode (in VACM mode):
snmp-agent
usm-user
v3
user-name
group-name
[
remote
{
ipv4-address
|
ipv6
ipv6-address
}
[
vpn-instance
vpn-instance-name
] ] [ {
cipher
|
simple
}
authentication-mode
{
md5
|
sha
}
auth-password
[
privacy-mode
{
aes128
|
3des
|
des56
}
priv-password
] ] [
acl
{
ipv4-acl-number
|
name ipv4-acl-name
} |
acl ipv6
{
ipv6-acl-number
|
name
ipv6-acl-name
}
] *
undo
snmp-agent
usm-user
v3
user-name
{
local
|
engineid
engineid-string
|
remote
{
ipv4-address
|
ipv6
ipv6-address
} [
vpn-instance
vpn-instance-name
] }
In non-FIPS mode (in RBAC mode):
snmp-agent
usm-user
v3
user-name
user-role role-name
[
remote
{
ipv4-address
|
ipv6
ipv6-address
} [
vpn-instance
vpn-instance-name
] ] [ {
cipher
|
simple
}
authentication-mode
{
md5
|
sha
}
auth-password
[
privacy-mode
{
aes128
|
3des
| des56
}
priv-password
] ] [
acl
{
ipv4-acl-number
|
name ipv4-acl-name
} |
acl ipv6
{
ipv6-acl-number
|
name ipv6-acl-name
}
] *
undo
snmp-agent
usm-user
v3
user-name
{
local
|
engineid
engineid-string
|
remote
{
ipv4-address
|
ipv6
ipv6-address
} [
vpn-instance
vpn-instance-name
] }
In FIPS mode (in VACM mode):
snmp-agent
usm-user
v3
user-name
group-name
[
remote
{
ipv4-address
|
ipv6
ipv6-address
}
[
vpn-instance
vpn-instance-name
] ] {
cipher
|
simple
}
authentication-mode
sha auth-password
[
privacy-mode
aes128
priv-password
] [
acl
{
ipv4-acl-number
|
name ipv4-acl-name
} |
acl ipv6
{
ipv6-acl-number
|
name ipv6-acl-name
} ] *
undo
snmp-agent
usm-user
v3
user-name
{
local
|
engineid
engineid-string
|
remote
{
ipv4-address
|
ipv6
ipv6-address
} [
vpn-instance
vpn-instance-name
] }