In this example the WebSphere MQ display route application connects to queue manager, QM1, and is used to generate and deliver a trace-route message to the target queue, TARGET.Q, on remote queue manager, QM2. The necessary report option is specified so that activity reports are requested as the trace-route reply message is routed. On arrival at the target queue the trace-route message is discarded. Activity information returned to the WebSphere MQ display route application using activity reports is put in order and displayed.
dspmqrte -m QM1 -q TARG.AT.QM2 -rq ACTIV.REPLY.QQM1 is the name of the queue manager to which the WebSphere MQ display route application connects, TARG.AT.QM2 is the name of the target queue, and ACTIV.REPLY.Q is the name of the queue to which it is requested that all responses to the trace-route message are sent.
Default values are assumed for all options that are not specified, but note in particular the -f option (the trace-route message is forwarded only to a queue manager that honors the Deliver parameter of the TraceRoute PCF group), the -d option (on arrival, the trace-route message is not put on the target queue), the -ro option (MQRO_ACTIVITY and MQRO_DISCARD_MSG report options are specified), and the -t option (medium detail level activity is recorded).
The output that is displayed follows:
AMQ8653: DSPMQRTE command started with options '-m QM1 -q TARG.AT.QM2 -rq ACTIV.REPLY.Q'. AMQ8659: DSPMQRTE command successfully put a message on queue 'QM2', queue manager 'QM1'. AMQ8674: DSPMQRTE command is now waiting for information to display. AMQ8666: Queue 'QM2' on queue manager 'QM1'. AMQ8666: Queue 'TARGET.Q' on queue manager 'QM2'. AMQ8652: DSPMQRTE command has finished.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
draex1 |