R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

47
View
System view
Default level
3: Manage level
Parameters
private-key: Encrypts a configuration file with a private key. The encrypted configuration file can only be
decrypted and recognized by the local device.
public-key: Encrypts a configuration file with a public key. The encrypted configuration file can be
decrypted and recognized by all devices supported the configuration file encryption function.
Description
Use the configuration encrypt command to enable configuration file encryption.
Use the undo configuration encrypt command to restore the default.
By default, configuration file encryption is disabled, that is, the current configurations are directly saved
to the configuration file.
With this feature enabled, a configuration file is encrypted every time before it is saved (by the save
command).
Examples
# Encrypt the configuration file with a public key before saving it.
<Sysname> system-view
[Sysname] configuration encrypt public-key
configuration replace file
Syntax
configuration replace file filename
View
System view
Default level
3: Manage level
Parameters
filename: Specifies the name of the replacement configuration file for configuration rollback.
Description
Use the configuration replace file command to set configuration rollback.
When this command is executed, the running configuration rolls back to the configuration state based on
the specified configuration file (filename).
Examples
# Roll back from the running configuration to a previous configuration state based on a saved
configuration file my_archive_1.cfg.
<Sysname> system-view
[Sysname] configuration replace file my_archive_1.cfg
Info: Now replacing the current configuration. Please wait...