Troubleshooting
Problem
IBM MQ or one of its fix packs is failing to install or uninstall properly, and you need to collect MustGather data to find a solution.
Environment
These instructions apply only to IBM MQ V9.0 and V8.0, and WebSphere MQ V7.5, V7.1, V7.0 and V6.0 on AIX, HP-UX, Linux, Solaris and Windows, to IBM MQ V9.0 and V8.0, and WebSphere MQ V7.1, V7.0 and V6.0 on IBM i, and to the IBM MQ V8.0 and WebSphere MQ V7.1 clients for HP Integrity NonStop Server. Refer to the IBM MQ Read First page for instructions on other operating systems:
Resolving The Problem
Please answer these questions about the problem and then follow the steps below:
- What are you trying to install or uninstall?
- What account are you using to perform the installation or uninstallation?
Step 1: Generate Data
It is helpful to gather information from the system when the install or uninstall problem is happening in order to identify the cause:
- Run the install or uninstall with debug logging enabled in order to gather more detailed information about the failure:
- Export the environment variable INST_DEBUG=YES, which will direct AIX to log extra debugging information. Then run the install or uninstall, whether you do so through SMIT or by running the installp command directly. For example:
Enable debugging on AIX
sh> export INST_DEBUG=YES
sh> installp... - Unset the INST_DEBUG variable when done:
Disable debugging on AIX
sh> unset INST_DEBUG - The smit.log file, located in the root directory of the system, will contain the debugging information from the install or uninstall attempt.
- Create two files to enable MQ debugging, with the second file specifying a debug level of 2. Then run the install normally, whether you use the System Management Homepage (SMH), System Administration Manager (SAM, used on HP-UX 11.23 and earlier), or the swinstall and swremove commands:
Enable debugging on HP-UX
sh> touch /tmp/AMQ_DEBUG_SW_SCRIPTS
sh> echo 2 > /tmp/wmq_debug_install.
sh> swinstall... -
Take note of the install or uninstall job ID. The job ID consists of the system host name followed by a hyphen and a unique number, like myhost.example.com-12345. Use this job ID to retrieve the install debug log into a file. For example:
Retrieving the install or uninstall log on HP-UX
sh> swjob -a log myhost.example.com-12345 @ myhost.example.com:/ > /tmp/mqinstall.log - Remove the two debugging files when done:
Disable debugging on HP-UX
sh> rm /tmp/AMQ_DEBUG_SW_SCRIPTS /tmp/wmq_debug_install
- Add the "-vv" option to the rpm command and capture all output (stdout and stderr) to a file. For example:
Generating debug output on Linux
sh> rpm -vv ... 2>&1 | tee mqinstall.log
- Use the script command to start logging output to a file. For example:
Logging screen output to a file
sh> script mqinstall.log - Add the "-v" option to the Solaris pkgadd or pkgrm command. For example:
Generating debug output on Solaris
sh> pkgadd -v ... - Exit the script command to stop logging output. For example:
Stop loggin screen output
sh> exit
- Use the msiexec command with the option "/l*vx" to log debugging output to a file. Use the MQ Knowledge Center documentation on Advanced installation using msiexec to determine what addition parameters to use to install or uninstall MQ. For example:
Logging Microsoft Installer output to a file
C:\> msiexec /l*vx "C:\mqinstall.log" ...
- Specify the OUTPUT(*PRINT) option on the RSTLICPGM or DLTLICPGM commands to ensure that a job log is spooled. For example:
Logging install and install information to a job log
===> RSTLICPGM ... OUTPUT(*PRINT)
Then use WRKSPLF option 5 to display the joblog
- Use the script command to start logging output to a file. For example:
Logging screen output to a file
osh> script mqinstall.log - Run the install or unstall command. For example:
Installing on HP Integrity NonStop Server
osh> mqc8_8.0.0.0_hpns-ia64.run ... - Exit the script command to stop logging output. For example:
Stop loggin screen output
osh> exit
- Export the environment variable INST_DEBUG=YES, which will direct AIX to log extra debugging information. Then run the install or uninstall, whether you do so through SMIT or by running the installp command directly. For example:
- Save the output of any errors reported by the install or uninstall process. Take a screen shot of the error, or use a camera phone to capture an image of the problem.
Step 2: Collect Data
- Record the MQ version and maintenance level currently on the system or identify the version you are attempting to install.
- Record the operating system version and maintenance level.
- If your system has more than one MQ installation, record your MQ installation details:
- On Linux and UNIX systems, include the /etc/opt/mqm/mqinst.ini file, if it exists.
- On Windows systems, save a copy of the MQ information from the Windows registry information using the amquregn program, if you have an MQ installation available to run it.
- Record the precise commands you used to start the install or uninstall process. On Linux and Solaris systems, include the crtmqpkg command you used to repackage MQ, if you are working with multiple installations.
- On AIX systems, collect the smit.log and smit.script files found in the root directory of the system.
- On Windows systems, collect the MSI installer log file. If you used msiexec, then you will have selected the file name on the command line. Otherwise, include all files named MSI*.*, MQ*.*, and amq*.* located in the %TEMP% directory of the user who attempted the install or uninstall. Include the files amqmsccw.txt and amqmjpse.txt from the IBM MQ data directory, if they exist.
- On all systems, include the mqpatch.dat and mqpatch.log files from the MQ installation directory, if they exist.
- On all systems, list the contents (if any) of the directory where you were trying to install, update, or remove MQ. For example:
- If you were trying to install WebSphere MQ File Transfer Edition V7.0, collect its install logs as well:
- Manually package your files for IBM, including files containing the output from the commands listed in Steps 1 and 2. For new installations, skip over any directories or files which do not yet exist on the system.
Linux and UNIX
sh> dspmqinst > /tmp/dspmqinst.txt
Windows
C:\> dspmqinst > %TEMP%/dspmqinst.txt
Linux and UNIX
sh> ls -alR /path/to/mq > mqfiles.txt
Windows
C:\> DIR /S "C:\Program Files\IBM\MQ" > %TEMP%/mqfile.txt
IBM i Qshell
===> ls -alR /QIBM/UserData/mqm /QIBM/ProdData/mqm /QSYS.LIB/QMQM.LIB > /tmp/mqfile.txt
HP Integrity NonStop Server
osh> ls -alR /path/to/mq > mqfiles.txt
WebSphere MQ File Transfer Edition V7.0 install logs on Linux and UNIX
/opt/IBM/WMQFTE/IBM_WebSphere_MQ_File_Transfer_Edition_*_InstallLog.log
WebSphere MQ File Transfer Edition V7.0 install logs on Windows (may vary)
C:\Program Files\IBM\WMQFTE\IBM_WebSphere_MQ_File_Transfer_Edition_*_InstallLog.log
WebSphere MQ File Transfer Edition V7.0 install logs on IBM i
/QIBM/ProdData/WMQFTE/V7/IBM_WebSphere_MQ_File_Transfer_Edition_*_InstallLog.log
Step 3: Send Data to IBM
- Send your data to the IBM ECuRep repository by email to websphere_support@ecurep.ibm.com, by standard or secure HTTP or FTP, or by using the IBM Secure Diagnostic Data Upload Utility (SDDUU) Java application.
- While the data is transferring, send an email or use the IBM Service Request tool to update your PMR with your description of the problem and of the data you are sending.
- Contact your country representative if you need to speak to an IBM technical support representative, or in the US call 1-800-IBM-SERV. Refer to the IBM Software Support Handbook for more information on working with 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!
Product Synonym
IBMMQ WebSphere MQ WMQ
Was this topic helpful?
Document Information
Modified date:
22 June 2018
UID
swg21293241