This procedure describes how to define a Control-M Report job in the CLI using Control-M Automation API.
Before you begin
Ensure that you install Control-M 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>|shared:<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
EXAMPLE: To order a shared report, Alerts2 in csv and send to c:\tmp\alerts.csv
ctm reporting report::get shared:Alerts2 csv -o c:\temp\alerts.csv
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 |