OCI : How To Get Details of Scheduled Job In OSMS Using CLI
in Linux
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Goal
OCI CLI command to get details of an OSMS scheduled job including the “update-type” value.
Solution
To get details of a scheduled job using the "job-id" option
Example command:
# 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: https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.6.1/oci_cli_docs/cmdref/os-management/scheduled-job.html
Tagged:
0