To ensure the integrity and security of the switch configuration, you can use a scheduling tool to save the switch configuration regularly to prevent the device configuration from being lost due to device restart if you forget to save the configuration.
1. Configure the scheduling job
[H3C]scheduler job save //Configure the scheduling job, named save
[H3C-job-save]command 1 save //Configure the first command executed by the scheduling job, which is save
[H3C-job-save]command 2 y //Configure the second command executed by the scheduling job, which is y, because when saving the configuration, the switch will prompt to confirm whether to save the configuration
[H3C-job-save]command 3 y //Configure the third command executed by the scheduling job, which is y, because when confirming to save the configuration, the switch will prompt whether to write the current startup configuration
[H3C-job-save]quit
2. Configure the time of the scheduling job
[H3C]scheduler schedule save //Configure the scheduling time, named save
[H3C-schedule-save]job save //Call the scheduling job
[H3C-schedule-save]time repeating at 7:35 //Configure the scheduled execution time to be 7:35 every day
[H3C-schedule-save]quit
Check the schedule status. It has not been executed because the time has not arrived:
[H3C]dis scheduler schedule
Schedule name : save
Schedule type : Run on every day at 07:35:00
Start time : Fri Apr 3 07:35:00 2020
Last execution time : Yet to be executed
-----------------------------------------------------------------------
Job name Last execution status
save -NA-
When the time has passed, it will display Successful
[H3C]dis scheduler schedule
Schedule name : save
Schedule type : Run on every day at 07:35:00
Start time : Fri Apr 3 07:35:00 2020
Last execution time : Fri Apr 3 07:35:00 2020
Last completion time : Fri Apr 3 07:35:01 2020
Execution counts : 1
-----------------------------------------------------------------------
Job name Last execution status
save Successful
1. After configuring the scheduler, remember to save the configuration.
2. The device time should be consistent with the actual time. If the time is inconsistent, the time saved regularly by the device will deviate from the actual time.