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

S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
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).
Configuring the SNMP Trap Function

Configuring the SNMP Trap Function

Configuration Logic

After you enable the trap function of a specified module and specify the SNMP trap host (that is, the NMS receiving trap messages), the device sends an SNMP trap message to the NMS when the module generates a trap.

Configuration Example

  1. Enable the trap function for the ARP module.

    <HUAWEI> system-view
    [HUAWEI] snmp-agent trap enable feature-name arp
  2. Run the snmp-agent trap source command to configure the source address for sending SNMP trap messages.

    [HUAWEI] interface loopback 0
    [HUAWEI-LoopBack0] ip address 10.1.1.1 32
    [HUAWEI-LoopBack0] quit
    [HUAWEI] snmp-agent trap source loopback 0   //Configure the IP address of loopback 0 as the source IP address of sending SNMP trap messages.
  3. Run the snmp-agent target-host trap command to specify the NMS that receives SNMP trap messages.

    [HUAWEI] snmp-agent target-host trap address udp-domain 10.1.2.10 udp-port 50000 params securityname user001 v3 privacy
Translation
Download
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 85025

Downloads: 12115

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