Updating an Instance

Create an update job to schedule updates for an instance in OS Management Hub. You can schedule the job to run immediately or at a future date and time. You can also schedule the update job to run as a recurring event.

Want to update multiple instances at once? See Updating All Instances in a Compartment.

Important

If an instance is a member of a group or assigned to a lifecycle environment, you can't change its contents directly. Instead, manage its content through its associated group or lifecycle environment.
Important

If you have enabled active hours on your Windows instances, don't schedule updates during active hours. OS Management Hub doesn't install updates that are scheduled during active hours.

    1. Open the navigation menu and click Observability & Management. Under OS Management Hub, click Instances.
    2. Under List scope, select the compartment that contains the instance.
    3. Click the name of the instance.
    4. Click Create update job.
    5. Define the update job:

      Name: Enter a name for the job. The name doesn't need to be unique, because an Oracle Cloud Identifier (OCID) uniquely identifies the instance. Avoid entering confidential information.

      Description: (Optional) Enter a description for the job. Avoid entering confidential information.

      Updates to apply: Select the types of updates to apply. Select All to schedule all available updates or select specific update categories.

      Note

      If applying Ksplice updates, see Using Ksplice for how to configure an instance to receive Ksplice updates.

      Schedule: Choose when to run the job.

      • Run immediately: Select this option to run the job now.
      • Schedule: Select this option to schedule the job to run at a future date and time.
        1. Date and time: Click the calendar icon and select the date and time you want the job to run.

        2. Frequency: Choose how often you want the job to run.
          • To schedule the job to run only one time, select Once. This option is the default.
          • To schedule the job to recur, select either Hour, Day, Week, or Month, and then enter the interval.
        3. Automatic Retry: When selected, if the initial execution of the job fails, the service retries the job up three times. Each retry is five minutes apart.

        4. Show advanced options: Click to add tags to this resource.

          If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, ask an administrator or skip this option. You can apply tags later.

    6. Click Create.
  • Use the oci os-management-hub scheduled-job create command and required parameters to create an update job.

    oci os-management-hub scheduled-job create --compartment-id ocid --operations operations.json --schedule-type schedule-type --time-next-execution date-time --managed-instance-ids ocids.json [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the CreateScheduledJob operation to create an update job.