Run the
display current-configuration
|
include
trap
command. You can view trap
configuration.
<HUAWEI>
display current-configuration | include trap
snmp-agent trap source Ethernet 3/0/7
snmp-agent target-host host-name targetHost_1_25846 trap ipv6 address udp-domain
1:1::1:1 udp-port 111 params securityname htipl
snmp-agent target-host host-name targetHost_2_51321 trap address udp-domain 1.1.
1.1 params securityname htipl
snmp-agent trap enable
Run the
display snmp-agent target-host
command. You can view information about the target
host.
<HUAWEI>
display snmp-agent target-host
Target-host NO. 1
-----------------------------------------------------------
Host-name : targetHost_1_55062
IP-address : 10.18.27.183
VPN instance : -
Security name : public
Port : 162
Type : inform
Version : v3
Level : No authentication and privacy
NMS type : NMS
-----------------------------------------------------------
Target-host NO. 2
-----------------------------------------------------------
Host-name : targetHost_2_25846
IP-address : 10.18.27.184
VPN instance : -
Security name : private
Port : 162
Type : trap
Version : v3
Level : No authentication and privacy
NMS type : HW NMS
-----------------------------------------------------------
Run the
display snmp-agent inform
command. You can view the configuration of inform
notifications.
<HUAWEI>
display snmp-agent inform
Global config: resend-times 3, timeout 15s, pending 39
Global status: current notification count 0
Target-host ID: Host name/VPN instance/IP-Address/Security name
targetHost_1_36305/-/1.2.1.2/public:
Config: resend-times 3, timeout 15s
Status: retries 0, pending 0, sent 0, dropped 0, failed 0, confirmed 0
Run the
display current-configuration
command to view VACM groups.
<HUAWEI>
display snmp-agent vacmgroup
--------------------------------------------------
Security name : public
Group name : public
Security model : SNMPv1
Security name : public
Group name : public
Security model : SNMPv2c
Security name : 456
Group name : 123
Security model : USM
Security name : abc
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.
85