Start detail traces with automation
There are two ways to start detail traces with automation.
With the BMC AMI Ops Automation product
If you have the BMC AMI Ops Automation product installed, you can use the IMFEXEC IMFC command followed by the service name, optional parameters, and an identifier for the target CICS region. The following is an example of the syntax you can use:
With the BMC AMI Ops for CICS solution
The BMC AMI Ops for CICS solution supports using BMC AMI Ops Automationto intercept messages for tasks that exceed performance thresholds and start detail traces against the running task. To do this, use the IMFC SET REQ=ATRAC command in a BMC AMI Ops Automation EXEC. The syntax for the command is as follows:
IMFEXEC IMFC SET REQ=ATRAC TYPE=D CICSTASK=taskID T=description . . .
where:
taskid is the 1 to 5-byte task number to be traced.
The taskID is left-filled with zeros and generates the trace ID automatically. The generated trace IDs use the format adt12345.
The BBSAMP data set contains a sample Rule and EXEC that you can use to implementing this feature. For more information, see Sample-members-for-BMC-AMI-Ops-Automation-and-BMC-AMI-Ops-Monitor-for-CICS.
You can find additional information about starting and using detail traces for running tasks in the section Application-trace-views.
Related topic