![Huawei NetEngine5000E Скачать руководство пользователя страница 68](http://html.mh-extra.com/html/huawei/netengine5000e/netengine5000e_configuration-manual_169429068.webp)
Step 2
Run:
acl
acl-number
A basic ACL is created to filter the NM station users to manage the device.
Step 3
Run:
rule
[
rule-id
] {
deny
|
permit
}
source
{
source-ip-address
source-wildcard
|
any
}
A rule is added to the ACL.
Step 4
Run:
commit
The configuration is committed.
Step 5
Run:
quit
Return to the system view.
Step 6
Run:
snmp-agent mib-view
{
excluded
|
included
}
view-name
oid-tree
A MIB view is created, and manageable MIB objects are specified.
By default, an NM station has rights to access the objects in the Viewdefault view (1.3.6.1).
l
excluded
: If a few MIB objects on the device or some objects in the current MIB view do
not or no longer need to be managed by the NM station,
excluded
needs to be specified in
the command to exclude these MIB objects.
l
included
: If a few MIB objects on the device or some objects in the current MIB view need
to be managed by the NM station,
included
needs to be specified in the command to include
these MIB objects.
Step 7
Run:
snmp-agent community
{
read
|
write
} {
community-name
|
cipher
community-name1
}
[
acl
acl-number
|
mib-view
view-name
]
*
The NM station's access rights are specified.
l
read
: NM station administrator configures the
read
parameter to provide read access to the
low level administrator for a specified view.
l
write
: NM station administrator configures the
write
parameter to provide read and write
access to the low level administrator for a specified view.
l
mib-view
: If some of the NM stations that use the community name need to have rights to
access the objects in the Viewdefault view (1.3.6.1),
mib-view
view-name
does not need to
be configured in the command.
l
acl
: If all the NM stations that use the community name need to manage specified objects on
the device,
acl
acl-number
does not need to be configured in the command.
If some of the NM stations that use the community name need to manage specified objects
on the device, both
mib-view
and
acl
need to be configured in the command.
Step 8
Run:
commit
The configuration is committed.
----End
HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
3 SNMP Configuration
Issue 01 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
60