Thursday, January 30, 2014

WebSphere MQ for Linux Trace

Follow the instructions listed below to start, stop and format WebSphere MQ for Linux trace. Trace files are written to the directory /var/mqm/trace, so delete or relocate old trace files before beginning a new trace.

  • Start trace for every WebSphere MQ process:

      strmqtrc -e

    Or start trace only for one queue manager:

      strmqtrc -m MY.QMGR

    Or start a high detail trace for one queue manager:

      strmqtrc -t all -t detail -m MY.QMGR

    Or start a high detail wrapping trace and limit the file size to ~5MB:

      strmqtrc -l 5 -t all -t detail -m MY.QMGR

  • End all tracing:
      endmqtrc -a
  • Format the trace files:

      dspmqtrc *.TRC

    Or format wrapping trace files:

      dspmqtrc *.TRC *.TRS

    The trace formatter program converts binary files named AMQppppp.TRC (where ppppp is the process identifier or pid which created the file) into readable files named AMQppppp.FMT.
    If you used a wrapping trace, then each time a .TRC reaches the size limit MQ renames it to a .TRS extension and starts a new .TRC file. The trace formatter can convert both files to a single formatted file, but only if you format the .TRC and .TRS files at the same time, as shown above.
    Send formatted trace files to IBM support unless binary traces are specifically requested. To save space, compress the formatted trace files with compress, zip, gzip, or bzip2.

    http://www-01.ibm.com/support/docview.wss?uid=swg21174924#UNIXlt
  • No comments:

    Post a Comment