Viewing Job Details

View the details, such as children jobs, log messages, and errors for a job within OS Management Hub.

  • Job information

    • Compartment: Compartment where the job or work request resides.
    • Description: User provided description for the job (if provided).
    • Type: Type of job.
    • Recurrence: (scheduled job only) The frequency that the job runs.
    • Target: The instance, lifecycle, or group that the job targets.
    • Associated scheduled job: (job work only) The scheduled job that spawned this work request.
    • Parent work: (job work only) The parent work request that spawned this work request.
    • Time created: (job work only)The date and time that the job or work request was created.
    • Time completed: (job work only) The date and time the work request was completed.
    • Next execution: (scheduled job only) The date and time the job will run.
    • Last run: (scheduled recurring job only) The date and time the job last ran.
    • OCID: Oracle Cloud Identifier (OCID) assigned to the job or work request.

    Resources

    • Associated targets: A list of targets (instances, lifecycles, or groups) that the job runs against.
    • Job execution history: (scheduled recurring job only) The date and times that the job has run.
    • Associated work: (job work only) The associated parent or children work requests related to this work request.
    • Log messages: (child job work only) The log results from executing the job on an instance.
    • Error messages: (child job work only) The error messages (if any) from executing the job on an instance.
  • Use the oci os-management-hub scheduled-job get command and required parameters to get information for a specific scheduled job.

    oci os-management-hub scheduled-job get --scheduled-job-id ocid [OPTIONS]

    Use the oci os-management-hub work-request get command and required parameters to get information for a specific job that has been completed.

    oci os-management-hub work-request get --work-request-id ocid [OPTIONS]

    Use the oci os-management-hub work-request list-logs command and required parameters to view logs for a specific job.

    oci os-management-hub work-request list-logs --work-request-id ocid [OPTIONS]

    Use the oci os-management-hub work-request list-errors command and required parameters to view errors for a specific job.

    oci os-management-hub work-request list-errors --work-request-id ocid [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the GetScheduledJob operation to get information about a specific scheduled job.

    Run the GetWorkRequest operation to get information about a specific job that has completed.

    Run the ListWorkRequestsErrors operation to list the errors for a specific job.

    Run the ListWorkRequestsErrors operation to list the logs for a specific job.