4-3
one-off: Specifies that the specified command(s) are executed for once, that is, the specified
command(s) are executed when the time is reached, and will not be executed when the time is reached
next time.
repeating: Executes a specified command(s) repeatedly.
at time: Time when a specified command is executed, in the format of hh:mm. hh ranges from 0 to 23,
and mm ranges from 0 to 59.
delay time: Delay time for the specified command(s) to be executed after the command is configured, in
the format of hh:mm or mm.
z When the time argument is in the format of hh:mm, hh ranges from 0 to 720, mm ranges from 0 to
59, and the value of the hh:mm argument cannot exceed 720:00.
z When the time argument is in the format of mm, mm ranges from 1 to 43200, that is, the maximum
value of the delay timer is 30 days.
The delay time parameter is unrelated to the system time. Even though the system time changes, the
specified command is executed after the specified delay time.
week-day week-daylist: Executes a specified command on a specified day or the specified days of a
week. week-daylist represents a day or multiple days in a week, taking the value of Mon, Tue, Wed,
Thu, Fri, Sat, or Sun. When you set multiple days, they should be separated by spaces, and you can
set at most seven days.
month-date month-day: Executes a specified command on a specified day of a month, where
month-day represents the day, an integer in the range 1 to 31.
date: Date when a specified command is executed, in the format of MM/DD/YYYY or YYYY/MM/DD.
z YYYY ranges from 2000 to 2035;
z MM ranges from 1 to 12;
z The value of DD depends on the specific month.
If you specify this argument, the configured time must be behind the current system time.
command command: Command to be executed at a specified time.
Description
Use the time command to configure to execute a specified command in a specified time.
Use the undo time command to remove the configuration.
Note the following:
z The commands in a scheduled task must be in the same view.
z You can specify up to ten commands (corresponding to ten time IDs) in one scheduled task. To
execute more than ten commands, you can specify multiple scheduled tasks.
Examples
# Configure a scheduled task so that PoE can be enabled on the device at eight AM from Monday to
Friday.
[Sysname-job-phone] time 1 repeating at 8:00 week-day Mon Tue Wed Thu Fri command poe enable
# Configure a scheduled task so that PoE can be disabled on the device on sixth April 2008.
[Sysname-job-phone] time 2 at 8:00 2008/04/06 command undo poe enable
# Configure a scheduled task so that PoE is disabled on the device five hours after the command is
configured.