WebSphere Message Broker, Version 8.0.0.7
Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS
See information about the latest product version
See information about the latest product version
Retrieving service trace
Use the mqsireadlog command to access the trace information recorded by the service trace facilities.
This command retrieves the trace details according to parameters
that you specify on the command, and writes the requested records
to a file, or to the command-line window, in XML format.
Example: retrieving service trace information in XML format
To retrieve information for the service trace activated
with the mqsichangetrace command,
and write it to an output file, on distributed systems, enter the
following command:
mqsireadlog brokerName -t -b agent -f -o /path/to/strace.xml
where:
- -t specifies service trace.
- -b agent specifies that trace for the agent subcomponent of the specified component is to be retrieved.
- -f specifies that the log file is to be read directly from the file system (this flag is mandatory for service trace).
- -o specifies the output file (in this case, /path/to/strace.xml.) If you do not specify a path to the file, the file is created in the current directory. Ensure that there is enough space for the output file.
This command sends a log request to the broker to retrieve the service trace log, and stores the responses in the specified file. You can view this file using a plain text editor.
Example: retrieving service trace information in XML format for an execution group
To retrieve information for the service trace activated
with the mqsichangetrace command
and associated with execution group EG1 on broker A, and write it
to an output file, on distributed systems, enter the following command:
mqsireadlog BrokerA -t -e EG1 -f -o /path/to/strace.xml
where:- -t specifies service trace.
- -f specifies that the log file is to be read directly from the file system (this flag is mandatory for service trace).
- -o specifies the output file (in this case, /path/to/strace.xml.) If you do not specify a path to the file, the file is created in the current directory. Ensure that there is enough space for the output file.
This command sends a log request to the broker to retrieve the service trace log, and stores the responses in the specified file. You can view this file using a plain text editor.