No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
How Do I Perform Configuration Rollback?

How Do I Perform Configuration Rollback?

After you perform configurations and submit the configurations using the commit command, rollback points are generated. To roll back the configuration at one point to the previous configuration, perform the configuration rollback operation. After the operation, a new rollback point is generated. For example, after a user performs four configuration operations and submits these configurations, four consecutive rollback points a, b, c, and d are generated. The user finds that the configuration at b is incorrect and wants to roll back the system to the configuration state before b. After the user rolls back the system configuration to a, a new rollback point e is generated and marked with Rollback.

# Roll back to the configuration before the interface is switched to the Layer 3 mode.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] undo portswitch
[*HUAWEI-10GE1/0/1] commit                  //Generate a rollback point.
[~HUAWEI-10GE1/0/1] return
<HUAWEI> display configuration commit changes           //View the configuration recorded at a rollback point when the interface is switched to the Layer 3 mode.
Building configuration
Commit changes of commitId 1000000429 2017-03-23 10:58:10
  interface 10GE1/0/1
+  undo portswitch

Commit changes of commitId 1000000428 2017-03-23 02:49:32
  ---- More ----
<HUAWEI> rollback configuration to commit-id 1000000428           //View the configuration recorded at a rollback point before the interface is switched to the Layer 3 mode.
Warning: This operation will revert configuration changes to the previous status. Continue? [Y/N]: y
Loading rollback changes
Check rollback result
Configuration rollback succeeded.
Please use 'display configuration commit changes last 1' to view the changes.

If some configurations fail to be rolled back, run the display configuration rollback result command to check these configurations and the messages generated during configuration execution.

Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 193508

Downloads: 3212

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next