l
If all the NM stations that use the community name need to have rights to access the objects
in the Viewdefault view (1.3.6.1), skip the following steps.
l
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), skip Step
.
l
If all the NM stations need to manage specified objects on the device, skip Steps
, and
.
l
If some of the NM stations that use the community name need to manage specified objects
on the device, perform all the following steps.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
acl
acl-number
A basic ACL is created to filter the NM station users that can 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:
quit
Return to the system view.
Step 5
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
If a few MIB objects on a 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 related command
to exclude these MIB objects.
l
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 related command to include
these MIB objects.
Step 6
Run:
snmp-agent community
{
read
|
write
} {
community-name
|
cipher
community-name
} [
mib-view
view-name
|
acl
acl-number
]
*
The NM station's access rights are specified.
l
read
needs to be configured in the command if the NM station administrator needs the read
permission in the specified view in some cases. For example, a low-level administrator needs
to read certain data.
write
needs to be configured in the command if the NM station
administrator needs the read and write permissions in the specified view in some cases. For
example, a high-level administrator needs to read and write certain data.
Quidway S2700 Series Ethernet Switches
Configuration Guide - Network Management
1 SNMP Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
20