108
Complete these tasks to save the current configuration:
Task Remarks
Enabling configuration file auto-save
Optional
Selecting the modes for saving the configuration file
Required
Enabling configuration file auto-save
•
When the configuration file auto-save function is enabled, and you save the current configuration
by executing the
save
[
safely
] [
backup
|
main
] [
force
] command
or executing the
save
filename
all
command and then pressing
Enter
, the master and a slave automatically save the current
configuration to the specified configuration file, and use this file as the startup configuration file,
keeping the consistency of the configuration files on the master and the slave.
•
If the configuration file auto-save function is not enabled, and you save the current configuration by
executing the
save
[
safely
] [
backup
|
main
] command
or executing the
save
filename
all
command and then pressing
Enter
, only the master will automatically save the current configuration
to the specified configuration file, and use the file as the configuration file for the next startup; the
slaves will neither save the configuration file nor configure the file for the next startup.
Follow these steps to configure the configuration file auto-save function:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable configuration file
auto-save
slave auto-update config
Optional
Enabled by default.
Selecting the modes for saving the configuration file
•
Fast saving: In this mode, you use the
save
command without the
safely
keyword. The file is saved
more quickly but is likely to be lost if the device reboots or the power fails during the process.
•
Safe: In this mode, you use the
save
command with the
safely
keyword. The file is saved slowly, but
the system retains the configuration file even if the device reboots or the power fails during the
process.
The fast saving mode is suitable for environments where the power supply is stable. The safe mode is
preferred in environments where a stable power supply is unavailable or remote maintenance is
involved.
Follow the steps below to save the current configuration:
To do…
Use the command…
Remarks
Save the current configuration to
the specified file, but the
configuration file is not set as the
startup configuration file
save
file-url
[
all
|
slot
slot-number
]
Save the current configuration to
the root directories of the storage
media of all the member switches
and specify the file as the startup
configuration file
save
[
safely
] [
backup
|
main
]
[
force
]
Required
Use either command
Available in any view.