If the configuration file is not created on the current device, make sure the configuration file content
•
format is fully compatible with the current device.
The replacement configuration file is not encrypted.
Examples
# Replace the running configuration with the configuration file 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.
display archive configuration
Syntax
display archive configuration [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display archive configuration to display configuration archive information, including the archive
directory, archive prefix, archive interval, maximum number of archives, and saved archives.
Examples
# Display configuration archive information.
<Sysname> display archive configuration
Location: flash:/archive
Filename prefix: my_archive
Archive interval in minutes: 120
Maximum number of archive files: 10
Saved archive files:
No. TimeStamp
1
Aug 05 2011 20:24:54
2
Aug 05 2011 20:34:54
# 3
Aug 05 2011 20:44:54
'#' indicates the most recent archive file.
Next archive file to be saved: my_archive_4.cfg
FileName
my_archive_1.cfg
my_archive_2.cfg
my_archive_3.cfg
107