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.
l
cipher
is used to display the community name in cipher text. It can be configured in the
command to improve security. If the parameter is configured, the administrator needs to
remember the community name. If the community name is forgotten, it cannot be obtained
by querying the device.
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),
mib-view
view-name
does not need to be
configured in the command.
l
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.
l
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.
----End
Follow-up Procedure
After the access rights are configured, especially after the IP address of the NM station is
specified, if the IP address changes (for example, the NM station changes its location, or IP
addresses are reallocated due to network adjustment), you need to change the IP address of the
NM station in the ACL. Otherwise, the NM station cannot access the device.
1.2.4 (Optional) Enabling the SNMP Extended Error Code Function
This section describes how to enable the extended SNMP error code function when both the NM
station and managed device are Huawei products. After this function is enabled, more types of
error codes are provided to help you locate and rectify faults more quickly and accurately.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
snmp-agent extend error-code enable
The SNMP extended error code function is enabled.
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.
12