set configuration commit

Function

The set configuration commit command sets a user label for a configuration rollback point.

The clear configuration commit command deletes a user label for a configuration rollback point.

By default, no user label is set for configuration commit.

Format

set configuration commit commit-id label label-string

clear configuration commit commit-id label

Parameters

Parameter Description Value
commit-id

Specifies the ID of a configuration rollback point.

The id is a string of 1 to 20 characters and generated by the system automatically.

label label-string

Specifies a user label for a configuration rollback point.

The parameter value must be unique in the system and in one-to-one mappings with commit-id.

The value is a string of 1 to 256 case-sensitive characters. It can be any visible ASCII character except for the space. However, the string can contain spaces if it is enclosed with double quotation marks (" "). The string cannot start with a digit or be a hyphen (-).

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
config write

Usage Guidelines

Usage Scenario

  • After a configuration commit operation is performed, the system automatically generates an ID for this configuration rollback point. The commit ID is an integer ranging from 1000000001 to 1999999999. If you find any difficulty in remembering a configuration commit ID, you can run the set configuration commit command to specify a user label for the configuration commit ID.
  • You can specify a user label when you run the commit command to generate a configuration rollback point. If you have enabled the system to generate a label for a configuration commit ID, you can run the set configuration commit label command to set the label. For continuous configuration rollback points with labels, you cannot directly modify the labels. You must run the clear configuration commit label command to delete the labels of the configuration rollback points first and then run the set configuration commit label command to specify user labels for the configuration rollback points.
  • Run the clear configuration commit label command to reset the configured label. The label is reset as the configuration commit is reset.
  • This command is supported only on physical systems (PSs).

Prerequisites

Before deleting a configuration rollback point, run the display configuration commit list or display configuration commit changes command to check whether a configuration rollback point can be deleted.

Follow-up Procedure

Run the display configuration commit list command to view information about the user label for a configuration rollback point.

Run the display configuration commit list command to display the configuration commit label information.

Precautions

If the set configuration commit command is run several times, the latest configuration overwrites the previous configuration.

Example

# Set the label new_label for configuration commit ID 1000000002.
<HUAWEI> set configuration commit 1000000002 label new_label
# Delete the user label named new_label for the configuration rollback point with the ID of 1000000002.
<HUAWEI> clear configuration commit 1000000002 label
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >