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

Configuration Guide - Device Management

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes the configurations of Device Management, including device status query, hardware management, Information Center Configuration, NTP, Synchronous Ethernet Configuration, Fault Management Configuration, Energy-Saving Management Configuration, Performance Management Configuration, Maintenance Assistant Configuration, and OPS Configuration.
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).
Example for Outputting Traps to the SNMP Agent

Example for Outputting Traps to the SNMP Agent

Networking Requirements

As shown in Figure 3-9, SwitchA connects to the NMS station. There is a reachable route between SwitchA and the NMS station. The network administrator wants to view traps generated by SwitchA on the NMS station to monitor device running and locate faults.

Figure 3-9 Networking diagram for outputting traps to the SNMP agent

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable the information center.

  2. Configure a channel and a rule for outputting traps to the SNMP agent so that the SNMP agent can receive traps generated by SwitchA.

  3. Configure SwitchA to output traps to the NMS station so that the NMS station can receive traps generated by SwitchA.

Procedure

  1. Enable the information center.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] info-center enable
    [*SwitchA] commit
    

  2. Configure a channel and a rule for outputting traps to the SNMP agent.

    # Configure a channel for outputting traps to the SNMP agent.

    [~SwitchA] info-center snmp channel channel7
    [*SwitchA] commit
    

    # Configure a rule for outputting traps to the SNMP agent. By default, the device uses the SNMP agent to output traps of all modules.

    [~SwitchA] info-center source default channel channel7 trap level warning state on 
    [*SwitchA] commit
    

  3. Configure the SNMP agent to output traps to the NMS station.

    # Enable the SNMP agent and set the SNMP version to SNMPv2c.

    [~SwitchA] snmp-agent sys-info version v2c
    [*SwitchA] commit
    

    # Configure the trap function.

    [~SwitchA] snmp-agent trap enable
    [*SwitchA] snmp-agent community write adminnms123
    [*SwitchA] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname public
    [*SwitchA] commit
    [*SwitchA] quit

  4. Verify the configuration.

    # View the output configuration of the information center.

    <SwitchA> display info-center
    Information Center:enabled
    Log host:
    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 10240, current buffer size 512,
    current messages 26, 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 22, 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 millisecond
    
    

    # View the channel used by the SNMP agent to output traps.

    <SwitchA> display info-center channel 7
    channel number:7, channel name:channel7                                                                                             
    ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel                                                  
    ffffffff default       Y      debugging     Y      warning       N      debugging 

    # View traps output to the NMS station by the SNMP agent.

    <SwitchA> display snmp-agent target-host
    Target-host NO. 1                                                               
    ---------------------------------------------------------------------------     
      Host-name                        : -                                          
      IP-address                       : 10.1.1.1                                   
      Source interface                 : -                                          
      VPN instance                     : -                                          
      Security name                    : %^%#ZjZyQZ%;rF.C`1Sxt,I1#-'1Sp7x|Fn*bsEUCXjO%^%#           
      Port                             : 162                                        
      Type                             : trap                                       
      Version                          : v1                                         
      Level                            : No authentication and privacy              
      NMS type                         : NMS                                        
      With ext-vb                      : No                                         
      Notification filter profile name : -                                          
    --------------------------------------------------------------------------- 
    

Configuration Files

  • Configuration file of SwitchA
    #
    sysname SwitchA
    #
    snmp-agent
    snmp-agent local-engineid 800007DB030A0B0C000003
    snmp-agent community write cipher %^%#3[[9Gf[O2Ybj\Q1eo4>(P81dF221MAy_~=#sra~~wm|gWkzr(SPxlXEZ%(w)|Ib/@jBvdUx!l=G-K'X9%^%#
    #
    snmp-agent sys-info version v2c
    snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname cipher %^%#ZjZyQZ%;rF.C`1Sxt,I1#-'1Sp7x|Fn*bsEUCXjO%^%#
    #
    snmp-agent trap enable
    #
    info-center source default channel 7 trap level warning
    info-center snmp channel 7
    #
    return
    
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166632

Views: 81218

Downloads: 312

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