The start command sets the start mode and end mode for an NQA test instance.
The undo start command stops the running NQA test instance. If the start at or start delay command is run but does not take effect, running the undo start command will delete the previous configuration. The undo start command functions the same as the stop command.
By default, the test stops automatically after test packets are sent.
start now
start now end at [ yyyy/mm/dd ] hh:mm:ss
start now end delay { seconds second | hh:mm:ss }
start now end lifetime { seconds second | hh:mm:ss }
start at [ yyyy/mm/dd ] hh:mm:ss
start at [ yyyy/mm/dd ] hh:mm:ss end at [ yyyy/mm/dd ] hh:mm:ss
start at [ yyyy/mm/dd ] hh:mm:ss end delay { seconds second | hh:mm:ss }
start at [ yyyy/mm/dd ] hh:mm:ss end lifetime { seconds second | hh:mm:ss }
start delay { seconds second | hh:mm:ss }
start delay { seconds second | hh:mm:ss } end at [ yyyy/mm/dd ] hh:mm:ss
start delay { seconds second | hh:mm:ss } end delay { seconds second | hh:mm:ss }
start delay { seconds second | hh:mm:ss } end lifetime { seconds second | hh:mm:ss }
start daily hh:mm:ss to hh:mm:ss [ begin { yyyy/mm/dd | yyyy/mm/dd } ] [ end { yyyy/mm/dd | yyyy/mm/dd } ]
undo start
Parameter | Description | Value |
---|---|---|
now |
Performs the test immediately. |
- |
end |
End a test. |
- |
at |
Start or end test at a time. |
- |
yyyy/mm/dd |
The date of test start or test end. |
yyyy specifies the yea, which is an integer ranging from 1970 to 9999. mm specifies the month, which is an integer ranging from 1 to 12. dd specifies the day, which is an integer ranging from 1 to 31. |
hh:mm:ss |
Set the test start time, test end time, life time or delay time. |
hh specifies the hour, which is an integer ranging from 0 to 23. mm specifies the minute, which is an integer ranging from 0 to 59. ss specifies the second, which is an integer ranging from 0 to 59. |
delay |
Start or end delay time. |
- |
seconds second |
The life time or delay time, in seconds. |
The value is an integer ranging from 6 to 86399. |
lifetime |
Set the test lifetime. |
- |
daily |
Start test daily. |
- |
to |
Range connector. |
- |
begin |
Begin a test. |
- |
Usage Scenario
To set the start and end mode for an NQA test instance, run the start command.
The start command applies to the following scenarios:Configuration Impact
If the start daily command is run more than once, the latest configuration overrides the previous one.
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 after the previous test is complete. When two NQA generalflow test instances that bound to the same physical interface but different VLANs are performed together, the test result may be inaccurate. If a large number of test instances are running in a non-periodic test, wait for a period before starting new test instances.<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type icmp [*HUAWEI-nqa-user-test] destination-address ipv4 10.1.1.1 [*HUAWEI-nqa-user-test] start at 2009/10/19 12:12:12
<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type icmp [*HUAWEI-nqa-user-test] destination-address ipv4 10.1.1.1 [*HUAWEI-nqa-user-test] start daily 12:00:00 to 13:00:00 begin 2009/10/19 end 2010/10/20
<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type icmp [*HUAWEI-nqa-user-test] destination-address ipv4 10.1.1.1 [*HUAWEI-nqa-user-test] start delay 10:00:00
<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type icmp [*HUAWEI-nqa-user-test] destination-address ipv4 10.1.1.1 [*HUAWEI-nqa-user-test] start now