You can use the BFGAGTC member within the data set containing the JCL, for the agent that
needs to be traced, to collect trace from a running Managed File Transfer for z/OS® agent This can be very useful if IBM® Support need to see a trace from an agent that cannot be
stopped.
About this task
To collect a trace from an agent using the BFGAGTC member, complete the following steps.
Procedure
-
Locate the data set containing the JCL for the agent that needs to be traced.
- Edit the BFGAGTC member within the data set, and locate the line that contains the
text:
The text following this contains the list of internal classes and packages that are to
be traced. By default, this list is set to:
com.ibm.wmqfte=all
Unless otherwise
specified by
IBM Support, leave
this value as is.
- Submit the BFGAGTC member.
- Reproduce the issue.
- Edit the BFGAGTC member again, and set the -traceAgent parameter to
=off, as shown:
- Submit the BFGAGTC member again, to turn trace off.
- If an agent is busy, then it is possible that the trace files will wrap quickly and
overwrite the information needed to investigate the issue.
In this situation there are
two options:
- The first option is to:
- Schedule some time to stop the agent.
- Locate the agent.properties file for the agent that needs to be traced. The
agent.properties file can be found in the
BFG_DATA/mqft/config/coordination_qmgr_name/agents/agent_name
directory.
- Edit the files and add entries for the following properties:
- traceFiles=number of trace files to use
- traceSize=size of each trace file, in MB
The
traceFiles and traceSize properties are used to control
the amount of trace data that is collected.
The default value of the
traceFiles property is 5, and the traceSize property has
the default value of 20MB. This means that if you turn on trace dynamically, and you have not set
the properties, the agent writes trace information to 5 wrapping trace files, each with a maximum
size of 20MB.
You should set these properties to large values, to collect as much trace data
as possible.
For example, to collect 1GB of wrapping trace, add the following lines to the
agent.properties file:
traceFiles=5
traceSize=200
This
results in the agent writing trace data to a maximum of 5 files, where each file has a size of
200MB.
For more information on these agent properties, see The MFT
agent.properties file.
- Locate the data set containing the JCL for the agent that needs to be traced.
- Submit the BFGAGSP member within the data set to stop the agent.
- Restart the agent, by submitting the BFGAGST member in the data set.
- Edit the BFGAGTC member within the data set, and locate the line that contains the
text:
-traceAgent
The text following this contains the list of internal classes
and packages that are to be traced. By default, this list is set
to:com.ibm.wmqfte=all
Unless otherwise specified by IBM Support, leave this value as is.
- When it is time to enable trace, submit the BFGAGTC member.
- Reproduce the issue.
- Edit the BFGAGTC member again, and set the -traceAgent parameter to
=off, as shown:
-traceAgent =off +
- Submit the BFGAGTC member again, to turn trace off.
- The second option is to contact your IBM Support representative, if it is not possible to stop the agent for a short period of time.
You can then discuss alternative trace specifications to use, in order to reduce the
amount of trace data that is being generated.
Results
The resultant trace files are written to the
BFG_DATA/mqft/logs/coordination_qmgr_name/agents/agent_name/logs/trace%PID%
directory, where %PID% is the process identifier for the agent.