< Home

start

Function

The start command sets the start mode and end mode of the NQA test.

The undo start command stops the running test instance or deletes the configurations of an untried test instance. The undo start command is equivalent to the stop command.

By default, the test auto completes when test packets are all sent out.

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 the test at a specified time.
  • yyyy/mm/dd: specifies the date when a test instance is performed. yyyy stands for year, and the value of yyyy ranges from 2000 to 2099; mm stands for month, and the value of mm ranges from 1 to 12; dd stands for day, and the value of dd ranges from 1 to 31.

  • hh:mm:ss: specifies the moment when a test instance is performed. hh stands for hour, and the value of hh ranges from 0 to 23; mm stands for minute, and the value of mm ranges from 0 to 59; ss stands for second, and the value of ss ranges from 0 to 59.

The time on the device must be earlier than the set time.

start delay { seconds second | hh:mm:ss } Delays performing the test.
  • seconds second: specifies the delay after which a test instance is performed. The value ranges from 1 to 86399 in seconds.

  • hh:mm:ss: specifies the delay after which a test instance is performed. 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 the test immediately. -
end at [ yyyy/mm/dd ] hh:mm:ss Ends the test at a specified time. -
end delay { seconds second | hh:mm:ss } Delays ending the test. 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 the delay after which a test instance is ended. The value ranges from 6 to 86399 in seconds.

  • hh:mm:ss: specifies the delay after which a test instance is ended. For example, 1:0:0 stands for a 3600-second delay from the current system time till the time that the test instance ends.

end lifetime { seconds second | hh:mm:ss } Specifies the lifetime of the NQA test (starting from the moment that the NQA test 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 ranges 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
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 fails.

For the same test instance, the start now command can be used again only when the previous configuration is complete.

  • For a generalflow test, in lossy mode, running the start now command interrupts user services temporarily.
  • After the start now command, this command takes effect and is automatically deleted from the configuration file. 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.

Example

# Perform the test immediately.

<sysname> system-view
[sysname] nqa test-instance admin http
[sysname-nqa-admin-http] test-type http
[sysname-nqa-admin-http] start now

# Perform the test 10 hours later.

<sysname> system-view
[sysname] nqa test-instance admin http
[sysname-nqa-admin-http] test-type http
[sysname-nqa-admin-http] start delay 10:00:00
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >