Collect troubleshooting data for a Publish and Subscribe problem in WebSphere MQ for i5/OS

Technote (troubleshooting)

Problem(Abstract)

You are experiencing a Publish / Subscribe (PubSub Pub/Sub) problem in WebSphere MQ for i5/OS. You would like to know what documentation you must collect (MustGather) so that the WebSphere MQ Support team can diagnose your problem. If you gather this documentation before contacting support it will expedite the troubleshooting process, and save you time.

NOTE: Any reference within this document to OS/400 can be read as being equally applicable to iSeries or i5/OS.

This information will be used to verify your subscriptions. Use STRSEU to create a source physical file member.

CRTSRCPF FILE(QGPL/QMQSC) MBR(PUBSUB) TEXT('Websphere MQ').

STRSEU SRCFILE(QGPL/QMQSC) SRCMBR(PUBSUB) OPTION(2).

Now you can add the MQSC script commands.

DISPLAY TOPIC(*) ALL

DISPLAY SUB(*) ALL

DISPLAY SBSTATUS(*) ALL

DISPLAY PUBSUB TYPE(ALL) ALL Use the line option command I(insert) to add additional lines. If you are not familiar with SEU press the HELP or F1 to review the online help information.

Once the MQSC commands have been added, Press the F3 key to EXIT.

Next, press Enter to save the member.

To execute the script for a particular queue manager use the STRMQMMQSCcommand. Example: STRMQMMQSC SRCMBR(PUBSUB) SRCFILE(QGPL/QMQSC) MQMNAME(<QMGR_NAME>).

A QSYSPRT spoolfile will be generated. To view the spoolfile, use the WRKSPLF command, and select the spoolfile by using option 5 (Display).

The amqldmpa dump tool captures other information about subscriptions:

From the command line, type QSH (QShell)

Type, touch /tmp/topic.dump to create dump file

Type, /qsys.lib/qmqm.lib/amqldmpa.pgm -m <queue_manager> -c t -f /tmp/topic.dump NOTE: where <queue_manager> is your queue manager name and /tmp/topic.dump is the path and file name you select to use for the output file.