scheduler schedule

Use scheduler schedule to create a schedule and enter schedule view. If the schedule already exists, you enter schedule view directly.

Use undo scheduler schedule to delete a schedule.

Syntax

scheduler schedule schedule-name

undo scheduler schedule schedule-name

Default

No schedule exists.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

schedule-name: Specifies the schedule name, a case-sensitive string of 1 to 47 characters.

Usage guidelines

You can schedule a job to have the device automatically run a command or a set of commands without administrative interference.

To configure a schedule:

  1. Use the scheduler job command to create a job.

  2. In job view, use the command command to assign commands to the job.

  3. Use the scheduler schedule command to create a schedule.

  4. In schedule view, use the job command to assign the job to the schedule. You can assign multiple jobs to a schedule. The jobs must already exist.

  5. Use the user-role command to assign user roles to the schedule. You can assign up to 64 user roles to a schedule.

  6. In schedule view, use the time at, time once, or time repeating command to specify an execution time for the schedule. You can specify only one execution time per schedule.

Examples

# Create a schedule named saveconfig.

<Sysname> system-view
[Sysname] scheduler schedule saveconfig

Related commands

job

time at