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).
Example for Configuring a Threshold for the NQA Alarm

Example for Configuring a Threshold for the NQA Alarm

Networking Requirements

In Figure 7-30, RouterA functions as the client to perform the jitter test and monitor the packet loss ratio of the test result. If the ratio exceeds the threshold, an alarm is sent to the NMS.

Figure 7-30  Networking diagram for configuring a threshold for the NQA alarm

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure RouterA as a client for the jitter test.

  2. Configure the event corresponding to the alarm threshold on RouterA.

  3. Configure the alarm threshold on Router and configure alarms to be sent to the NMS.

Procedure

  1. Configure an IP address for each interface and ensure reachable routes between Routers, as shown Figure 7-30.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ip address 10.1.1.1 24
    [RouterA-GigabitEthernet1/0/0] quit
    [RouterA] interface gigabitethernet 2/0/0
    [RouterA-GigabitEthernet2/0/0] ip address 10.1.2.1 24
    [RouterA-GigabitEthernet2/0/0] quit
    NOTE:

    For configurations of RouterB, see the configuration file.

  2. Configure an NQA server on RouterB.

    # Configure the monitoring IP address and UDP port number on the NQA server.

    <RouterB> system-view
    [RouterB] nqa-server udpecho 10.1.1.20 9000

  3. Configure the event corresponding to the alarm threshold on RouterA.

    [RouterA] nqa event 10 log-trap

  4. Configure the alarm threshold on RouterA.

    [RouterA] nqa test-instance admin jitter
    [RouterA-nqa-admin-jitter] test-type jitter
    [RouterA-nqa-admin-jitter] destination-address ipv4 10.1.1.20
    [RouterA-nqa-admin-jitter] destination-port 9000 
    [RouterA-nqa-admin-jitter] frequency 5
    [RouterA-nqa-admin-jitter] alarm 10 lost-packet-ratio absolute rising-threshold 100 10 falling-threshold 10 10
    [RouterA-nqa-admin-jitter] quit

  5. Configure alarms to be sent to the NS station on RouterA.

    # Configure basic SNMP functions.

    [RouterA] snmp community write Huawei@123
    [RouterA] snmp sys-info version v2c

    # Configure alarms to be sent to the NM station through the SNMP agent.

    [RouterA] snmp-agent trap enable
    [RouterA] snmp-agent target-host trap-paramsname trapnms2 v2c securityname Huawei@123
    [RouterA] snmp-agent target-host trap-hostname nsm2 address 10.1.2.8 trap-paramsname trapnms2

  6. Start the test instance.

    [RouterA] nqa test-instance admin jitter
    [RouterA-admin-jitter] start now

  7. Verify the configuration.

    <RouterA> display nqa-event
    NQA event information:
    ------------------------------------------------------
    NQA Event Max: 100                  NQA Event Number: 1
    ------------------------------------------------------ 
    <RouterA> display nqa alarm
    NQA Alarm Information:
    ---------------------------------------------------------------------------
    Admin-Name      Operation-Tag   Alarm-Entry     AlarmType       Event-Entry
    ---------------------------------------------------------------------------
    admin           jitter          10              Rising          10
    admin           jitter          10              Falling         10
    
    <RouterA> display nqa-agent
     NQA Tests Max: 256          NQA Tests  Number:   1
     NQA Flow  Max: 256          NQA Flow Remained: 255
    
    nqa test-instance admin jitter
     test-type jitter
     destination-address ipv4 10.1.1.20
     destination-port 9000
     frequency 5
     alarm 10 lost-packet-ratio absolute rising-threshold 100 10 falling-threshold 10 10
    

Configuration Files

  • RouterA configuration file

    #
     sysname RouterA
    #
    interface GigabitEthernet1/0/0
     ip address 10.1.1.1 255.255.255.0
    #
    interface GigabitEthernet2/0/0
     ip address 10.1.2.1 255.255.255.0
    #
     snmp-agent local-engineid 800007DB03548998F3A458
     snmp-agent community write %@%@$X!5#d+t+OJOXL1[{O2!&Fe&0UZv'@a;R/`Y+kK$4BUGFe)&2YLuM/kMF!HPG5Mzz3DXe2&F%@%@
     snmp-agent sys-info version v2c
     snmp-agent target-host trap-hostname nsm2 address 10.1.2.8 udp-port 162 trap-paramsname trapnms2
     snmp-agent target-host trap-paramsname trapnms2 v2c securityname %@%@Cgx728b4X6_83/;th11:)G&Q%@%@
     snmp-agent trap enable
    #
    nqa event 10 log-trap
    #
    nqa test-instance admin jitter
     test-type jitter
     destination-address ipv4 10.1.1.20
     destination-port 9000
     frequency 5
     alarm 10 lost-packet-ratio absolute rising-threshold 100 10 falling-threshold 10 10
    #
    return
    
  • RouterB configuration file

    #
     sysname RouterB
    #
    interface GigabitEthernet1/0/0
     ip address 10.1.1.20 255.255.255.0
    #
    nqa-server udpecho 10.1.1.20 9000
    #
    return
    
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 30205

Downloads: 177

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