Updating Instances in a Dynamic Set
Create a job in OS Management Hub to update all the instances in the dynamic set. 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.
For Windows instances, if you have enabled active hours, don't schedule updates during those active hours. OS Management Hub doesn't install updates during active hours.
Navigate
- Navigate to the Dynamic sets list page.
- Select the compartment that contains the dynamic set.
- Select the name of the dynamic set.
- Select Create update job.
Add Basic Details
Provide the basic information for the update job:
-
Select when to run updates on the instance members: Immediately, or Schedule run time.
-
Name: Enter a name for the job. The name doesn't need to be unique, because an Oracle Cloud Identifier (OCID) uniquely identifies the job. Avoid entering confidential information.
-
Description: (Optional) Enter a description for the job. Avoid entering confidential information.
Tagging (optional)
Expand Tags and then 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.
Select Updates to Apply
Select specific categories for the types of updates to apply.
Note
If applying Ksplice updates, see Using Ksplice for Oracle Linux for how to configure an instance to receive Ksplice updates.Schedule
If you selected Schedule run time, specify when to run the job:-
Schedule: Select the calendar icon and select the date and time you want the job to run.
Frequency: Select 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 Hourly, Daily, Weekly, Monthly, or Yearly.
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.
Review and Submit Job
Review the details of the update job. Make any changes as needed, and then select Create.
View the job in the Work requests or Scheduled jobs tab in the Dynamic sets list page.
Next Steps
After creating the job, next steps might include:
???
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.