Updating Instances in a Group

Schedule a job in Autonomous Linux to update all the instances in a group. 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.

Important

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

    1. Open the navigation menu and click Observability & Management. Under Autonomous Linux, click Groups.
    2. Under List scope, select the compartment that contains the group you're interested in.
    3. Click the name of the group.
    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 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.

    6. Click Submit.
  • 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 --group-ids ocid.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.