Troubleshooting
Problem
Environment
Resolving The Problem
Answer these questions about the problem and then follow the steps in this article:
- What channel problem did you observe on the system?
- What time did the channel problem start and when did it stop?
- Which queue managers, channels, remote queues, and transmission queues are involved?
Step 1: Generate Data
If the channel problem is reproducible or is happening right now, generate data to provide more information about the problem:
-
Generate a trace of the queue manager while the channel problem is happening.
-
Generate IBM MQ trace simultaneously at the other end of the channel, whether it is a remote queue manager, a native client application, or a JMS™ or Java™ client:
- Linux and UNIX
- Windows
- IBM i
- Java and JMS client
- z/VSE™
- z/OS™ CHIN trace
- HP™ Integrity NonStop Server
- HP NonStop Sever
-
On Linux and UNIX systems, save the output from the
mqconfig
command. If you are running IBM MQ V9.2, V9.1, V9.0 or V8.0, WebSphere MQ V7.5.0.2 or later, or V7.1.0.3 or later, themqconfig
command is already available as part of the IBM MQ server installation.
Step 2: Collect Data
Collecting Data Automatically
If you are running IBM MQ V9.2, V9.1, V9.0 or V8.0, WebSphere MQ V7.5, V7.1.0.1 or later, or V7.0.1.8 or later collect data automatically with the runmqras command on both sides of the channel . Be sure to collect the runmqras defs
, cluster and trace sections, and to specify your case number:
runmqras -section defs,cluster,trace -qmlist QMA -caseno TS001234567
Collecting IBM MQ Data Manually
-
If your system has more than one IBM MQ installation, use the setmqenv command to choose the one with the problem before proceeding:
Linux and UNIX
sh> . /path/to/mqm/bin/setmqenv -n InstallationX
Windows
C:\> "C:\Program Files\IBM\MQ\bin\setmqenv" -n InstallationX
-
Record the IBM MQ version and maintenance level on both sides of the channel. Alternatively, collect the IBM MQ data manually on both sides of the channel.
Linux and UNIX
sh> dspmqver -i > /tmp/dspmqver-i.stdout
sh> dspmqver -a > /tmp/dspmqver-a.stdout
Windows
C:\> dspmqver -i > %TMEP\dspmqver-i.stdout
C:\> dspmqver -a > %TMEP\dspmqver-a.stdout
-
Record the operating system version and maintenance level on both sides of the channel.
-
Record the IP addresses and host names of the systems on both sides of the channel.
-
Save the IBM MQ configuration information, for example registry keys and ini files.
Linux and UNIX
sh> find $MQ_DATA_PATH -name "*.ini" -print -exec cat {} \; > /tmp/MQ_ini_files.txt
sh> amquregn $MQ_INSTALLATION_PATH/bin/amquregn.ctl > /tmp/amquregn.txt
Windows
C:\> @echo @echo %1 >\tmp\doit.cmd
C:\> @echo @type %1 >>\tmp\doit.cmd
C:\> @echo @echo ---------------------------------------- >>%TEMP%\doit.cmd
C:\> for /F %f in ('dir /b /s %MQ_DATA_PATH%\*.ini') do %TEMP%\doit.cmd %f >>%TEMP%\MQ_ini_files.txt
C:\> amquregn %MQ_INSTALLATION_PATH%\bin\amquregn.ctl >%TEMP%\amquregn.txt
-
If your system has more than one IBM MQ installation, record your IBM MQ installation details:
Linux and UNIX
sh> dspmqinst > /tmp/dspmqinst.txt
Windows
C:\>dspmqinst > %TEMP%/dspmqinst.txt
-
Record the status of your queue managers:
Linux and UNIX
sh> dspmq -a > /tmp/dspmq.txt
Windows
C:\> dspmq -a > %TEMP%/dspmq.txt
IBM i command line
===> WRKMQM
IBM i Qshell
===> /QSYS.LIB/QMQM.LIB/DSPMQ.PGM -a > /tmp/dspmq.txt
-
Record the IBM MQ processes active on your system:
Linux and UNIX
sh> ps -ef | grep mq > /tmp/ps.txt
Windows
C:\> TASKLIST /V > %TEMP%/tasklist.txt
IBM i command line
===> WRKACTJOB SBS(QMQM)
IBM i Qshell
===> ps -ef | grep mq > /tmp/ps.txt
-
On WebSphere MQ V7.1 and later installations, use dmpmqcfg to record the queue manager configuration:
Linux and UNIX
sh> dmpmqcfg -m QMA >/tmp/QMA.config.txt
Windows
C:\> dmpmqcfg -mQMA>%TEMP%\QMA.config.txt
IBM i Qshell
===> /QSYS.LIB/QMQM.LIB/DMPMQCFG.PGM -mQMA > /tmp/QMA.config.txt
-
Otherwise, on IBM WebSphere MQ V7.0 and earlier installations, use runmqsc to record the queue manager configuration . If any command gives an error, carry on with the others:
DISPLAY QMGR ALL
DISPLAY Q(*) ALL
DISPLAY SUB(*) ALL
DISPLAY TOPIC(*) ALL
DISPLAY CHANNEL(*) ALL
DISPLAY SERVICE(*) ALL
DISPLAY PROCESS(*) ALL
DISPLAY LISTENER(*) ALL
DISPLAY NAMELIST(*) ALL
-
On all IBM MQ server installations, use runmqsc to record status information from the queue manager . If any command gives an error, carry on with the others:
DISPLAY PUBSUB ALL
DISPLAY QMSTATUS ALL
DISPLAY CHSTATUS(*) ALL
DISPLAY LSSTATUS(*) ALL
DISPLAY SVSTATUS(*) ALL
DISPLAY SBSTATUS(*) ALL
DISPLAY CONN(*) TYPE(*) ALL
DISPLAY QSTATUS(*) TYPE(QUEUE) ALL
DISPLAY QSTATUS(*) TYPE(HANDLE) ALL
DISPLAY TPSTATUS('#') TYPE(PUB) ALL
DISPLAY TPSTATUS('#') TYPE(SUB) ALL
DISPLAY TPSTATUS('#') TYPE(TOPIC) ALL
-
If your channel is having difficulty connecting, use your operating system tools to list network connections on both sides immediately before and after the connection attempt:
Displaying network connections on Linux and UNIX
sh> netstat -an
Displaying network connections on Windows
C:\>NETSTAT -AN
Displaying IPv4 and IPv6 network connections at the IBM i command line
===> NETSTAT OPTION(*CNN) ===> NETSTAT OPTION(*CNN6)
-
Manually package your files for IBM , including files containing the output from the commands listed in Step 1 and 2.
Step 3: Send Data to IBM
Step 3: Send Data to IBM
A good description of the problem and the data is the most important information you can provide to IBM. Please do not send data without providing a description!
See Exchanging information with IBM Software Support for FTP and email instructions.
Go to the IBM My Support site to open or update a case.
Note: Always update your case to indicate that data was sent
If you need to speak with IBM Software Support, contact your country representative. If you need to speak with IBM Software Support in the US, you can call 1-800-IBM-SERV.
Product Synonym
IBM MQ WebSphere MQ WMQ
Was this topic helpful?
Document Information
Modified date:
18 March 2022
UID
swg21292924