No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
(Optional) Configuring the Trap Function

(Optional) Configuring the Trap Function

Context

Users can enable the trap function for a specified module. The interface status trap is generated when the interface status changes. You need to enable the trap function for the ifnet module globally and enable the trap function on the specified interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Enable the trap function.

    Enable the trap function for a module.

    • To enable the trap function of all modules, run the snmp-agent trap enable command.

    • To enable the trap function of a specified module, run the snmp-agent trap enable feature-name command.

    • To restore the trap functions of all modules to the default status, run the undo snmp-agent trap enable or undo snmp-agent trap disable command.

    Enable the trap function for an interface.

    Run the snmp-agent trap enable feature-name ifnet trap-name { linkdown | linkup } command to enable interface status trap globally.

    By default, the trap function is disabled on all interfaces. When the linkdown and linkup parameters are configured for ifnet module, the device sends a trap to the NMS upon an interface status change. When an interface frequently sends traps to the NMS because of frequent status changes, you can disable the interface status trap function on the interface to reduce the NMS loads. The procedure is as follows:

    1. Run the interface interface-type interface-number command to enter the interface view.

    2. Run the undo enable snmp trap updown command to disable the interface status trap function.

    3. Run the quit command to return to the system view.

  3. Run snmp-agent notify-filter-profile { exclude | include } profile-name oid-tree

    A trap filtering rule is created or updated.

    By default, traps are not filtered.

  4. Run snmp-agent trap source interface-type interface-number

    The source interface for sending traps is specified.

    By default, source interface of traps is not set. After the source interface is specified, the IP address of the source interface is used as the source IP address for sending traps. This helps the NMS identify the trap source. The source interface that sends traps must have an IP address; otherwise, the commands will fail to take effect. To ensure device security, it is recommended that you set the source IP address to the local loopback address.

    The source interface set on the router must be consistent with that specified on the NMS. Otherwise, the NMS does not accept the traps sent from the router.

  5. Run snmp-agent trap queue-size size

    The queue length of traps sent to the target host is set.

    The default queue length of traps sent to the target host is 100.

    The queue length depends on the number of generated traps. If the router frequently sends traps to the NMS, set a longer queue length to prevent traps from being lost.

  6. Run snmp-agent trap life seconds

    The lifetime of traps is set.

    The default lifetime of traps is 120 seconds.

    The lifetime of each trap depends on the number of generated traps. If the router frequently sends traps to the NMS, set a longer lifetime to prevent traps from being lost.

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 34094

Downloads: 195

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next