HCL Workload Automation, Version 9.4

jobgetexecutionlog command - Viewing job output

Use the jobgetexecutionlog command to view the output of a submitted job.

Syntax

jobgetexecutionlog ?

jobgetexecutionlog [-usr user_name -pwd password] -id job_ID -sizePage size Page -offset offset [-configFile configuration_file]

Description

This command displays the job output for submitted jobs using the unique ID created at job submission. To retrieve the job ID after submitting the job, you can use the jobquery command specifying the job name. You can also specify the length of the output page to be displayed and the number of the byte in the job output from where you want to start displaying the output.

Options

?
Displays help information.
-usr user_name
Specifies the username for a user authorized to perform operations on the command line. This parameter is required when security is enabled and the username is not defined in the CLIConfig.properties configuration file (with the tdwb_user keyword).
-pwd password
Specifies the password for a user authorized to perform operations on the command line. This parameter is required when security is enabled and the password is not defined in the CLIConfig.properties configuration file (with the tdwb_pwd keyword).
-id job_ID
Specifies the unique job ID created at submission time. This parameter is required.
-sizePage size Page
Specifies the number of bytes to be displayed in the job output page.
-offset offset
Specifies the number of the first byte to be displayed in the job output page. This option can be used to view large job outputs.
-configFile configuration_file
Specifies the name and path of a custom configuration file. This parameter is optional. If this parameter is not specified, the default configuration file is assumed. For more information on the configuration file, see Command-line configuration file.

Authorization

The user name and password for the command are defined in the CLIConfig.properties file. To override the settings defined in this file, you can enter the user name and password when typing the command. For more information on the CLIConfig.properties file, see Command-line configuration file.

Return Values

The jobgetexecutionlog command returns one of the following values:
0
Indicates that jobgetexecutionlog completed successfully.
< > 0
Indicates that jobgetexecutionlog failed.

Examples

  1. To view the output of a job with ID 617l9jq7037529f83x1w36185e569fwl displaying the output in pages containing 400 bytes starting from the first byte in the page, type the following command:
    jobgetexecutionlog -id 617l9jq7037529f83x1w36185e569fwl -sizePage 400 -offset 1
    The following output is displayed:
    Call Job Dispatcher to get the output of the job
    Success returned from Job Dispatcher
    Get Execution Log request submitted
    The Execution Log Page requested is:
     al 5
    drwxrwxrwx  7 root root 200 Aug 24 16:39 .
    drwxrwxrwx  8 root root 208 Aug 22 15:11 ..
    drwxrwxrwx  6 root root 248 Aug 22 15:11 eclipse
    -rw-rw-rw-  1 root root 139 Aug 24 16:39 jsdef
    drwxr-xr-x  2 root root 552 Aug 24 16:54 logs
    drwxrwxrwx  5 root root 240 Aug 22 15:11 rcp
    drwxrwxrwx  3 root root  72 Aug 22 15:11 shared
    drwxrwxrwx  3 root root  80 Aug 22 15:11 workspace
    
    The  file size is:
    381