< Home

end lifetime

Function

The end lifetime command sets the lifetime of an eMDI instance.

The undo end lifetime command restores the default lifetime of an eMDI instance.

By default, the lifetime of an eMDI instance is 1 hour.

Format

end lifetime { seconds seconds | minutes minutes | hours hours | days days }

undo end lifetime [ seconds seconds | minutes minutes | hours hours | days days ]

Parameters

Parameter Description Value
seconds seconds

Specifies the lifetime of an eMDI instance, in seconds.

The value is an integer in the range from 300 to 604800.

minutes minutes

Specifies the lifetime of an eMDI instance, in minutes.

The value is an integer in the range from 5 to 10080.

hours hours

Specifies the lifetime of an eMDI instance, in hours.

The value is an integer in the range from 1 to 168.

days days

Specifies the lifetime of an eMDI instance, in days.

The value is an integer in the range from 1 to 7.

Views

eMDI instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

eMDI is a one-off monitoring activity and does not need to run for a long time. You can run this command to configure the lifetime of an eMDI instance. After the eMDI instance is started, it stops automatically when its lifetime expires.

Precautions

After an eMDI instance is started, its lifetime cannot be modified. To modify the lifetime, run the stop command to stop the eMDI instance first.

Example

# Set the lifetime of eMDI instance 1 to 300 seconds.

<HUAWEI> system-view
[HUAWEI] emdi
[HUAWEI-emdi] emdi instance 1
[HUAWEI-emdi-instance-1] end lifetime seconds 300
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >