R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Configuration Guide-6PW101
47
Ste
p
Command
Remarks
1. Enter system view. system-view N/A
2. Enable configuration file
encryption.
configuration encrypt
{ private-key | public-key }
Optional.
Disabled by default, that is, the current
valid configurations are directly saved to
the configuration file.
NOTE:
For the device that supports this feature, you can use the display saved-configuration command instead
of the more command to view the encrypted confi
g
uration file, because the latter cannot decrypt the file.
Otherwise, you will be prompted for operation failure or garbled characters.
Saving running configuration in fast mode or safe mode
You can save the running configuration to a configuration file in one of the following modes:
• Fast mode—Use the save command without the safely keyword. The file is saved more quickly but
is likely to be lost if the device reboots or power failure occurs during the process. If the startup
configuration file for the next startup is lost, the device will use the factory defaults the next time it
reboots, and you must re-specify a new startup configuration file for the device (see "Specifying a
star
tup configuration file to be used at the next system startup").
• Safe mode—Use the save command with the safely keyword. The file is saved slowly, but the system
retains the configuration file even if the device reboots or a power failure occurs during the process.
The fast saving mode is suitable for environments where the power supply is stable. The safe mode is
preferred in environments where a stable power supply is unavailable or remote maintenance is
involved.
The configuration file name extension must be .cfg.
To save the running configuration:
Task Command
Remarks
Save the running configuration to the specified file, but the
configuration file will not be set as the file for the next startup.
save file-url
Use either
command
Available in any
view.
Save the running 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 ]
[ force ]
Configuring configuration rollback
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 generated by using either the
backup function or the save command, or, if a configuration file is generated by another device, the
configuration file must comply with the format of the configuration file on the current device. HP
recommends that you use the configuration file that is generated by using the backup function.
Configuration rollback can be applied in the following situations:
• Running configuration error. Rolling back the running configuration to a correct one is needed.
• The application environment has changed and the device has to run in a configuration state based
on a previous configuration file without being rebooted.