display configuration commit list

Function

The display configuration commit list command displays the list of configuration rollback points.

Format

display configuration commit list [ number-of-commits ]

display configuration commit list verbose [ number-of-commits ]

display configuration commit list label

display configuration commit list verbose label

Parameters

Parameter Description Value
number-of-commits

Specifies the number of configuration rollback points to be displayed in the list of configuration rollback points.

The value is an integer ranging from 1 to 100 and cannot exceed the total number of generated configuration rollback points on the device.

verbose

Displays detailed information about the configuration rollback point list, including remarks.

-

label

Displays label of the configuration rollback point list.

-

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
config read

Usage Guidelines

Usage Scenario

After the system configuration is complete, you can run the display configuration commit list command to check the configuration rollback point list.

The system displays configuration rollback points in reverse chronological order. The latest rollback point is displayed on the top.

Follow-up Procedure

Identify the labels of rollback points in the list of rollback points so that you can perform future configuration rollbacks according to these labels.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display detailed information about all configuration rollback points in the list.
<HUAWEI> system-view
[~HUAWEI] sysname ROLLBACK
[*HUAWEI] commit description This is a test
[*ROLLBACK] display configuration commit list verbose
1) CommitId: 1000000114
        Label: -
        User: root
        User-Intf: VTY 1
        Type: CLI
        TimeStamp: 2012-07-03 20:20:40
        Description: This is a test 

2) CommitId: 1000000113
        Label: -
        User: root
        User-Intf: VTY 0
        Type: CLI
        TimeStamp: 2012-06-30 15:17:09
        Description: 

3) CommitId: 1000000112
        Label: -
        User: SNMP_User
        User-Intf: 
        Type: SNMP
        TimeStamp: 2012-06-30 15:16:56
        Description:
Table 1 Description of the display configuration commit list command output
Item Description
CommitId

ID of the configuration rollback point.

Label

Label of the configuration rollback point, which uniquely identifies the configuration rollback point.

User

User name.

TimeStamp

Timestamp of the configuration rollback point.

Description

Remarks about a configuration rollback point. You can run the commit label <labelstring> [ description <descriptionstring> ] command to add description for a configuration roll back point.

User-Intf

Path type, such as CON1 and VTY1.

Type

Terminal type, for example, CLI, SNMP, NETCONF, ROLLBACK, RESTORE, or SYSTEM.

  • CLI: configuration rollback point generated based on the command manually configured by the administrator.
  • SNMP: configuration rollback point generated based on the configurations delivered by the NMS.
  • NETCONF: configuration rollback point generated based on the configurations delivered by the controller.
  • ROLLBACK: configuration rollback point generated after the rollback configuration command is run. For example, if a user performs four configuration operations and commits them, four consecutive configuration rollback points a, b, c, and d are generated. If the user finds that the configuration at point b is incorrect and rolls back the configuration to point a, configuration rollback point E is generated and is marked with a Rollback flag, indicating that this point is generated because of configuration rollback.
  • RESTORE: rollback point that is automatically generated when the device is restarted. This configuration at this point is the one after the device is restarted.
  • SYSTEM: configuration rollback point that is automatically generated by the system when the undo configuration checkpoint auto-save disable command is run to enable the function of automatically saving rollback points.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >