You can create scheduled tasks for operations that you want to run automatically once or at a recurring interval.

If the task to schedule is not available in the vSphere Client, use the vSphere API. See the vSphere SDK Programming Guide.

Caution: Do not schedule multiple tasks simultaneously on the same object. The results are unpredictable.

Prerequisites

Required privilege: Schedule Task.Create tasks

Procedure

  1. In the vSphere Client, navigate to the object for which you want to schedule a task.
  2. Select Configure > Scheduled Tasks > New Scheduled Task.
  3. From the New Scheduled Task drop-down menu, select the task to schedule.
    A wizard opens for the task with (scheduled) appended next to its name. The wizard contains a Scheduling options page, where you configure the scheduling options for the task. For example, to schedule taking a virtual machine snapshot, the Take a VM Snapshot wizard (scheduled) opens. In Scheduling options, you configure the scheduling options for the task, and in Edit settings, you enter the properties for the snapshot.
  4. In the Scheduling options page, configure the required settings for the task.
    1. Type a name and a description for the task.
    2. Choose a frequency.
      Table 1. Scheduler options
      Option Description
      Once Runs the scheduled task at the time selected.
      After vCenter startup Runs the task a specified number of minutes after startup.
      Hourly
      1. Type the repeat frequency.
      2. Type the start date and time.
      3. Type the end date and time.

      For example, to start a task at the half-hour mark of every fifth hour, type 5 hours and 30 minutes.

      Daily
      1. Type the repeat frequency.
      2. Type the start date and time.
      3. Type the end date and time.
      For example, to run the task at 2:30 pm every four days, type 4 and 2:30.
      Weekly
      1. Type the repeat frequency.
      2. Select the day of the week.
      3. Type the start date and time.
      4. Type the end date and time.

      For example, to run the task at 6 am every Tuesday and Thursday, type 1 week, 6 am, and select Tuesday and Thursday.

      Monthly
      1. Type the repeat frequency.
      2. Select the days by using one of the following methods.
        • Type a specific day of the month and the number of months. For example, the tenth day every five months.
        • Select first, second, third, fourth, or last, and select the day of the week and the number of months.

          last runs the task on the last week in the month that the day occurs. For example, if you select the last Monday of the month and the month ends on a Sunday, the task runs six days before the end of the month.

    3. Set up email notifications and click OK.