Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
snmp-agent usm-user
v3
user-name
group-name
acl
acl-number
The ACL is applied.
----End
1.11.7 Checking the Configuration
After user-based access control in SNMPv3 is configured, you can view configurations of SNMP
and ACLs.
Prerequisite
The configurations of the User-based Access Control in SNMPv3 are complete.
Procedure
l
Run the
display acl
acl-number
command to view ACL rules.
l
Run the
display snmp-agent group
[
group-name
] command to view information about
the SNMP group.
l
Run the
display snmp-agent usm-user
[
engineid
engineid
|
group
group-name
|
username
user-name
] * command to view information about users in the SNMP group.
l
Run the
display snmp-agent sys-info
version
command to View the SNMP version
information.
----End
Example
Run the
display snmp-agent group
command. If information on the user group is displayed, it
means that the configuration succeeds.
<Quidway>
display snmp-agent group
Group name: a
Security model: v3 noAuthnoPriv
Readview: ViewDefault
Writeview: <no specified>
Notifyview :<no specified>
Storage-type: nonvolatile
Run the
display snmp-agent usm-use
r command. If information on the SNMP user is displayed,
it means that the configuration succeeds.
<Quidway>
display snmp-agent usm-user
User name: b
Engine ID: 000007DB7F00000100000772 active
Acl:2000
Run the
display acl
command. If information on the rules of the configured ACL is displayed,
it means that the configuration succeeds.
<Quidway>
display acl 2000
Basic ACL 2000, 1 rule
Acl's step is 5
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management
1 SNMP Configuration
Issue 03 (2010-09-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1-35