# Check information about the SNMP community name.
<HUAWEI>
display snmp-agent community
Community name:adminnms2
Group name:adminnms2
Acl:2001
Storage-type: nonVolatile
# 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.0.0.0
rule 6 deny source 1.1.1.1 0.0.0.0
# Check the MIB view.
<HUAWEI>
display snmp-agent mib-view viewname allexthgmp
View name:allexthgmp
MIB Subtree:huaweiUtility.7
Subtree mask:
Storage-type: nonVolatile
View Type:excluded
View status:active
# Check the target host.
<HUAWEI>
display snmp-agent target-host
Target-host NO. 1
-----------------------------------------------------------
Host-name : targetHost_1_25846
IP-address : 1.1.1.2
VPN instance : -
Security name : 1.1.2.1
Port : 162
Type : trap
Version : v1
Level : No authentication and privacy
NMS type : NMS
-----------------------------------------------------------
# Check the contact information of the equipment administrator.
<HUAWEI>
display snmp-agent sys-info contact
The contact person for this managed node:
call Operator at 010-12345678
----End
Configuration Files
Configuration file of the router
#
acl number 2001
rule 5 permit source 1.1.1.2 0.0.0.0
rule 6 deny source 1.1.1.1 0.0.0.0
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 1.1.2.1 255.255.255.0
#
ospf 1
area 0.0.0.0
network 1.1.2.0 0.0.0.255
#
snmp-agent
snmp-agent local-engineid 800007DB03360102101100
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.
92