2-20Configuring Trap DeliveryTraps can be sent to the network management server when test is completed, test fails or probe fails.Configuration prerequisitesBefore configuring trap delivery, configure the destination address of the trap message with thesnmp-agent target-host command, create an NQA test group, and configure related parameters. Forthe introduction to the snmp-agent target-host command, refer to SNMP Configuration Commandsin the Network Management and Monitoring Command Reference.Configuring trap deliveryFollow these steps to configure trap delivery:To do… Use the command… RemarksEnter system view system-view —Enter NQA test group view nqa entry admin-name operation-tag —Enter test type view of the testgrouptype { dhcp | dlsw | dns | ftp | http | icmp-echo| snmp | tcp | udp-echo | udp-jitter } —Configure to send traps to networkmanagement server underspecified conditionsreaction trap { probe-failureconsecutive-probe-failures | test-complete |test-failure cumulate-probe-failures }OptionalNo traps are sent tothe networkmanagement serverby default.Configuring the NQA Statistics FunctionNQA puts the NQA tests completed in a specified interval into one group, and calculates the statisticsof the test results of the group. These statistics form a statistics group. To view information of thestatistics group, use the display nqa statistics command. To set the interval for collecting statistics,use the statistics interval command.When the number of statistics groups kept reaches the upper limit, if a new statistics group isgenerated, the statistics group that is kept for the longest time is deleted. To set the maximum numberof statistics groups that can be kept, use the statistics max-group command.A statistics group is formed after the last test is completed within the specified interval. A statisticsgroup has the aging mechanism. A statistics group will be deleted after it is kept for a period of time. Toset the hold time of a statistics group, use the statistics hold-time command.Follow these steps to configure the NQA statistics function:To do… Use the command… RemarksEnter system view system-view —Enter NQA test group view nqa entry admin-nameoperation-tag —