The set save-configuration command configures the function of saving system configurations periodically.
The undo set save-configuration command cancels the function of saving system configurations periodically.
By default, the system does not enable the function.
Parameter | Description | Value |
---|---|---|
interval interval |
Specifies the interval at which configurations are saved automatically. |
The value is an integer ranging from 30 to 43200, in minutes. The default value is 30. |
delay delay-interval |
Specifies the delay time for backing up a configuration automatically after the configuration is changed. |
The value is an integer ranging from 1 to 60, in minutes. The default value is 5. |
cpu-limit cpu-usage |
Specifies the maximum CPU usage. |
The value is an integer ranging from 1 to 100. The default value is 50. |
Usage Scenario
Before the set save-configuration command is run, the system does not enable the autosave function. After you run the command, the system periodically checks the configuration file. If a configuration or configuration file is changed, the system performs the save operation. If no configuration or configuration file change occurs, the system does not perform the save operation.
To disable the autosave function, run the undo set save-configuration command. If some parameters are specified in the undo set save-configuration command, the default values of the parameters will be restored after the command is run. The saved configurations, however, still take effect.
Configuration Impact
After the autosave function is configured, the system automatically saves configurations to the configuration file used for the next startup when the current running configuration is different from the next startup configuration file and the interval configured in the interval parameter expires, no matter whether the save operation has been manually saved.
Follow-up Procedure
Run the display saved-configuration configuration command, and view configuration information about the function of saving configurations periodically.
Precautions
In the following situations, the system cancels the current autosave operation:
When the system is saving configurations automatically to an interface board that is not properly installed, the offline configuration can also be saved.
When setting the next startup file, it will be forbidden to save automatically, forbidden to save for 30 minutes.
When configuration changes or setting the next startup file, the configuration flow id will be changed, and saving configurations automatically to the next startup file.
<HUAWEI> system-view [~HUAWEI] set save-configuration interval 60
<HUAWEI> system-view [~HUAWEI] set save-configuration interval 600 delay 3 cpu-limit 60