< Home

schedule reboot

Function

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.

Format

schedule reboot { at time | delay interval [ force ] }

undo schedule reboot

Parameters

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.

  • hh indicates hour and the value ranges from 0 to 23.
  • mm indicates minute and the value ranges from 0 to 59.
  • YYYY indicates year and the value ranges from 2000 to 2099.
  • MM indicates month and the value ranges from 1 to 12.
  • DD indicates date and the value ranges from 1 to 31.

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.

  • In hh:mm, hh indicates hour and the value ranges from 0 to 720 and mm indicates minute and the value ranges from 0 to 59.
  • mm indicates minute and the value ranges from 0 to 43200.

force

Specifies forcible scheduled restart.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

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.

  • Run the schedule reboot delay interval command to set the delay time before the device restarts. If the force parameter is not specified, the system compares the configuration file with the current configuration. If the current configuration is different from the configuration file, the system asks you whether to save the current configuration. After you complete the selection, the system prompts you to confirm the configured restart time. Enter Y or y to make the configured restart time take effect. If the force parameter is specified, the system does not display any message, and the restart time takes effect directly. The current configuration is not compared or saved.
  • 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.

Example

# 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 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >