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.
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,
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
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.
3.3.3 (Optional) Configuring the Trap Function
This section describes how to specify the alarms to be sent to the NM station, which help you
to locate important problems. After relevant parameters are set, the security of alarm sending
can be improved.
Procedure
Step 1
Run:
system-view
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.
69