196
•
The job scheduled by using the
schedule job
command cannot be saved. When an active/standby
MPU switchover or master/slave switchover occurs, the job is lost.
Examples
# Schedule a job to execute the batch file
1.bat
in system view in 60 minutes (assuming that the current
time is 11:43).
<Sysname> schedule job delay 60 view system execute 1.bat
Info: Command execute 1.bat in system view will be executed at 12:43 10/31/2007 (in 1 hours
and 0 minutes).
# Schedule a job to execute the batch file
1.bat
in system view at 12:00 in the current day (assuming that
the current time is 11:43).
<Sysname> schedule job at 12:00 view system execute 1.bat
Info: Command execute 1.bat in system view will be executed at 12:00 10/31/2007 (in 0 hours
and 16 minutes).
schedule reboot at
Syntax
schedule reboot at
hh:mm
[
date
]
undo schedule reboot
View
User view
Default level
3: Manage level
Parameters
hh:mm
: Reboot time, in the
hh:mm
format. The hh value ranges from 0 to 23, and the mm value ranges
from 0 to 59.
date
: Reboot date, in the
MM/DD/YYYY
or
YYYY/MM/DD
format. The YYYY value ranges from 2000
to 2035, the MM value ranges from 1 to 12, and the DD value ranges from 1 to 31.
Description
Use the
schedule reboot at
command to schedule a device reboot to occur at a specific time and date.
Use the
undo schedule reboot
command to disable the scheduled reboot function.
By default, the scheduled reboot function is disabled.
In an IRF fabric, the device reboot schedule applies to all member switches.
The interval between the reboot date and the current date cannot exceed 30 x 24 hours, or 30 days.
When no reboot date is specified:
•
If the reboot time is later than the current time, a reboot occurs at the reboot time of the current day.
•
If the reboot time is earlier than the current time, a reboot occurs at the reboot time the next day.
The switch supports only one device reboot schedule. If you configure the
schedule reboot at
command
multiple times, the last configuration takes effect. The
schedule reboot at
command and the
schedule
reboot delay
command overwrite each other, and whichever is configured last takes effect.
The alert “REBOOT IN ONE MINUTE” appears one minute before the reboot time.