The schedule reboot command configures the scheduled restart of a device and set the specific time when the device restarts or the delay time before the device restarts.
The undo schedule reboot command disables the scheduled restart function.
By default, the scheduled restart is disabled.
Parameter | Description | Value |
---|---|---|
at time |
Specifies the device restart time. |
The format of time is hh:mm YYYY/MM/DD. The restart time must be later than the current device time by less than 720 hours. YYYY/MM/DD indicates year, month, and date and is optional.
|
delay interval |
Specifies the delay time before the device restarts. |
The format of interval is hh:mm or mm. The delay time must be no more than 720 hours.
|
force |
Specifies forcible scheduled restart. |
- |
Usage Scenario
When upgrading or restarting the device, you can configure the device to restart at time when few services are running to minimize the impact on services.
Precautions
If the schedule reboot at command is used to set a specific date (YYYY/MM/DD) and the date is a future date, the device restarts at the specified time. If no date is set, two situations occur: If the specified time is later than the current time, the device restarts at the specified time of the day. If the specified time is earlier than the current time, the device restarts at the set time next day.
Note that the gap between the specified date and current date must be shorter than or equal to 720 hours. If the scheduled restart has been configured, the latest configuration overrides the previous one.
The scheduled restart function becomes invalid when you use the clock datetime command to set the system time to over 10 minutes later than the restart time set by the schedule reboot command. If the time difference is equal to or less than ten minutes, the device immediately restarts and does not save the configuration.
This command restarts the device at the specified time, interrupting all services on the device. Therefore, do not use this command when the device is running properly.
Before restarting the device, ensure that the configuration file has been saved.
# Configure the device to restart at 22:00.
<HUAWEI> schedule reboot at 22:00
Info: The system is now comparing the configuration, please wait. Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file flash:/vrpcfg.zip. C ontinue? [Y/N]:y Now saving the current configuration to the slot 0... Save the configuration successfully. Info: Reboot system at 22:00:00 2012/06/12 UTC-05:13(in 2 hours and 0 minutes) confirm?[Y/N]:y