beautypg.com

Setting configuration rollback, Introduction – H3C Technologies H3C S5120 Series Switches User Manual

Page 612

background image

2-3

z

Safe mode. This is the mode when you use the save command with the safely keyword. The mode

saves the file more slowly but can retain the configuration file in the device even if the device

reboots or the power fails during the process.

The fast saving mode is suitable for environments where power supply is stable. The safe mode,

however, is preferred in environments where stable power supply is unavailable or remote maintenance

is involved.

Follow the steps below to save the current configuration:

To do…

Use the command…

Remarks

Save the current configuration
to the specified file, but the
configuration file will not be set
as the file for the next startup

save file-url

Save the current configuration
to the root directory of the
storage medium and specify
the file as the startup
configuration file that will be
used at the next system startup

save [ safely ] [ backup |
main ]

Required

Use either command

Available in any view.

z

The configuration file must be with extension .cfg.

z

For the device that supports the main keyword, the execution of the save [ safely ] and save

[ safely ] main commands has the same effect: The system will save the current configuration and

specify the configuration file as the main startup configuration file to be used at the next system

startup.

z

During the execution of the save [ backup | main ] command, the startup configuration file to be

used at the next system startup may be lost if the device reboots or the power supply fails. In this

case, the device will boot with the null configuration, and after the device reboots, you need to

re-specify a startup configuration file for the next system startup (refer to

Specifying a Startup

Configuration File for the Next System Startup

).

Setting Configuration Rollback

Introduction

Configuration rollback allows you to revert to a previous configuration state based on a specified

configuration file. The specified configuration file must be a valid .cfg file, namely, it can be generated

by using either the backup function (manually or automatically) or the save command, and even the

compatible configuration file of another device. You are recommended to use the configuration file that

is generated by using the backup function (manually or automatically). Configuration rollback is applied

in the following situations:

z

The current configurations are wrong; and there are too many wrong configurations to locate or to

correct one by one. Rolling back the current configuration to a correct one is needed.