Enabling configuration auto-update, Saving configuration by using different methods – H3C Technologies H3C S12500 Series Switches User Manual
Page 110
98
The task described in "
Using automatic configuration backup after a software upgrade
" is automatically
performed the first time you use the save command to save the running configuration to the next-startup
configuration file that contains settings incompatible with the software version after a software upgrade.
Enabling configuration auto-update
In standalone mode:
The configuration auto-update function enables the standby MPU to automatically save the running
configuration as the active MPU does when you execute the save [ safely ] [ force ] command or the save
filename all command. If this function is disabled, only the active MPU saves the configuration.
In IRF mode:
The configuration auto-update function enables all MPUs in the IRF fabric to automatically save the
running configuration as the active MPU on the master device does when you execute the save [ safely ]
[ force ] command or the save filename all command. If this function is disabled, only the active MPU on
the master device saves the configuration.
NOTE:
The save command executed with only the
filename argument saves the running configuration only to the
specified path, regardless of whether the configuration auto-update function has been enabled.
To ensure configuration consistency, H3C recommends enabling the function.
To enable configuration auto-update:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable configuration
auto-update.
slave auto-update config
By default, this function is enabled.
Saving configuration by using different methods
When saving the running configuration to a configuration file, you can specify the file as the next-startup
configuration file.
If you are specifying the file as the next-startup configuration file, use one of the following methods to
save the configuration:
•
Fast mode—Use the save command without the safely keyword. In this mode, the switch directly
overwrites the target next-startup configuration file. If a reboot or power failure occurs during this
process, the next-startup configuration file is lost. You must re-specify a new startup configuration file
after the switch reboots (see "
Specifying a configuration file for the next startup
").
•
Safe mode—Use the save command with the safely keyword. Safe mode is slower than fast mode,
but it is more secure. In safe mode, the system saves configuration in a temporary file and starts
overwriting the target next-startup configuration file after the save operation is complete. If a reboot
or power failure occurs during the save operation, the next-startup configuration file is still retained.
Use the safe mode if the power source is not reliable or you are remotely configuring the switch.
The configuration file extension must be .cfg.