Retrieving service trace

Use the mqsireadlog command to access the trace information recorded by the service trace facilities.

Procedure

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

Procedure

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.

Results

This command sends a log request to the integration node 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 integration server

Procedure

To retrieve information for the service trace activated with the mqsichangetrace command and associated with integration server IS1 on integration node A, and write it to an output file, on distributed systems, enter the following command:

mqsireadlog BrokerA -t -e IS1 -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.

Results

This command sends a log request to the integration node to retrieve the service trace log, and stores the responses in the specified file. You can view this file using a plain text editor.