< Home

test-failtimes

Function

The test-failtimes command sets the number of consecutive test failures in an NQA test.

The undo test-failtimes command restores the default setting.

By default, a trap message is sent for each test failure.

Format

test-failtimes times

undo test-failtimes

Parameters

Parameter Description Value

times

Specifies the number of consecutive test failures in an NQA test.

The value is an integer that ranges from 1 to 15. The default value is 1.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An NQA test consists of multiple probe tests. By default, if one or more probe tests are successful in an NQA test, the test is considered successful. If all probe tests fail, the test is considered failed. If the number of consecutive test failures reaches the specified value, the system will send a trap to the specified NMS.

Prerequisites

The type of a test instance has been specified using the test-type command. Path jitter test is not supported.

Follow-up Procedure

Run the send-trap testfailure command to send a trap to the NMS after an NQA test fails. Otherwise, the trap cannot be sent to the NMS after an NQA test fails.

Precautions

This configuration of a running test instance cannot be changed.

Example

# Set the number of consecutive test failures to 10.

<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type jitter
[HUAWEI-nqa-user-test] test-failtimes 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >