Optional) Configuring The Trap Function - Huawei AR150/200 Series Configuration Manual

Enterprise routers
Table of Contents

Advertisement

Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
snmp-agent extend error-code enable
The SNMP extended error code function is enabled.
By default, SNMP standard error codes are used. After the extended error code function is
enabled, extended error codes can be sent to the NM station.
----End

1.3.5 (Optional) Configuring the Trap Function

This section describes how to specify the alarms to be sent to the NM station, which will help
you to locate important problems. After relevant parameters are set, the security of alarm sending
can be improved.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
snmp-agent trap enable
Alarm sending is enabled.
Step 3 Run:
snmp-agent trap source interface-type interface-number
The source interface for trap messages is specified.
After the source interface is specified, its IP address becomes the source IP address of trap
messages. Configuring the IP address of the local loopback interface as the source interface is
recommended, which can ensure device security.
The source interface specified on the router for trap messages must be consistent with that
specified on the NM station; otherwise, the NM station will not accept the trap messages sent
from the router.
Step 4 Run:
snmp-agent trap queue-size size
The length of the queue storing trap messages to be sent to the destination host is set.
The queue length depends on the number of generated trap messages. If the router frequently
generates trap messages, a longer queue length can be set to prevent trap messages from being
lost.
Step 5 Run:
snmp-agent trap life seconds
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1 SNMP Configuration
19

Advertisement

Table of Contents
loading

Table of Contents