< Home

agetime

Function

The agetime command sets the aging time of an NQA test instance.

The undo agetime command restores the default aging time of an NQA test instance.

The default aging time of an NQA test instance is 0, indicating that the test instance is not aged.

Format

agetime hh:mm:ss

undo agetime

Parameters

Parameter Description Value
hh:mm:ss Specifies the aging time. hh ranges from 0 to 23; mm ranges from 0 to 59; ss ranges from 0 to 59.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To prevent endless running of a test instance, you need to age the test instance periodically. The agetime command can be used to configure the aging time to change the survival time of a test instance in the system.

  • The aging time is started when the NQA test instance is in the inactive state. When the aging time expires, the system deletes the NQA test instance automatically.
  • The aging time is reset when the NQA test instance is in the active state.

Prerequisites

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

Precautions

The aging time of a running test instance cannot be changed.

Example

# Set the aging time of NQA test instance user test.

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