IBM MQ - Enable tracing using the strmqtrc command

by
Jeremy Canfield |
Updated: May 25 2024
| IBM MQ articles
The strmqtrc command can be used to configre an IBM MQ queue manager to appending tracing logs to the /var/mqm/trace directory (Linux) or C:\ProgramData\IBM\MQ\trace directory (Windows). In this example, tracing is enabled on the queue manager named MANAGER01.
~]# strmqtrc -m MANAGER01
IBM MQ trace for installation 'Installation' has started
This will create .TRC files in the /var/mqm/trace directory (Linux) or C:\ProgramData\IBM\MQ\trace directory (Windows).
~]$ ll /var/mqm/trace/
total 1167304
-rw-r----- 1 mqm mqm 85595348 Aug 4 21:59 AMQ10419.0.TRC
-rw-r----- 1 mqm mqm 13351488 Aug 4 21:59 AMQ10947.0.TRC
-rw-r----- 1 mqm mqm 73924740 Aug 4 21:59 AMQ109827.0.TRC
-rw-r----- 1 mqm mqm 15717100 Aug 4 21:59 AMQ13305.0.TRC
-rw-r----- 1 mqm mqm 81911544 Aug 4 21:59 AMQ13554.0.TRC
-rw-r----- 1 mqm mqm 77058256 Aug 4 21:59 AMQ14261.0.TRC
-rw-r----- 1 mqm mqm 22024752 Aug 4 21:59 AMQ14334.0.TRC
-rw-r----- 1 mqm mqm 88149300 Aug 4 21:59 AMQ16688.0.TRC
-rw-r----- 1 mqm mqm 9386980 Aug 4 21:59 AMQ2019.0.TRC
-rw-r----- 1 mqm mqm 5084 Aug 4 21:59 AMQ2097.0.TRC
-rw-r----- 1 mqm mqm 119297936 Aug 4 21:59 AMQ23390.0.TRC
-rw-r----- 1 mqm mqm 232821220 Aug 4 21:59 AMQ30225.0.TRC
-rw-r----- 1 mqm mqm 47904744 Aug 4 21:59 AMQ51209.0.TRC
-rw-r----- 1 mqm mqm 175400 Aug 4 21:59 AMQ9388.0.TRC
-rw-r----- 1 mqm mqm 12821136 Aug 4 21:59 AMQ9401.0.TRC
-rw-r----- 1 mqm mqm 45356 Aug 4 21:59 AMQ9416.0.TRC
-rw-r----- 1 mqm mqm 19616 Aug 4 21:59 AMQ9421.0.TRC
-rw-r----- 1 mqm mqm 11856 Aug 4 21:59 AMQ9432.0.TRC
-rw-r----- 1 mqm mqm 41696 Aug 4 21:59 AMQ9441.0.TRC
-rw-r----- 1 mqm mqm 1923464 Aug 4 21:59 AMQ9451.0.TRC
-rw-r----- 1 mqm mqm 1298796 Aug 4 21:59 AMQ9453.0.TRC
-rw-r----- 1 mqm mqm 58064 Aug 4 21:59 AMQ9454.0.TRC
-rw-r----- 1 mqm mqm 2552716 Aug 4 21:59 AMQ9456.0.TRC
-rw-r----- 1 mqm mqm 9637260 Aug 4 21:59 AMQ9460.0.TRC
-rw-r----- 1 mqm mqm 83421876 Aug 4 21:59 AMQ9564.0.TRC
-rw-r----- 1 mqm mqm 12204224 Aug 4 21:59 AMQ9866.0.TRC
-rw-r----- 1 mqm mqm 96342724 Aug 4 21:59 AMQ9909.0.TRC
-rw-rw-rw- 1 mqm mqm 374379 Aug 4 21:59 AMQ.SSL.TRC
-rw-r--r-- 1 mqm mqm 26214855 Aug 4 21:59 AMQ.SSL.TRC.1
Optionally, the -t option can be used to specify the type of tracing to use, or the -x option can be used to specify the type of tracing to not use.
~]$ strmqtrc -t all -t detail -m MANAGER01
IBM MQ trace for installation 'Installation2' has started
all | Output data for every trace point in the system (the default). The all parameter activates tracing at default detail level. |
amqp | Output data for the AMQP service |
api | Output data for trace points associated with the MQI and major queue manager components. |
commentary | Output data for trace points associated with comments in the IBM MQ components. |
comms | Output data for trace points associated with data flowing over communications networks. |
csdata | Output data for trace points associated with internal data buffers in common services. |
csflows | Output data for trace points associated with processing flow in common services. |
detail | Activate tracing at high-detail level for flow processing trace points. |
explorer | Output data for trace points associated with the IBM MQ Explorer. |
java | Output data for trace points associated with applications using the IBM MQ classes for Java API. |
lqmdata | Output data for trace points associated with internal data buffers in the local queue manager. |
lqmflows | Output data for trace points associated with processing flow in the local queue manager. |
mqxr | Output data for the Telemetry (MQXR) service. |
otherdata | Output data for trace points associated with internal data buffers in other components. |
otherflows | Output data for trace points associated with processing flow in other components. |
parms | Activate tracing at default-detail level for flow processing trace points. |
remotedata | Output data for trace points associated with internal data buffers in the communications component. |
remoteflows | Output data for trace points associated with processing flow in the communications component. |
servicedata | Output data for trace points associated with internal data buffers in the service component. |
serviceflows | Output data for trace points associated with processing flow in the service component. |
spldata | Output data for trace points associated with buffers and control blocks that use a security policy (AMS) operation. |
splflows | Output data for trace points associated with entry and exit data for functions that use a security policy (AMS) operation. |
ssl | Output data associated with using GSKit to enable TLS channel security. |
versiondata | Output data for trace points associated with the version of IBM MQ running. |
Did you find this article helpful?
If so, consider buying me a coffee over at