![Huawei Quidway S9300 Configuration Manual - Network Management Download Page 119](http://html.mh-extra.com/html/huawei/quidway-s9300/quidway-s9300_configuration-manual-network-management_169487119.webp)
[Quidway]
snmp-agent trap enable
# Configure the source interface that sends alarm messages to the NMS.
[Quidway]
snmp-agent trap source LoopBack 0
# Assign an IP address to the NMS that receives the alarm messages.
[Quidway]
snmp-agent target-host trap address udp-domain 11.1.1.1 params
securityname public v2c private-netmanager
Step 4
Verify the configuration.
# Display the IP address assigned to the NMS that receives the alarm messages.
[Quidway]
display snmp-agent target-host
Target-host NO. 1
-----------------------------------------------------------
IP-address : 11.1.1.2
VPN instance : -
Security name : a
Port : 162
Type : trap
Version : v2c
Level : No authentication and privacy
NMS type :
HW NMS
-----------------------------------------------------------
----End
Configuration File
Configuration file of the switch
#
sysname Quidway
#
vlan batch 10
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface Vlanif10
ip address 11.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 10
port hybrid untagged vlan 10
#
ip route-static 11.1.1.1 255.255.255.255 11.1.1.2
#
snmp-agent
snmp-agent local-engineid 800007DB03001882817A30FC
snmp-agent sys-info version v2c
snmp-agent target-host trap address udp-domain 11.1.1.1 params securityname public
v2c private-netmanager
snmp-agent trap enable
snmp-agent trap source LoopBack0
#
return
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management
1 SNMP Configuration
Issue 03 (2010-09-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1-91