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
Community name:adminnms2
Storage type: nonVolatile
View name: dnsmib
Acl:2001
Total number is 1
# 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
View name:dnsmib
MIB Subtree:hwDnsMib
Subtree mask:
Storage type: nonVolatile
View Type:included
View status:active
# Check the target host.
<Huawei>
display snmp-agent target-host
Traphost list:
Target host name: nms2
Traphost address: 1.1.1.2
Traphost portnumber: 162
Target host parameter: trapnms2
Total number is 1
Parameter list trap target host:
Parameter name of the target host: trapnms2
Message mode of the target host: SNMPV2C
Trap version of the target host: v2c
Security name of the target host:
adminnms2
Total number is 1
# When an alarm is generated, run the
display trapbuffer
command to view the details.
<Huawei>
display trapbuffer
Trapping buffer configuration and contents : enabled
Allowed max buffer size : 1024
Actual buffer size : 256
Channel number : 3 , Channel name : trapbuffer
Dropped messages : 0
Overwritten messages : 0
Current messages : 98
#Oct 11 2010 18:57:59+00:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011
.5.25.191.3.1 configurations have been changed. The current change number is 95,
the change loop count is 0, and the maximum number of records is 4095.
# Check the equipment administrator's contact information.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
1 SNMP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
36