Message broker Trace Control

Turn Trace On

To turn trace on, use this command:

 

mqsichangetrace <brokerName> -t -e <executionGroup> -l debug -c  <size>

 

where the parameters mean:

            -t          = (required) service trace options tobe modified

            -e<exec_group>      = for thisexecution group only

            -l          = trace level: normal, none, debug

            -c<size>        = size of trace filein kilobytes

            -r         =RESET trace log (current trace records are discarded)

 

 

Examples:

mqsichangetrace MB8BROKER -t -e EG_01 -r -l debug -c 100000

 

 

Turn Trace Off

 

To turn trace off, set log level tonone.

Example:

 

mqsichangetrace MB8BROKER -t -e EG_01 -l none

 

To Format Trace

To be able to use the trace file,it is necessary to

  • read the trace data (which is returned in XML format by mqsireadlog)
  • format the XML data for easier readability into a text file.

 

Important: The trace file mustfirst be stopped.

 

1. READ THE TRACE FILE (returns XML data):

 

mqsireadlog <brokerName>-t -e <exec_group> -f -o <tracefile.xml>

 

where the parameters mean:

            -t          = (required) service trace options tobe modified

            -e<exec_group>      = for thisexecution group only

            -f          =  read log file directly from the file system(instead of requesting from the broker) .

            -o         =  name of the file into which to write log data.

 

Example:

mqsireadlog MB8BROKER-t -e EG_01 -f -o EG01_trace.xml

 

2. FORMAT THE TRACE FILE:

 

mqsiformatlog -i EG01trace.xml -o EG01trace.txt

 

where the parameters mean:

            -i          = input filename of the XML log fileto be formatted.

            -o         =  name of the file into which to write formattedlog output.

 

 

Example:

mqsiformatlog -i EG01_trace.xml -o EG01_trace.txt

 

 

Note : All of above all ‘-t’ parameter means Service Trace, we can use ‘-u’ parameter to open theUser Trace.

 

IBM Message Broker V7 Command Reference

 

Use this link to look up moredetails about any Message Broker commands.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp

 

Navigate to WebSphere Message Broker Version 7.0.0.3 -> Reference ->Configuration and Administration -> Commands -> Runtime Commands

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章