< Home

start

Function

The start command sets the start mode and end mode for an NQA test instance.

The undo start command stops a running NQA test instance or restores the configuration of start mode and end mode of an unperformed NQA test instance.

By default, the test instance stops automatically after test packets are sent.

Format

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 } } ]

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 } } ]

start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ]

undo start

Parameters

Parameter Description Value
start at [ yyyy/mm/dd ] hh:mm:ss Performs a test instance at a specified time.
NOTE:

The configured time must be later than the time on the device.

-
start delay { seconds second | hh:mm:ss } Specifies a delay in performing a test instance.
  • seconds second: specifies a delay in performing a test instance. The value is an integer ranging from 1 to 86399, in seconds.

  • hh:mm:ss: specifies a delay in performing a test instance. If hh:mm:ss is specified, the system automatically sets the moment in seconds. For example, 1:0:0 indicates that a test instance starts in one hour (3600 seconds).

start now Performs a test instance immediately. -
end at [ yyyy/mm/dd ] hh:mm:ss Stops a test instance at a specified time. -
end delay { seconds second | hh:mm:ss } Specifies a delay in stopping a test instance. This delay is set based on the current system time. For example: If start at 9:00:00 end delay seconds 60 is run at 8:59:40, then, a test instance starts at 9:00:00 and ends at 9:00:40.
  • seconds second: specifies a delay in stopping a test instance. The value is an integer ranging from 6 to 86399 in seconds.

  • hh:mm:ss: specifies a delay in stopping a test instance. For example, 1:0:0 stands for a 3600-second delay from the current system time till the time that the test instance stops.

NOTE:

The delay in stopping a test instance must be set to at least 6s later than the delay in performing the test instance.

end lifetime { seconds second | hh:mm:ss } Specifies the lifetime of an NQA test instance (starting from the moment that the NQA test instance starts). For example: If start delay seconds 60 end lifetime seconds 120 is run at 9:00:00, then, a test instance lasts for 120s as it starts at 09:01:00 and ends at 09:03:00.
  • seconds second: sets the life time of a test instance in seconds. The value is an integer ranging from 6 to 86399 in seconds.

  • hh:mm:ss: sets the lifetime of a test instance. For example, 1:0:0 indicates that the lifetime of a test instance is 3600s starting from the moment a test instance starts.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After configuring test instances and relevant attributes, you need to manually set the start and end modes for the test instances. The types of start and end modes are as follows:
  • Start modes:
    • Starting a test instance at a specified time
    • Starting a test instance immediately
    • Starting a test instance after a certain delay
  • End modes:
    • Ending a test instance at a specified time
    • Ending a test instance immediately
    • Ending a test instance after a certain delay
    • Ending a test instance after all test packets are sent
You can set the start and end modes as required.

Precautions

If the number of the running test instances reaches the maximum value defined by the system, the start command is invalid.

For the same test instance, the start now command can be used again only when the previous configuration is complete. Although this command has been run and configurations have been saved, this start now command will not be restored and needs to be run again after the device is restarted.

When starting a test instance at a specified time, the time must be later than the current time on the device.

If no end time is configured, the test cannot stop automatically. You need to stop it manually using the stop command.

Example

# Perform the test 10 hours later.

<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type jitter
[HUAWEI-nqa-user-test] destination-address ipv4 10.1.1.1
[HUAWEI-nqa-user-test] destination-port 4000
[HUAWEI-nqa-user-test] start delay 10:00:00
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >