Updating All Standalone Instances in a Compartment

Schedule a job to update all standalone instances in a compartment in Autonomous Linux. The instances can be a mix of OS versions, architectures, and locations.


This process updates standalone instances only. Instances in a group aren't updated.

You can also create an update job for a group or individual instance:

  • To create an update job for all the instances in a compartment:
    1. Open the navigation menu and click Observability & Management. Under Autonomous Linux, click Jobs.
    2. Under List scope, select the compartment to run the update job.
    3. Click Create update job.
    4. 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.

      Compartment: Select the compartment for the update job. The update job applies to all instances in the compartment.

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


      If applying Ksplice updates, see Using Ksplice for Oracle Linux 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.

    5. 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 [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.