How do I use runmqras to collect information about a WebSphere MQ problem?
WebSphere MQ V7.0.1 and later includes a tool called runmqras which automates the task of collecting diagnostic information. The runmqras tool collects some files from WebSphere MQ and saves the output from select WebSphere MQ and system commands to a zip archive.
Please update your WebSphere MQ installation to V188.8.131.52 or later, V184.108.40.206 or later, or V220.127.116.11 before using the runmqras command. Follow the manual instructions in the WebSphere MQ MustGather technotes if you are using older WebSphere MQ versions or maintenance levels.
Unless otherwise directed by IBM support, you should issue the runmqras command as a user with WebSphere MQ administrator authority, for example someone in the local mqm group. If your system has multiple WebSphere MQ installations, use the setmqenv command to choose your installation before using runmqras:
Linux and UNIX
sh> . /opt/mqm/bin/setmqenv -n Installation1
sh> runmqras -help
C:\> C:\Program Files (x86)\IBM\WebSphere MQ\bin\setmqenv -s
C:\> runmqras -help
IBM i QshellOn IBM i the runmqras command is located in /QIBM/ProdData/mqm/bin. Unless you update your PATH to include this directory, you will need to type out the full path to runmqras when running it in the Qshell.
===> /QIBM/ProdData/mqm/bin/runmqras -inputfile /QIBM/ProdData/mqm/bin/isa.xml -help
Choosing which data to gather
The runmqras command relies on a configuration file called isa.xml which describes the files to collect and the commands to run. This file is organized into sections, with each section collecting information about a different aspect of WebSphere MQ. New sections are sometimes added by fix packs:
Sections names and descriptions
Gathers all sections known to runmqras
WebSphere MQ logs, FDC files, and basic configuration and status
Always gathered unless you use the section name 'nodefault'
WebSphere MQ cluster configuration and queue information
WebSphere MQ object definitions and status information
WebSphere MQ trace files, if any (does not enable tracing)
Sections added in V18.104.22.168, V22.214.171.124 and V126.96.36.199
WebSphere MQ transaction and persistence information
WebSphere MQ queue manager kernel information
WebSphere MQ recovery logging information
WebSphere MQ topic tree information
Sections added in V188.8.131.52, V184.108.40.206 and V220.127.116.11
All queue manager files (queues, logs and configuration files)
WebSphere MQ for IBM i supports the default, cluster, defs and trace sections, while WebSphere MQ V7.5 client for HP Integrity NonStop Server supports the default, QMGR and trace sections. Both systems support the all and nodefault sections as well. Section names which are not recognized on a given platform are ignored by runmqras.
The WebSphere MQ MustGather technotes offer advice on which sections to choose for different problems. You can choose sections by using the runmqras -section option with a comma-separated list or by repeating the -section option. For example, these runmqras commands are equivalent:
Gathering multiple sections
C:\> runmqras -section cluster,defs,trace
C:\> runmqras -section cluster -section defs -section trace
Choosing queue managers
By default, the runmqras tool will try to collect information from all queue managers on the machine. If you are having a problem with only one or two queue managers, you can use the -qmlist option to prevent runmqras from examining the others. for example:
The qmlist option
sh> runmqras -qmlist QMA,QMB
If your queue managers are in different installations, you should use setmqenv to switch installations in order to use the correct runmqras with each queue manager. For example:
Using runmqras in different installations
sh> . /usr/mqm/bin/setmqenv -n Installation1
sh> runmqras -qmlist QM_V71
sh> . /usr/mqm/bin/setmqenv -n Installation2
sh> runmqras -qmlist QM_V75
Some of the data runmqras collects requires the target queue managers to be running. If possible, start those queue managers prior to using runmqras. If you cannot start a queue manager, or if the queue manager is offline for a reason, runmqras will gather what data it can.
Collecting data for a PMR
If you are gathering data for IBM, you can use the -pmrno option to include your IBM Problem Management Record (PMR) number in the archive file name. When you send the file to IBM, your PMR will be updated automatically to alert WebSphere MQ support:
Tagging data for a PMR
C:\> runmqras -pmrno 12345,67R,890
When you use the -pmrno option, you can direct runmqras to send your file to IBM using standard FTP (non-SSL). Your system must be connected to the internet, and FTP traffic must be allowed by your firewall for this option to work:
Automatically uploading data to a PMR
C:\> runmqras -pmrno 12345,67R,890 -ftp IBM
Handling large files
In most cases the data gathered by runmqras will be rather small. However, the runmqras archive file can grow large when your system has many FDC files or when you use runmqras to collect a large set of trace files.
If you have a lot of FDC or trace data, you may need to use the -workdirectory option to point to a location with lots of free space. Otherwise, runmqras may fill up the /tmp filesystem on IBM i, Linux and UNIX, or the %TEMP% directory on Window.
Using a custom work directory
sh> runmqras -section cluster,defs,trace,QMGR -qmlist QMA -pmrno 12345,67R,890 -workdirectory /var/bigdata/nov19
java version "1.6.0"
Java(TM) SE Runtime Environment (build pap6460sr10fp1-20120214_01(SR10 FP1))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr10fp1-20120202_101568 (JIT enabled, AOT enabled)
J9VM - 20120202_101568
JIT - r9_20111107_21307ifx1
GC - 20120202_AA)
JCL - 20120201_01
/usr/IBM/WMQ-7.5-A/usr/mqm/java/jre64/jre/bin/java -cp /usr/IBM/WMQ-7.5-A/usr/mqm/java/lib/com.ibm.mq.commonservices.jar:/usr/IBM/WMQ-7.5-A/usr/mqm/java/lib/com.ibm.mq.tools.ras.jar -Djava.library.path=/usr/IBM/WMQ-7.5-A/usr/mqm/lib64:/usr/IBM/WMQ-7.5-A/usr/mqm/java/lib64 -DdefaultRasInput=/usr/IBM/WMQ-7.5-A/usr/mqm/bin/isa.xml -DdefaultRasWork=/tmp/runmqras_130219_130335 crtmqras.Zipper -section cluster,defs,trace,QMGR -qmlist QMA -pmrno 12345,67R,890 -workdirectory /var/tmp/nov19 -ftp IBM
crtmqras v%I% starts...
Using default Input path:
Using Work path:
Using default output path:
Using Zip File path:
Running on AIX
crtmqras has successfully finished
The zip file can be found at /var/bigdata/nov19/12345.67R.890.runmqras_201302191303.zip
Cleaning up files
The runmqras command never deletes files from your system. After collecting data, be sure clean up certain files so that you don't send them again the next time you use runmqras:
- Trace files: Archive and delete trace files after they have been collected and sent
- FDC files: Archive or delete FDC files periodically to keep them from building up
To collect your object definitions and logger data from queue managers QMA and QMB on IBM i using the Qshell:
===> /QIBM/ProdData/mqm/bin/runmqras -inputfile /QIBM/ProdData/mqm/bin/isa.xml -section defs,logger -qmlist QMA,QMB
To collect all possible data from all queue managers on Windows, saving the output to an alternate directory with plenty of free space:
C:\> runmqras -section all -workdirectory D:\TEMP\RUNMQRAS\AUG05
To collect cluster and object definitions and trace files from queue manager QMC on Linux or UNIX and send the data directly to IBM for PMR 12345,67R,890:
sh> runmqras -section cluster,defs,trace -qmlist QMC -pmrno 12345,67R,890 -ftp IBM
WebSphere MQ V7.5
WebSphere MQ V7.1
WebSphere MQ V7.0.1
WebSphere MQ WMQ