100
Default level
3: Manage level
Parameters
directory
: The path of the folder for saving configuration files, a case-insensitive string of 1 to 63
characters, in the format of storage media name:/[folder name]/subfolder name. The folder must be
created before the configuration.
filename-prefix
: The filename prefix for saving configuration files, a case-insensitive string of 1 to 30
characters (can include letters, numbers, _, and - only).
Description
Use the
archive configuration location
command to configure the path and filename prefix for saving
configuration files.
Use the
undo archive configuration location
command to restore the default.
By default, the path and filename prefix for saving configuration files are not configured, and the system
does not save the configuration file periodically.
Before the running configuration is saved either manually or automatically, the file path and filename
prefix must be configured.
If you execute the
undo archive configuration location
command, the running configuration cannot be
saved manually or automatically. The configuration done by executing the
archive configuration interval
and
archive configuration max
commands will restore to the default, and clear the saved configuration
files.
When the device is operating in active/standby mode, the saving and rollback operations are executed
only on the active MPU. After the active/standby switchover, the configuration rollback can take effect on
the new active MPU. The
archive configuration location
command configures the path and filename
prefix for saving configuration files on both the active MPU and standby MPU. Before executing this
command, verify that the path is available on both the active MPU and standby MPU. The path cannot
include any slot number. (In standalone mode)
The saving and rollback operations are executed only on the active MPU of the IRF fabric. To make the
configuration rollback effective on the new active MPU after an active MPU change, execute the
archive
configuration location
command to specify the path and filename prefix for saving configuration files on
all the MPUs of the IRF fabric. Before executing this command, verify that the specified path is available
on all the MPUs of the IRF fabric. The path cannot include any member ID. (In IRF mode)
Examples
1.
In standalone mode
# Configure the path and the filename prefix for saving configuration files as
flash:/archive
and
my_archive
respectively.
•
Create folder
flash:/archive
on the active MPU (the slot number of the active MPU is 0)
<Sysname> mkdir archive
.
%Created dir flash:/archive.
•
Create folder
flash:/archive
on the standby MPU (the slot number of the standby MPU is 1)
<Sysname> mkdir slot1#flash:/archive
%Created dir slot1#flash:/archive.
•
Configure the path and filename prefix for saving configuration files.