[Huawei] info-center source ip channel channel7 trap level informational state on
NOTE
By default, alarms are output through the SNMP agent and information about all modules is displayed.
Step 3 Enable outputting alarms to the SNMP agent.
# Enable outputting alarms to the SNMP agent.
[Huawei] info-center snmp channel channel7
Step 4 Enable transmitting alarms to the NM Station through SNMP agent.
# Start the SNMP agent and set the SNMP version to SNMPv2c.
[Huawei] snmp-agent sys-info version v2c
# Configure the alarm function.
[Huawei] snmp-agent trap enable
All switches of SNMP trap/notification will be open. Continue? [Y/N]:y
[Huawei] snmp-agent target-host trap-hostname nms address 10.1.1.1 trap-paramsname
trapnms
[Huawei] snmp-agent target-host trap-paramsname trapnms v2c securityname public
Step 5 Verify the configuration.
# View the channel used to output alarms to the SNMP agent.
[Huawei] display info-center
Information Center: enabled
Log host:
10.1.1.6, channel number: 2, channel name: loghost
language: english, host facility: local7
binary loghost, port number: 514
Console:
channel number: 0, channel name: console
Monitor:
channel number: 1, channel name: monitor
SNMP Agent:
channel number: 7, channel name: channel7
Log buffer:
enabled
max buffer size: 1024, current buffer size: 512
current messages: 503, channel number: 4, channel name: logbuffer
dropped messages: 0, overwritten messages: 0
Trap buffer:
enabled
max buffer size: 1024, current buffer size: 256
current messages: 9, channel number: 3, channel name: trapbuffer
dropped messages: 0, overwritten messages: 0
Logfile:
channel number: 9, channel name: channel9, language: English
Information timestamp setting:
log - date, trap - date, debug - date
Sent messages = 15299, Received messages = 15299
# View the alarms output through the channel selected by SNMP agent.
[Huawei] display channel 7
channel number: 7, channel name: channel7
MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y debugging Y debugging N debugging
c16a0000 IP Y debugging Y informational N debugging
# View the alarms output to the NM Station through SNMP agent.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Device Management 2 Information Center Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
44