Collecting an agent trace from startup using USS
To collect a trace of a Managed File Transfer for z/OS® agent that is being administered using Unix System Services (USS) from startup, you need to set various properties need in the agent.properties file for that agent before it is started.
To collect a trace from startup, complete the following steps.
Procedure
- 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:
- trace=trace specification
The trace property determines the internal classes and packages that are to be traced. Unless otherwise specified by your IBM® Support representative, set this property to the value com.ibm.wmqfte=all.
- 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. You should set these properties to large values, to collect as much trace data as possible.
trace=com.ibm.wmqfte=all 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.
- trace=trace specification
- Stop the agent that needs to be traced, using the fteStopAgent command.
- Start the agent, by running the fteStartAgent command.
- Reproduce the issue.
- Stop the agent.
- Edit the agent.properties file for the agent, and remove the entries for the trace, traceFiles, and traceSize properties that you added in step 2. This ensures that trace is not enabled the next time you restart the agent.