dspmqrte (display route information)
Determine the route that a message has taken through a queue manager network.
Purpose
You can use the dspmqrte to generate a trace-route message and put it into a queue manager network. As the trace-route message travels through the queue manager network, activity information is recorded. When the trace-route message reaches its target queue, the activity information is collected and displayed.
Syntax
Parameters
- -q TargetQName
- Specifies the name of the target queue to send the trace-route message to.
- -c
- Specifies that the command connects as a client application.
- -i CorrelId
- Specifies the message identifier of the original trace-route message when displaying previously accumulated activity information.
- -m QMgrName
- Specifies the name of the queue manager to which the command connects.
The following parameters are used when the command is used to put a trace-route message into a
queue manager network. That is, the parameters are the generation options:
- -ac
- Specifies that activity information is to be accumulated within the trace-route message.
- -ar
- Specifies that a trace-route reply message containing all accumulated activity information is
generated in the following circumstances:
- The trace-route message is discarded by a queue manager.
- The trace-route message is put to a local queue (target queue or dead-letter queue) by a queue manager.
- The number of activities performed on the trace-route message exceeds the value of specified in -s Activities.
- -d Deliver
- Specifies whether the trace-route message is to be delivered to the target queue on arrival.
- -f Forward
- Specifies the type of queue manager that the trace-route message can be forwarded to.
- -l Persistence
- Specifies the persistence of the generated trace-route message.
- -o
- Specifies that the target queue is not bound to a specific destination.
- -p Priority
- Specifies the priority of the trace-route message.
- -qm TargetQMgrName
- Specifies the target queue manager for the target queue.
- -ro ReportOption
- ReportOption can be one or more of the following values specified in a
comma-separated list:
- none
- Specifies that no report options are set.
- activity
- The report option MQRO_ACTIVITY is set.
- coa
- The report option MQRO_COA_WITH_FULL_DATA is set.
- cod
- The report option MQRO_COD_WITH_FULL_DATA is set.
- exception
- The report option MQRO_EXCEPTION_WITH_FULL_DATA is set.
- expiration
- The report option MQRO_EXPIRATION_WITH_FULL_DATA is set.
- discard
- The report option MQRO_DISCARD_MSG is set.
The default value is
activity, discard
. - -rq ReplyToQ
- Specifies the name of the reply-to queue that all responses to the trace-route message are sent to.
- -rqm ReplyToQMgr
- Specifies the name of the queue manager where the reply-to queue is located.
- -s Activities
- Specifies the maximum number of recorded activities that can be performed on behalf of the trace-route message before it is discarded.
- -t Detail
- Specifies the activities that are recorded.
- -ts TopicString
- Specifies a topic string to which the command is to publish a trace-route message, and puts the command into topic mode.
- -u userID
- User ID to use for connecting to a queue manager.
- -xp PassExpiry
- Specifies whether the report option MQRO_DISCARD_MSG and the remaining expiry time from the trace-route message is passed on to the trace-route reply message.
- -xs Expiry
- Specifies the expiry time for the trace-route message, in seconds.
- -n
- Specifies that activity information returned for the trace-route message is not to be displayed.
The following parameters are used when the command is used to display collected activity
information. That is, the parameters are the display options:
- -b
- Specifies that the command only browses activity reports or a trace-route reply message related to a message.
- -v
summary | all | none | outline DisplayOption
- The values can be the following values:
- summary
- The queues that the trace-route message was routed through are displayed.
- all
- All available information is displayed.
- none
- No information is displayed.
- outline DisplayOption
- Specifies display options for the trace-route message.
The default value is
summary
. - -w
WaitTime
- Specifies the time, in seconds, that the command waits for activity reports, or a trace-route reply message, to return to the specified reply-to queue.
Usage notes
- This command must be run from the IBM® MQ administration mode. If the system is in the IBM MQ administration mode the prompt includes
mqa(mqcli)#
. To enter the IBM MQ administration mode, entermqcli
on the command line. To exit the IBM MQ administration mode, enterexit
on the command line. - For more information about this command in IBM MQ, see dspmqrte in the IBM MQ documentation.
Examples
- The following command puts a trace-route message into a queue manager network with the target
queue specified as
TARGET.Q
. Providing queue managers on route are enabled for activity recording, activity reports are generated. Depending on the queue manager attribute, ACTIVREC, activity reports are either delivered to the reply-to queueACT.REPORT.REPLY.Q
, or are delivered to a system queue. The trace-route message is discarded on arrival at the target queue.
Providing one or more activity reports are delivered to the reply-to queue,dspmqrte -q TARGET.Q -rq ACT.REPORT.REPLY.Q
ACT.REPORT.REPLY.Q
, the command orders and displays the activity information. - The following command puts a trace-route message into a queue manager network with the target
queue specified as
TARGET.Q
. Activity information is accumulated within the trace-route message, but activity reports are not generated. On arrival at the target queue, the trace-route message is discarded. Depending on the value of the target queue manager attribute, ROUTEREC, a trace-route reply message can be generated and delivered to either the reply-to queue,TRR.REPLY.TO.Q
, or to a system queue.
Providing a trace-route reply message is generated, and delivered to the reply-to queuedspmqrte -ac -ar -ro discard -rq TRR.REPLY.TO.Q -q TARGET.Q
TRR.REPLY.TO.Q
, the command orders and displays the activity information that was accumulated in the trace-route message.