Configuring an SNMP Test

An SNMP test measures the communication speed between a host and an SNMP agent using UDP packets.

Procedure

  1. Run system-view
  2. Create an NQA test instance and set the test instance type to SNMP.

    Before configuring an NQA SNMP test instance, configure SNMP. The NQA SNMP test instance supports SNMPv1, SNMPv2c, and SNMPv3.

    1. Run nqa test-instance admin-name test-name
    2. Run test-type snmp

      The test instance type is set to SNMP.

    3. (Optional) Run description description
  3. Run destination-address ipv4 destAddress

    The destination address (that is, the NQA server address) of the client is specified.

  4. (Optional) Run community read cipher community-name

    A community name is specified.

    If a target SNMP agent runs SNMPv1 or SNMPv2c, the read community name specified in the community read cipher command must be the same as the read community name configured on the SNMP agent. Otherwise, the SNMP test will fail.

  5. (Optional) Set parameters for the test instance and simulate packets.
    1. Run the probe-count number command to configure the number of probes in an NQA test instance.
    2. Run the interval seconds interval command to configure the interval for sending NQA test packets.
    3. Run the sendpacket passroute command to configure the NQA test instance to send packets without searching the routing table.
    4. Run source-address ipv4 srcAddress

      The source IP address of NQA test packets is set.

    5. Run source-port portValue

      The source port number is set for the NQA test instance.

    6. Run the tos tos-value command to configure the ToS value in NQA test packets.
    7. Run the ttl ttlValue command to configure the TTL value of NQA test packets.
  6. (Optional) Configure probe failure conditions.
    1. Run the timeout time command to configure the timeout period of response packets.
    2. Run the fail-percent percent command to configure the failure percentage for the NQA test instance.
  7. (Optional) Configure the NQA statistics function. Run the records { history number | result number } command to configure the maximum number of history records and the maximum number of result records for the NQA test instance.
  8. (Optional) Enable the device to send traps to the NMS.
    1. Run the probe-failtimes failTimes command to enable the device to send traps to the NMS after the number of consecutive probe failures reaches the specified threshold.
    2. Run the test-failtimes failTimes command to configure the Trap message to be sent to the NMS when the number of continuous probe failures reaches the specified value in NQA tests.
    3. Run the threshold rtd thresholdRtd command to configure an RTD threshold.
    4. Run the send-trap { all | [ rtd | testfailure | probefailure | testcomplete ]* } command to configure the conditions for sending trap messages.
  9. (Optional) Run vpn-instance vpn-instance-name

    The VPN instance name is configured for the test instance.

  10. Schedule the test instance.
    1. (Optional) Run frequency frequencyValue
    2. Run the start command to start an NQA test.

      An NQA test instance can be started immediately, at a specified time, or after a specified delay.

      • Run the start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start an NQA test instance immediately.

      • Run the start at [ yyyy/mm/dd ] hh:mm:ss [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start an NQA test instance at a specified time.

      • Run the start delay { seconds second | hh:mm:ss } [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start an NQA test instance after a specified delay.

      • Run the start daily hh:mm:ss to hh:mm:ss [ begin yyyy/mm/dd ] [ end yyyy/mm/dd ] command to start the test instance at the specified time every day.

  11. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >