Huawei AR150/200 Series Configuration Manual page 50

Enterprise routers
Table of Contents

Advertisement

Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
[Huawei] snmp-agent sys-info version v3
# 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.
[Huawei] snmp-agent mib-view dnsmib include 1.3.6.1.4.1.2011.5.25.194
# Configure an SNMPv3 user group and add a user to the group, and configure authentication
for the NMS administrator and encryption for the data transmitted between the router and NMS2.
[Huawei] snmp-agent usm-user v3 testuser testgroup authentication-mode md5 87654321
privacy-mode des56 87654321
[Huawei] snmp-agent group v3 testgroup privacy write-view dnsmib notify-view dnsmib
acl 2001
Step 5 Configure the trap function.
[Huawei] snmp-agent target-host trap-paramsname trapnms2 v3 securityname testuser
privacy
[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 the 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 user group.
<Huawei> display snmp-agent group testgroup
# Check information about the user.
<Huawei> display snmp-agent usm-user
Issue 02 (2012-03-30)
SNMP version running in the system:
SNMPv3
Group name: testgroup
Security model: v3 noAuthnoPriv
Readview: ViewDefault
Writeview: dnsmib
Notifyview: dnsmib
Storage type: nonVolatile
Acl:2001
User name: testuser
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1 SNMP Configuration
39

Advertisement

Table of Contents
loading

Table of Contents