Want these instructions for Linux? Read Collecting MQ Light server diagnostics on Linux.


    1. 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%
    2. Start tracing with the strmqtrc command. No parameters are required.
      C:\> strmqtrc -a
    3. Reproduce the problem while trace is active.
    4. When the problem occurs, stop tracing immediately using endmqtrc.
      For example: C:\> endmqtrc -a
    5. Specify the trace section name on the runmqras command to collect your MQ Light traces and other data. If the traces are very large, you can use the -workdirectory option 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
    6. 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.
      For example:
      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:

      • ${MQ_LIGHT_ROOT}/appdata/mqm/errors
      • ${MQ_LIGHT_ROOT}/appdata/mqm/qmgrs/DEFAULT/errors
      • ${MQ_LIGHT_ROOT}/appdata/mqm/trace
      • ${MQ_LIGHT_ROOT}/appdata/wlp/servers/defaultServer/logs

Join The Discussion

Your email address will not be published.