F3215-HP Load Balancing Module System Management Command Reference-6PW101
131
public-key: Encrypts configuration with a public key. Any device that supports the configuration
encryption function can decrypt the encrypted configuration file.
Usage guidelines
Configuration encryption enables the device to automatically encrypt a configuration file when saving
the current configuration to it.
To view encrypted configuration, use the display saved-configuration command instead of the more
command. If you use the more command, the system displays a failure message or garbled text.
Examples
# Enable the public-key approach to configuration encryption.
<Sysname> system-view
[Sysname] configuration encrypt public-key
configuration replace file
Use configuration replace file to perform configuration rollback.
Syntax
configuration replace file filename
Views
System view
Default command level
3: Manage level
Parameters
filename: Specifies the name of the replacement configuration file for configuration rollback.
Usage guidelines
To replace the running configuration with the configuration in a configuration file without rebooting the
device, use the configuration rollback function. This function helps you revert to a previous configuration
state or adapt the running configuration to different network environments.
To avoid rollback failure:
• Make sure the replacement configuration file is created by using the configuration archive function
or the save command on the device.
• If the configuration file is not created on the device, make sure the configuration file content format
is fully compatible with the device.
• The replacement configuration file is not encrypted.
Examples
# Replace the running configuration with the configuration in the my_archive_1.cfg configuration file.
<Sysname> system-view
[Sysname] configuration replace file my_archive_1.cfg
Current configuration will be lost, save current configuration? [Y/N]:n
Info: Now replacing the current configuration. Please wait...
Info: Succeeded in replacing current configuration with the file my_archive_1.cfg.