WMB – Create and View Trace Logs
Posted by Vivek on February 2, 2015
Trace logs are important when one has to find out root cause of any problem occurred during message flow execution. This post helps you understand the commands that are required:
You can create user trace by running the following command:
Start user trace:
mqsichangetrace <brokername> -u -e <egroup> -f “<Message Flow Name>” -l debug -r -c 50000
You can stop user trace with the following command:
Stop trace:
mqsichangetrace <brokername> -u -e <egroup> -f “<Message Flow Name>” -l none
Retrieve the trace log for the specified component:
mqsireadlog <brokername> -u -e <egroup> -f -o flowtrace.xml
Format XML trace file for viewing purpose:
mqsiformatlog -i flowtrace.xml -o userflowtrace.txt
Similarly, you can create service trace by executing a series of commands:
Service Level Trace:
Start trace.
mqsichangetrace <brokername> -t -e <egroup> -l debug -r -c 100000
Stop trace.
mqsichangetrace <brokername> -t -e <egroup> -l none
Retrieve the trace log for the specified component.
mqsireadlog <brokername> -t -e <egroup> -f -o flowtrace.xml
Format the XML trace file.
mqsiformatlog -i flowtrace.xml -o serviceflowtrace.txt
The serviceflowtrace.txt will be in the current working directory
This entry was posted on February 2, 2015 at 12:00 AM and is filed under IBM Websphere Message Broker. Tagged: WMB. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a comment