Want these instructions for Linux? Read Collecting MQ Light server diagnostics on Linux.
- Add the MQ Light API diagnostic commands to the path. The following example shows an installation in C:\mqlight-production-1.0:
C:\> set PATH=C:\mqlight-production-1.0\runtime\bin64;%PATH%
- Start tracing with the strmqtrc command. No parameters are required.
C:\> strmqtrc -a
- Reproduce the problem while trace is active.
- When the problem occurs, stop tracing immediately using
C:\> endmqtrc -a
- Specify the trace section name on the
runmqrascommand to collect your MQ Light traces and other data. If the traces are very large, you can use the
-workdirectoryoption to package the files in a directory with plenty of free space.
The following example collects data for an IBM Problem Management Record 12345,67R,890:
C:\> runmqras -section trace,defs -pmrno 12345,67R,890 -workdirectory D:\temp
- Save a copy of the trace files while you are working with IBM support, but keep them somewhere other than the trace directory. You can clean up the trace directory to reclaim space.
C:\> cd \appdata\mqm\trace C:\> del AMQ*.TRC AMQ*.TRS
What to do next
For reference, the MQ Light API outputs diagnostic information to the following locations: