clear configuration commit oldest

Function

The clear configuration commit oldest command deletes the earliest generated list of configuration rollback points.

Format

clear configuration commit oldest number-of-commits

Parameters

Parameter Description Value
number-of-commits

Specifies the number of configuration rollback points to be deleted in the earliest generated list.

The value is an integer ranging from 1 to 80.

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
config read

Usage Guidelines

Usage Scenario

  • If the earliest configuration rollback points are no longer required, run the clear configuration commit oldest command to delete one or more of the earliest configuration rollback points. The configuration helps reclaim system resources.
  • This command is not used to reduce the number of configuration rollback points in the earliest generated list under normal circumstances. If the number of configuration rollback points reaches the upper limit (50) in a list and subsequent configuration rollback points are generated, the earliest configuration rollback points are deleted automatically.
  • Running the clear configuration commit oldest command deletes configuration rollback points that do not carry the label field. After that, the configuration rollback points carrying the label field become non-consecutive configuration rollback points. When the display configuration commit list command is run, the CommitId field of non-consecutive configuration rollback points contains the asterisk (*).

Prerequisites

Changes in the system configurations at the configuration rollback points have been displayed using the display configuration commit list or display configuration commit changes command to check whether a configuration rollback point must be deleted.

Follow-up Procedure

Run the display configuration commit list command to check that the earliest configuration rollback points have been deleted.

Example

# Delete three of the earliest configuration rollback points.
<HUAWEI> clear configuration commit oldest 3
Warning: The current operation will delete the oldest 3 rollback checkpoints. Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >