R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
67
After the above operation, the device backs up file test.cfg to TFTP server 2.2.2.2, where the file is saved
as 192-168-1-26.cfg.
configuration encrypt
Syntax
configuration encrypt { private-key | public-key }
undo configuration encrypt
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 configuration encrypt to enable configuration file encryption.
Use undo configuration encrypt to restore the default.
By default, configuration file encryption is disabled, that is, the running 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 configuration replace file to set configuration rollback.