Retrieving service trace

Use the mqsireadlog 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. For a full description of this command (which, on z/OS, you run by customizing the BIPJLOG job), see mqsireadlog command.

Example: retrieving service trace information in XML format

On distributed platforms, to retrieve information for the service trace activated with the mqsichangetrace command, and write it to an output file, enter the command mqsireadlog UserNameServer -t -b agent -f -o 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, strace.xml)

This sends a log request to the broker to retrieve the service trace log, and stores the responses in the file strace.xml. You can view this file using a plain text editor.

Related concepts
Trace

Related tasks
Diagnosing errors
Using trace
Retrieving user trace
Formatting trace
Interpreting trace

Related reference
Service trace
mqsireadlog command
z/OS utility jobs