duration (Generalflow test instance)

Function

The duration command sets the duration of an generalflow test.

The undo duration command restores the default generalflow test duration.

By default, the duration of a generalflow test is 60s.

Format

duration duration

undo duration

Parameters

Parameter Description Value
duration

Specifies the duration of an NQA test.

In a generalflow test instance, the value is an integer ranging from 10 to 172800, in seconds. It indicates the testing time for each packet.

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

For generalflow test instances, the duration command sets the duration of an NQA test instance. After the duration time elapses, the NQA test instance automatically stops running.

In a generalflow test, the actual period during which packets are sent is determined by the interval command configuration.

Example

# Set the duration of a generalflow test instance named user test to 50s.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type generalflow
[*HUAWEI-nqa-user-test] duration 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >