< Home

frequency

Function

The frequency command sets the interval at which an NQA test instance is automatically performed.

The undo frequency command deletes the configured interval at which an NQA test instance is automatically performed.

By default, the interval at which an NQA test instance is automatically performed is not configured. That is, the test is performed once.

Format

frequency interval

undo frequency

Parameters

Parameter Description Value

interval

Specifies the interval at which an NQA test instance is automatically performed.

The value is an integer that ranges from 1 to 604800, in seconds.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the start command to set the start time and end time of an NQA test. If you need to perform period test from the start time to the end time in a test instance, run the frequency command to set the interval at which an NQA test instance is automatically performed. After that, the NQA test is automatically performed once at each configured interval. Configuring the interval of periodic NQA test avoids time-consuming manual operations.

Prerequisites

The type of a test instance has been specified using the test-type command.

Configuration Impact

If the master/slave switchover is performed on the NQA client before the test instance (group) is complete, the following situations may occur:
  • If the interval for automatically performing the test is not set, the test stops after the master/slave switchover.
  • If the interval for automatically performing the test instance is set, the test is performed from the next period after the master/slave switchover.

Precautions

  • The frequency of a running test instance cannot be changed.
  • In a trace, LSP trace, or PWE3 trace test, the configured frequency must be greater than or equal to 60s.
  • The configured frequency cannot be less than the timeout value, otherwise, the test instance will start failed. If the configured frequency is smaller than or equal to (probe-count - 1) x interval + timeout + 1, the test result may be no result. For the test instance supporting the jitter-packetnum parameter, the number of sent packets is probe-count x jitter-packetnum packets.
  • In an FTP test instance, the configured frequency must be 2s greater than the timeout value; otherwise, the FTP test instance may fail.

Example

# Set the interval at which test instance user test is automatically performed to 20 seconds.

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