Huawei AR150/200 Series Configuration Manual page 43

Enterprise routers
Table of Contents

Advertisement

Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
Step 3 Configure the router to run SNMPv1.
[Huawei] snmp-agent sys-info version v1
# Check the configured SNMP version.
[Huawei] display snmp-agent sys-info version
Step 4 Configure the NM stations' access rights.
# Configure an ACL to allow NMS2 to manage and disallow NMS1 from managing the
router.
[Huawei] acl 2001
[Huawei-acl-basic-2001] rule 5 permit source 1.1.1.2 0.0.0.0
[Huawei-acl-basic-2001] rule 6 deny source 1.1.1.1 0.0.0.0
[Huawei-acl-basic-2001] quit
# Configure a MIB view and allow NMS2 to manage DNS MIB object on the router.
[Huawei] snmp-agent mib-view dnsmib include 1.3.6.1.4.1.2011.5.25.194
# Configure a community name to allow NMS2 to manage the objects in the MIB view.
[Huawei] snmp-agent community write adminnms2 mib-view dnsmib acl 2001
Step 5 Configure the trap function.
[Huawei] snmp-agent target-host trap-paramsname trapnms2 v1 securityname adminnms2
[Huawei] snmp-agent target-host trap-hostname nms2 address 1.1.1.2 trap-paramsname
trapnms2
[Huawei] snmp-agent trap queue-size 200
[Huawei] snmp-agent trap life 60
[Huawei] snmp-agent trap enable
Step 6 Configure the equipment administrator's contact information.
[Huawei] snmp-agent sys-info contact call Operator at 010-12345678
Step 7 Configure NMS2.
For details on how to configure NMS2, see the relevant NMS configuration guide.
Step 8 Verify the configuration.
After the configurations are complete, run the following commands to verify that the
configurations have taken effect.
# Check information about the SNMP community name.
<Huawei> display snmp-agent community write
# Check the configured ACL.
<Huawei> display acl 2001
Basic ACL 2001, 2 rules
Acl's step is 5
rule 5 permit source 1.1.1.2 0
rule 6 deny source 1.1.1.1 0
# Check the MIB view.
<Huawei> display snmp-agent mib-view dnsmib
Issue 02 (2012-03-30)
SNMP version running in the system:
SNMPv1
Community name:adminnms2
Storage type: nonVolatile
View name: dnsmib
Acl:2001
Total number is 1
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1 SNMP Configuration
32

Advertisement

Table of Contents
loading

Table of Contents