Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI : How To Get Details of A Scheduled Job In OSMS Using the CLI

edited Mar 22, 2024 8:44PM in Linux

It is possible to get the details of a scheduled job in OSMS using the OCI CLI, including the "update-type" value.

To get details of a scheduled job, use the oci command with the  "--scheduled-job-id" option from the CLI, such as in the following example:

#oci os-management scheduled-job get --scheduled-job-id 
ocid1.osmsscheduledjob.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
.... 
“managed-instances”: [], 
“operation-type”: “UPDATEALL”, 
“os-family”: “LINUX”, 
“package-names”: null, 
“schedule-type”: “RECURRING”, 
“time-last-execution”: “2020-08-13T17:32:41+00:00”, 
“time-next-execution”: “2020-08-13T18:00:00+00:00”, 
“update-names”: null, 
“update-type”: “ALL”, 
“work-requests”: [ 
{

For more information, see the following topic: https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.6.1/oci_cli_docs/cmdref/os-management/scheduled-job.html

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!