This procedure describes how to define a Control-M Report job in the CLI using Control-M Workload Automation API.
Before you begin
Ensure that you install Control-M Workload Automation API, as described in Control-M Workload Automation API Installation.
To define a Control-M Report job in the CLI:
ctm reporting report::get <report name> [<pdf|csv> -o <output file>]
EXAMPLE: To order report, Alerts1 in PDF, and to send the output to c:\tmp\alerts.pdf type the following:
ctm reporting report::get Alerts1 pdf -o c:\temp\alerts.pdf
NOTE: If your report name contains spaces, when typing the command, replace %20 between the spaces. For example, for Job Report 1, type Job%20Report%201. Remove any special characters, such as # in the report name.
For information about the parameters, see CLI parameters.
Parent Topic |