Mq94 Install
Mq94 Install
IBM
Note
Before using this information and the product it supports, read the information in “Notices” on page
481.
This edition applies to version 9 release 4 of IBM® MQ and to all subsequent releases and modifications until otherwise
indicated in new editions.
When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it
believes appropriate without incurring any obligation to you.
© Copyright International Business Machines Corporation 2007, 2024.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
IBM Corp.
Contents
Notices..............................................................................................................481
Programming interface information........................................................................................................ 482
Trademarks.............................................................................................................................................. 482
iii
iv
Installing and migrating
You perform a range of tasks to install, uninstall, maintain, and migrate IBM MQ. These tasks are
platform-specific where needed.
Procedure
• “Installing and uninstalling IBM MQ” on page 5
• “Maintaining and migrating IBM MQ” on page 275
Procedure
1. To find information on installing IBM MQ, see the appropriate sections for the platform, or platforms,
that your enterprise uses:
Related concepts
“Multiple installations on AIX, Linux, and Windows” on page 17
On AIX, Linux, and Windows, it is possible to have more than one copy of IBM MQ on a system.
“Installation considerations for MQ Telemetry” on page 250
MQ Telemetry is a component of the main IBM MQ product. You can choose to install MQ Telemetry when
you first install IBM MQ, or when you modify an existing IBM MQ installation.
“Managed File Transfer product options” on page 244
Managed File Transfer can be installed as four different options, depending on your operating system and
overall setup. These options are Managed File Transfer Agent, Managed File Transfer Service, Managed
File Transfer Logger, or Managed File Transfer Tools.
Related tasks
“Maintaining and migrating IBM MQ” on page 275
Maintenance, upgrade, and migration have three distinct meanings for IBM MQ. The definitions are
described here. The following sections describe the various concepts associated with migration, followed
by the various tasks needed; these tasks are platform-specific where needed.
Installing Advanced Message Security
Use the information for your platform to guide you through installing the Advanced Message Security
(AMS) component.
IBM MQ can be installed as a server or a client. The installation images can be downloaded. See “Where
to find downloadable installation images” on page 9.
Separate client eImages are no longer available for downloading from Passport Advantage. Instead, you
can either get the client eImage from inside the main IBM MQ server eImage, which includes the server
and client, or you can download the IBM MQ client components from Fix Central. Follow the links in
Resource adapter, clients and other resources.
An IBM MQ server is an installation of one or more queue managers that provide queuing services to one
or more clients. All the IBM MQ objects, for example queues, exist only on the queue manager machine
(the IBM MQ server machine), and not the client. An IBM MQ server can also support local IBM MQ
applications.
An IBM MQ MQI client is a component that allows an application running on one system to communicate
with a queue manager running on another system. The output from the call is sent back to the client,
which passes it back to the application.
For detailed explanations of all the components that you can install, see:
For more information about installing IBM MQ Advanced for Multiplatforms, see “Installing
IBM MQ Advanced for Multiplatforms” on page 236.
Note: Up to and including IBM MQ 8.0, IBM WebSphere® MQ for HP NonStop Server
was also a component platform. Since then, this component has been supplied and supported separately
as IBM MQ for HPE NonStop V8.1, which provides IBM MQ on HPE NonStop L-series and J-series
platforms. The documentation is here: IBM MQ for HPE NonStop V8.1.
A client can be installed on its own, on a separate machine from the base product and server. It is also
possible to have both a server and a client installation on the same system.
To install an IBM MQ client on a system that is already running an IBM MQ server, you must use the
appropriate Server eImage downloaded from Passport Advantage. See “Where to find downloadable
installation images” on page 9.
Separate client eImages are no longer available for downloading from Passport Advantage. Instead, you
can either get the client eImage from inside the main IBM MQ server eImage, which includes the server
and client, or you can download the IBM MQ client components from Fix Central. Follow the links in
Resource adapter, clients and other resources.
Even if your client and server are installed on the same system, you must still define the MQI channel
between them. See Defining MQI channels for details.
License requirements
You must have purchased sufficient licenses for your installation. The details of the license agreement
is stored on your system at installation time so that you can read it at any time. IBM MQ supports IBM
License Metric Tool (ILMT).
Important: Ensure that your enterprise has the correct license, or licenses, for the components that you
are going to install. See IBM MQ license information for more details.
License files
At installation, the license agreement files are copied into the /licenses directory under the
MQ_INSTALLATION_PATH. You can read them at any time.
If you have installed a trial license, follow the instructions for converting a trial license on
the platform, or platforms, your enterprise uses.
On IBM i, you can use the WRKSFWAGR command to view the software licenses.
ILMT
ILMT automatically detects IBM MQ, if you are using it, and checks with it each time a queue manager is
started. You do not need to take any further action. You can install ILMT before or after IBM MQ.
The automatic detection applies to both the IBM MQ server and IBM MQ Java products.
Related concepts
“Hardware and software requirements on Linux systems” on page 94
Before you install IBM MQ, check that your system meets the hardware and operating system software
requirements for the particular components you intend to install.
“Hardware and software requirements on IBM i systems” on page 62
Check that the server environment meets the prerequisites for installing IBM MQ for IBM i.
“Hardware and software requirements on Windows systems” on page 168
Check that the server environment meets the prerequisites for installing IBM MQ for Windows and install
any prerequisite software that is missing from your system.
Related tasks
“Checking requirements on Windows” on page 168
SupportPacs
IBM MQ SupportPacs provide downloadable code and documentation that complements the IBM MQ
family of products. Each SupportPac supplies a particular function or service that can be used with one or
more of the IBM MQ products.
• SupportPacs for IBM MQ and other project areas
• IBM MQ - SupportPacs by Product
*.zip files
IBM MQ deliverables in .zip file form contain an embedded digital signature that can be verified by using
a recent Java Development Kit (JDK) as shown in the following example:
Note: More details, including the signer, can be found by running with the verbose option.
*.tar.gz files
IBM MQ deliverables in *.tar.gz file form are signed by IBM MQ and their digital signatures are
provided in the extra downloadable package. To verify a file's signature, use openssl as shown in the
following example for 9.4.0.0-IBM-MQC-Redist-LinuxX64.tar.gz:
*.rpm
The IBM-provided RPMs are signed with a digital signature, and systems will not recognize the signing
key without it being authorized. Obtain the IBM MQ public signing gpg key from the extra downloadable
package and install it into rpm. This only needs to be done once per system.
The validity of any of the IBM MQ RPMs can then be verified, for example:
Note: If you skip this step, then a harmless warning might be issued during RPM installation to indicate
there is a signature but the system does not recognize the signing key, for example:
warning: MQSeriesRuntime-9.4.0-0.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0209b828:
NOKEY
*.deb
The IBM provided debian type packages are signed with an embedded digital signature. To verify a
package you will need the IBM MQ public signing gpg key from the additional package, and the "debsigs"
operating system package installed.
1. Import the gpg key and identify its gpg key value:
From this, the key value would be D2D53B4E0209B828 and the certificate alias would be "IBM MQ
signing key <[email protected]>". The following instructions use those values – replace them
with the ones calculated from your import.
2. Export the certificate alias into the system keyrings:
mkdir /usr/share/debsig/keyrings/D2D53B4E0209B828/
cd /usr/share/debsig/keyrings/D2D53B4E0209B828/
gpg --output IBMMQ.bin --export "IBM MQ signing key <[email protected]>"
mkdir /etc/debsig/policies/D2D53B4E0209B828/
cd /etc/debsig/policies/D2D53B4E0209B828/
Create a file called IBM-MQ.pol in this directory with the following contents. Note that only the 'id'
fields need changing to the key value from step 1.
<?xml version="1.0"?>
<!DOCTYPE Policy SYSTEM "https://www.debian.org/debsig/1.0/policy.dtd">
<Policy xmlns="https://www.debian.org/debsig/1.0/">
<Origin Name="IBM MQ signing key" id="D2D53B4E0209B828" Description="IBM MQ signing key"/>
<Selection>
<Required Type="origin" File="IBMMQ.bin" id="D2D53B4E0209B828"/>
</Selection>
<Verification MinOptional="0">
<Required Type="origin" File="IBMMQ.bin" id="D2D53B4E0209B828"/>
</Verification>
</Policy>
# debsig-verify ibmmq-runtime_9.4.0.0_amd64.deb
debsig: Verified package from 'IBM MQ signing key' (IBM MQ signing key)
Note: Whilst it is possible to configure dpkg to verify signatures during installation, this is not advisable as
it will cause dpkg to reject the installation of unsigned Debian files.
Related tasks
“Installing the first IBM MQ installation on Linux using the rpm command” on page 111
You can install an IBM MQ server on a 64-bit Linux system using rpm. The instructions in this topic are for
the first installation of IBM MQ on a Linux system.
“Installing an IBM MQ client on Linux using rpm” on page 118
On AIX and Linux systems, the first IBM MQ installation is automatically given
an installation name of Installation1.
Note: For subsequent installations, you can use the crtmqinst command to set the installation name
before installing the product.
On Windows systems, you can choose the installation name during the installation process.
The installation name can be up to 16 bytes and must be a combination of alphabetic and numeric
characters in the ranges a-z, A-Z, and 0-9. You cannot use blank characters. The installation name must
be unique, regardless of whether uppercase or lowercase characters are used. For example, the names
INSTALLATIONNAME and InstallationName are not unique.
You can find out what installation name is assigned to an installation in a particular location using the
dspmqinst command.
Installation descriptions
Each installation can also have an installation description. This description can give more detailed
information about an installation in cases where the installation name cannot provide enough information.
These descriptions can be up to 64 single-byte characters, or 32 double-byte characters. The default
installation description is blank. You can set the installation description using the setmqinst command.
Related concepts
“Planning considerations for installation on Multiplatforms” on page 14
Before you install IBM MQ, you must choose which components to install and where to install them. You
must also make some platform-specific choices.
“Primary installation on AIX, Linux, and Windows” on page 18
On systems that support multiple installations of IBM MQ ( AIX, Linux, and Windows ), the primary
installation is the one to which IBM MQ system-wide locations refer. Having a primary installation is
optional, but convenient.
“Installation location on Multiplatforms” on page 15
Default location
The default location for the IBM MQ product code is shown in the following table:
Important: For Windows installations, the directories are as stated, unless there is a
previous installation of the product that still contains registry entries or queue managers, or both. In
this situation, the new installation uses the old data directory location. For more information, see Program
and data directory locations.
On IBM i, IBM MQ can only be installed in the default location. For more information about
the directory structure of IBM i, see Directory structure on IBM i
On AIX and Linux systems, working data is stored in /var/mqm, but you
cannot change this location. For more information about the directory structure of AIX and Linux systems,
see Directory structure on AIX and Linux systems.
• On AIX and Linux systems, the path must not contain spaces.
• On AIX, the product is installed into a User Specified Installation Location (USIL), which
can be either an existing USIL or a new USIL that is automatically created by the installation process. If
– Linux
– Windows
For example, on Linux, the path specified is /opt/custom_location. The MQ_INSTALLATION_PATH
is /opt/custom_location.
Note: Use rpm --prefix to specify the value of MQ_INSTALLATION_PATH. See step “6” on page 113
in Installing the first IBM MQ installation on Linux using the rpm command for an example of using rpm
--prefix.
• On the following platforms, you can install IBM MQ into a non empty MQ_INSTALLATION_PATH
directory:
– Linux
On Linux, you do this by setting the environment variable AMQ_OVERRIDE_EMPTY_INSTALL_PATH to 1
before starting the installation.
Note, that a non empty directory in this context, indicates a directory which contains system files and
directories.
For each installation, all of the IBM MQ components that you require must be installed in the same
location.
For more information about how to install to a custom location, see the installation topics for the
appropriate platform.
– /usr/mqm on AIX.
– /opt/mqm on Linux.
The reason an installation should not be located in a path that is a subdirectory of the default location
is to avoid the risk if you later decide to install IBM MQ into the default location, and cannot then do so.
If you do subsequently install into the default location, because IBM MQ has full access rights over the
installation directory, existing files might be replaced or deleted. Scripts that you might subsequently
run to uninstall IBM MQ might remove the installation directory at the end of the script.
• In a directory or subdirectory that is, or might later be used by another product, for example, an IBM
Db2® installation, or operating system component.
The IBM message service client for .NET support pack and multiple installations
For multiple version support, on IBM MQ, the "Java and .NET Messaging and Web Services" feature
must be installed with the IBM MQ product. For more information about installing the .NET feature, see
Installing IBM MQ classes for .NET.
Related tasks
Configuring multiple installations
Finding installations of IBM MQ on a system
“Migrating on AIX and Linux: side-by-side” on page 411
“Migrating on AIX and Linux: multi-stage” on page 415
“Choosing MSI Instance IDs for multiple server installations” on page 180
For multiple silent installations, for each version that is installed you must find an MSI instance ID that is
available to use for that installation.
“Choosing MSI Instance IDs for multiple client installations” on page 205
For multiple silent installations, for each version that is installed you must find an MSI instance ID that is
available to use for that installation.
On AIX and Linux systems, if you set an installation as the primary installation,
symbolic links to the external libraries and control commands of that installation are added into /usr/
lib, and /usr/bin. If you do not have a primary installation, the symbolic links are not created. For a list
of the symbolic links that are made to the primary installation, see “External library and control command
links to primary installation on AIX and Linux” on page 22.
On Windows systems, the global environmental variables point to the directories into which
the primary installation is installed. These environment variables are used to locate IBM MQ libraries,
control commands, and header files. Additionally, on Windows systems, some features of the operating
system require the central registration of interface libraries that are then loaded into a single process.
With multiple versions of IBM MQ, there would be conflicting sets of IBM MQ libraries. The features would
try to load these conflicting sets of libraries into a single process. Therefore, such features can be used
only with the primary installation. For more information, see “Features that can be used only with the
primary installation on Windows” on page 25.
Multiple Versio Version 7.1 If you want to have multiple installations of IBM MQ, you can
installations n 7.1 or later choose whether to make one of the installations primary. For
or more information, see “Multiple installations of IBM MQ” on
later page 21.
None Version 7.1
or later.
Related concepts
“Single installation of IBM MQ configured as the primary installation” on page 20
Marking an IBM MQ installation as primary adds symbolic links, or global environment variables to the
system so that the IBM MQ commands and libraries used by applications are automatically available with
minimum system setup required.
“Single installation of IBM MQ configured as non-primary” on page 20
If you install IBM MQ as non-primary you might have to configure a library path for applications to load
IBM MQ libraries. On Windows, some product capabilities are available only when IBM MQ is configured
as primary.
“Multiple installations of IBM MQ” on page 21
You can choose to have one of the IBM MQ installations configured as the primary installation. Your choice
depends on how applications locate libraries.
“Installation location on Multiplatforms” on page 15
You can install IBM MQ into the default location. Alternatively, you can install into a custom
location during the installation process. The location where IBM MQ is installed is known as the
MQ_INSTALLATION_PATH.
“Planning considerations for installation on Multiplatforms” on page 14
Before you install IBM MQ, you must choose which components to install and where to install them. You
must also make some platform-specific choices.
“Installation name on AIX, Linux, and Windows” on page 14
Each installation of IBM MQ on AIX, Linux, and Windows, has a unique identifier known as an installation
name. The installation name is used to associate things such as queue managers and configuration files
with an installation.
Related tasks
Changing the primary installation
On AIX and Linux, the first installation onto a system must be manually
configured to be the primary installation.
The implications of running a non-primary installation on AIX and Linux systems are as follows:
• Applications that locate their IBM MQ libraries using an embedded library path, for example, RPATH,
cannot find those libraries if the following conditions are true:
– IBM MQ is installed in a different directory from the directory specified in the RPATH
– There are no symbolic links in /usr
• Where applications locate their libraries using an external library path, for example, LD_LIBRARY_PATH,
you must configure the external library path to include the MQ_INSTALLATION_PATH/lib or
MQ_INSTALLATION_PATH/lib64 directory. The setmqenv and crtmqenv commands can configure a
number of environment variables in the current shell, including the external library path.
• Most IBM MQ processes run as setuid/setgid. As a result, when loading user exits they ignore the
external library path. User exits that reference IBM MQ libraries can find those libraries only if they are
setmqinst -x -p MQ_INSTALLATION_PATH
Windows systems
External library and control command links to primary installation on AIX and
Linux
On AIX and Linux platforms the primary installation is the one to which links from the /usr file system are
made. However, only a subset of those links created with previous releases are now made.
No links are created from /usr/include to any installation and only links to external libraries
and documented control commands are made from /usr/lib, and where appropriate, /usr/lib64
(external libraries) and /usr/bin (control commands).
In order to run these commands you must complete the following steps:
1. provide a full path to the command in an available IBM MQ installation,
2. use the setmqenv script to update your shell environment,
3. manually add the bin directory from an IBM MQ installation directory to your PATH,
4. run the setmqinst command as root to make one of your existing IBM MQ installations the primary
installation.
External libraries
Links are made to the following external libraries, both 32-bit and 64-bit:
• libmqm
• libmqm_r
• libmqmxa
• libmqmxa_r
• libmqmax
• libmqmax_r
• libimqb23ca
• libimqb23ca_r
• libimqc23ca
• libimqc23ca_r
• libimqs23ca
• libimqs23ca_r
Libraries containing "ia" have been built with the XLC 16 compiler, whilst libraries with "ca"
in the name have been built with the XLC 17 compiler.
The following 64-bit only libraries are also linked to:
• libmqmxa64
• libmqmxa64_r
• libmqcxa64
• libmqcxa64_r
Control commands
The following control commands are linked to from /usr/bin:
• addmqinf
• amqcrs6a
• amqcrsta
• amqmfsck
• crtmqinst
• dltmqinst
• dspmqinst
• setmqinst
• crtmqcvx
• runmqktool
• runmqlsr
• runmqsc
• runmqtmc
• runmqtrm
• setmqaut
• setmqenv
• setmqm
• setmqprd
• strmqcsv
• strmqm
• strmqtrc
Related concepts
“Primary installation on AIX, Linux, and Windows” on page 18
On systems that support multiple installations of IBM MQ ( AIX, Linux, and Windows ), the primary
installation is the one to which IBM MQ system-wide locations refer. Having a primary installation is
optional, but convenient.
“Features that can be used only with the primary installation on Windows” on page 25
Features that can be used only with the primary installation on Windows
Some Windows operating-system features can be used only with the primary installation. This restriction
is due to the central registration of interface libraries, which might conflict as a result of multiple versions
of IBM MQ being installed.
Windows
If you update the primary installation, it stops being the primary installation at the beginning of the
update procedure. If, by the end of the update procedure, you have not made another installation primary,
the upgraded installation is made primary again.
Maintenance
If you apply a fix pack to the primary installation, it stops being the primary installation at the beginning
of the maintenance procedure. If, by the end of the maintenance procedure, you have not made another
installation primary, the upgraded installation is made primary again.
AIX
IBM MQ supports both TCP and SNA. If you do not use TCP, see Setting up communication on AIX and
Linux systems.
Linux
IBM MQ for Linux supports TCP on all Linux platforms. On x86 platforms and Power platforms, SNA
is also supported. If you want to use the SNA LU6.2 support on these platforms, you need the IBM
Communications Server for Linux 6.2. The Communications Server is available as a PRPQ product
from IBM. For more details, see Communications Server.
If you do not use TCP, see Setting up communication on AIX and Linux systems.
Windows
IBM MQ for Windows supports TCP, SNA, NetBios, and SPX. If you do not use TCP, see Setting up
communication for Windows .
Related tasks
“Verifying an IBM MQ installation on AIX” on page 50
The topics in this section provide instructions on how to verify a server or a client installation of IBM MQ
on AIX systems.
“Verifying an IBM MQ installation on Linux” on page 139
The topics in this section provide instructions on how to verify a server or a client installation of IBM MQ
on Linux systems.
“Verifying an IBM MQ installation on Windows” on page 220
The topics in this section provide instructions on how to verify a server or a client installation of IBM MQ
on Windows systems.
Long Term Support: 9.4.0 IBM MQ C redistributable client for Linux x86-64
9.4.0.0-IBM-MQC-Redist-LinuxX64.tar.gz
Long Term Support: 9.4.0 IBM MQ C and .NET redistributable client for Windows x64
9.4.0.0-IBM-MQC-Redist-Win64.zip
Long Term Support: 9.3.0 IBM MQ JMS and Java redistributable client
9.4.0.0-IBM-MQC-Redist-Java.zip
Long Term Support: 9.4.0 Redistributable IBM MQ Managed File Transfer Agent for
Linux X86-64
9.4.0.0-IBM-MQFA-Redist-LinuxX64
Long Term Support: 9.4.0 Redistributable IBM MQ Managed File Transfer Agent for
Linux on z Systems
9.4.0.0-IBM-MQFA-Redist-LinuxS390X
Long Term Support: 9.4.0 Redistributable IBM MQ Managed File Transfer Agent for
Linux PPC (Little Endian)
9.4.0.0-IBM-MQFA-Redist-LinuxPPC64LE
Long Term Support: 9.4.0 Redistributable IBM MQ Managed File Transfer Agent for
Windows x64
9.4.0.0-IBM-MQFA-Redist-Win64
The IBM IPLA license agreement is extended for IBM MQ to enable you to download a number of
additional runtime files from Fix Central.
Note: See Downloading and configuring Redistributable Managed File Transfer components for details on
upgrading those components.
Related concepts
“Planning considerations for installation on Multiplatforms” on page 14
Before you install IBM MQ, you must choose which components to install and where to install them. You
must also make some platform-specific choices.
“Installation location on Multiplatforms” on page 15
You can install IBM MQ into the default location. Alternatively, you can install into a custom
location during the installation process. The location where IBM MQ is installed is known as the
MQ_INSTALLATION_PATH.
“Redistributable clients on Linux” on page 136
The Linux x86-64 image is shipped in a LinuxX64.tar.gz file.
“Redistributable clients on Windows” on page 218
The Windows 64-bit image is shipped in a Win64.zip file.
“.NET application runtime - Windows only” on page 219
Considerations when using the .NET application.
Related tasks
Configuring the Redistributable Managed File Transfer Agent
Upgrading Redistributable Managed File Transfer components
Limitations
IBM Global Security Kit (GSKit) objects
No new GSKit objects are shipped. Only the runtime files are shipped, both in a regular installation
and with the redistributable client.
IBM JREs
No IBM JREs are provided with the redistributable client.
Classpath changes
The classpath used by dspmqver, setmqenv, and crtmqenv commands adds the
com.ibm.mq.allclient.jar and com.ibm.mq.jakarta.client.jar to the environment,
immediately following the com.ibm.mq.jar, and com.ibm.mqjms.jar.
Modular applications using IBM MQ classes for JMS or IBM MQ classes for Jakarta
Messaging
You can configure modular applications to use IBM MQ classes for JMS and IBM MQ classes for Jakarta
Messaging by requiring the appropriate module within your application, and including the appropriate
directory in the module-path. For more information, see Configuring your modular application to use IBM
MQ classes for JMS or IBM MQ classes for Jakarta Messaging.
Other considerations
The default data path of a non-installed client is:
Linux x86-64
$HOME/IBM/MQ/data
Windows
%HOMEDRIVE%\%HOMEPATH%\IBM\MQ\data
On AIX and Linux systems, the length of the path must not contain spaces.
Important: A redistributable client runtime co-exists with a full IBM MQ client or server installation,
provided that they are installed in different locations. However, unpacking a redistributable image into the
same location as a full IBM MQ installation is not supported.
On Linux the ccsid.tbl used to define the supported CCSID conversions is traditionally expected to be
found in the UserData directory structure, along with error logs, trace files, and so on. The UserData
directory structure is populated by unpacking the redistributable client, and so, if the file is not found in
its usual location, the redistributable client falls back to locate the file in the /lib subdirectory of the
installation.
Name: IBM MQ
Version: 8.0.0.4
Level: p800-804-L150909
BuildType: IKAP - (Production)
Platform: IBM MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 2.6.32.59-0.7-default
InstName: MQNI08000004
InstDesc: IBM MQ V8.0.0.4 (Redistributable)
Primary: No
InstPath: /Development/johndoe/unzip/unpack
DataPath: /u/johndoe/IBM/MQ/data
MaxCmdLevel: 802
Name: IBM MQ
Version: 8.0.0.4
Level: p800-804-L150909
BuildType: IKAP - (Production)
Platform: IBM MQ for Windows (x64 platform)
Mode: 64-bit
O/S: Windows 7 Professional x64 Edition, Build 7601: SP1
InstName: MQNI08000004
InstDesc: IBM MQ V8.0.0.4 (Redistributable)
Primary: No
InstPath: C:\Users\johndoe\Desktop\Redist
DataPath: C:\Users\johndoe\IBM\MQ\data
MaxCmdLevel: 802
Related concepts
“Redistributable IBM MQ clients” on page 26
The IBM MQ redistributable client is a collection of runtime files that are provided in a .zip or .tar file
that can be redistributed to third parties under redistributable license terms. This provides a simple way
of distributing applications and the runtime files that they require in a single package.
“.NET application runtime - Windows only” on page 219
Considerations when using the .NET application.
Procedure
1. Check the system requirements.
See “Checking requirements on AIX” on page 35.
2. Plan your installation.
• As part of the planning process, you must choose which components to install and where to install
them. See “IBM MQ components for AIX systems” on page 32.
• You must also make some platform-specific choices. See “Planning to install IBM MQ on AIX” on
page 37.
3. Prepare your system for installation of IBM MQ.
See “Preparing the system on AIX” on page 37.
4. Install IBM MQ server.
See “Installing IBM MQ server on AIX” on page 42.
5. Optional: Install an IBM MQ client.
See “Installing an IBM MQ client on AIX” on page 47.
6. Verify your installation. See “Verifying an IBM MQ installation on AIX” on page 50.
Related concepts
“IBM MQ components and features” on page 6
You can select the components or features that you require when you install IBM MQ.
“Planning considerations for installation on Multiplatforms” on page 14
Before you install IBM MQ, you must choose which components to install and where to install them. You
must also make some platform-specific choices.
Procedure
1. Check that you have the latest information, including information on hardware and software
requirements.
See “Where to find product requirements and support information” on page 9.
2. Check that your systems meet the initial hardware and software requirements for AIX.
See “Hardware and software requirements on AIX systems” on page 36.
3. Check that your systems have sufficient disk space for the installation.
See Disk space requirements.
4. Check that you have the correct licenses.
See “License requirements” on page 8 and IBM MQ license information.
Host names
IBM MQ does not support host names that contain spaces. If you install IBM MQ on a system with a host
name that contains spaces, you are unable to create any queue managers.
java -version
Procedure
• Decide which IBM MQ components and features to install.
See “IBM MQ components and features” on page 6 and “Where to find downloadable installation
images” on page 9.
Important: Ensure that your enterprise has the correct license, or licenses, for the components that
you are going to install. For more information, see “License requirements” on page 8 and IBM MQ
license information.
• Review the options for naming your installation.
In some cases, you can choose an installation name to use instead of the default name. See
“Installation name on AIX, Linux, and Windows” on page 14.
• Review the options and restrictions for choosing an installation location for IBM MQ.
For more information, see “Installation location on Multiplatforms” on page 15.
• If you plan to install multiple copies of IBM MQ, see “Multiple installations on AIX, Linux, and
Windows” on page 17.
• If you already have a primary installation, or plan to have one, see “Primary installation on AIX, Linux,
and Windows” on page 18.
• Make sure that the communications protocol needed for server-to-server verification is installed and
configured on both systems that you plan to use.
For more information, see “Server-to-server links on AIX, Linux, and Windows” on page 26.
Procedure
1. Set up a user ID of the name mqm, with a primary group of mqm.
See “Setting up the user and group on AIX” on page 38.
What to do next
When you have completed the tasks to prepare the system, you are ready to start installing IBM MQ. To
install a server, see “Installing IBM MQ server on AIX” on page 42. To install a client, see “Installing an
IBM MQ client on AIX” on page 47.
Related tasks
Planning
“Maintaining and migrating IBM MQ” on page 275
Maintenance, upgrade, and migration have three distinct meanings for IBM MQ. The definitions are
described here. The following sections describe the various concepts associated with migration, followed
by the various tasks needed; these tasks are platform-specific where needed.
“Applying maintenance to IBM MQ” on page 278
Maintenance is the application of a reversible fix. Any changes to queue manager data are compatible
with the previous code level.
Type the name of the user in the User Name field and press Enter. Add mqm to the Group SET field,
which is a comma-separated list of the groups to which the user belongs. Users do not need to have their
primary group set to mqm. If mqm is in their set of groups, they can use the administration commands.
Procedure
• Increase the process limit for the number of file descriptors.
When running a multi-threaded process such as the agent process, you might reach the soft limit for
file descriptors. This limit gives you the IBM MQ reason code MQRC_UNEXPECTED_ERROR (2195)
and, if there are enough file descriptors, an IBM MQ FFST file.
To avoid this problem, increase the process limit for the number of file descriptors. You must alter
the nofiles attribute in /etc/security/limits to 10,000 for the mqm user ID, or in the default
stanza. To alter the number of file descriptors, complete the following steps:
a) Check the maximum number of file descriptors available to a process running as mqm:
• Set the system resource limit for data segment and stack segment to unlimited using the following
commands in a command prompt:
ulimit -d unlimited
ulimit -s unlimited
Attention: For an mqm user ID other than root, the value unlimited might not be permitted.
What to do next
You can check your system configuration using the mqconfig command.
During high load IBM MQ can use virtual memory (swap space). If virtual memory becomes full it could
cause IBM MQ processes to fail or become unstable, affecting the system.
To prevent this situation your IBM MQ administrator should ensure that the system has been allocated
enough virtual memory as specified in the operating system guidelines.
For more information on configuring your system, see How to configure AIX and Linux systems for IBM
MQ.
Related concepts
“Setting up the user and group on AIX” on page 38
uncompress IBM_MQ_9.4.0_AIX.tar.Z
2. Extract the installation files from the tar file, by using the following command:
3. Use the installation tools installp or smit to install the IBM MQ server for AIX.
Tip: If you find that the Function keys do not work in SMIT, try pressing Esc and the Function key number
to emulate the required Function key.
Procedure
1. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux. This information also applies to UNIX systems in general.
2. Set your current directory to the location of the installation packages.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
3. Select the required smit window by using the following sequence:
4. Specify the input directory in the INPUT device / directory for software field.
a) Enter a period character .
b) Press the Enter key
5. List the software in the SOFTWARE to install field:
a) Enter .
b) Press F4
6. Select the file sets to install from the list. If you require messages in a language different from the
language that is specified by the locale that is selected on your system, ensure that you include the
appropriate message catalog. Enter ALL to install all applicable filesets.
7. View the license agreement:
a) Change Preview new LICENSE agreements? to yes
b) Press Enter
8. Accept the license agreements and install IBM MQ:
a) Change ACCEPT new license agreements? to yes
b) Change Preview new LICENSE agreements? to no
c) Press Enter
What to do next
• If you chose this installation to be the primary installation on the system, you must now set it as the
primary installation. Enter the following command at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
Procedure
1. Log in as root, or with sufficient authority to run the following commands.
where USIL_Directory is a directory which exists before the command is run; it must not contain
any spaces or usr/mqm. IBM MQ is installed underneath the directory specified. For example, if /
USIL1 is specified, the IBM MQ product files are located in /USIL1/usr/mqm. This location is known
as the MQ_INSTALLATION_PATH.
What to do next
• If you have chosen this installation to be the primary installation on the system, you must now set it as
the primary installation. Enter the following command at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
Procedure
1. Obtain the full license from the fully licensed installation media.
The full license file is amqpcert.lic. On AIX, it is in the /MediaRoot/licenses directory on the
installation media.
2. Run the setmqprd command from the installation that you are upgrading:
MQ_INSTALLATION_PATH/bin/setmqprd /MediaRoot/licenses/amqpcert.lic
Related reference
setmqprd
Procedure
1. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux. This information also applies to UNIX systems in general.
2. Set your current directory to the location of the installation packages.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
3. Select the required smit window using the following sequence:
4. Click List to display the input device or directory for the software and select the location that contains
the installation images.
5. Select the SOFTWARE to install field to obtain a list of available filesets, and select the filesets you
want to install. Ensure that you include the appropriate message catalog if you require messages in
a language different from the language specified by the locale specified on your system. Enter ALL to
install all applicable filesets.
6. Change Preview new LICENSE agreements? to yes and press Enter to view the license agreements.
7. If you have a previous version of the product on your system, change the Automatically install
requisite software to no.
8. Change ACCEPT new license agreements? to yes and press Enter to accept the license agreements.
9. Change Preview new LICENSE agreements? to no and press Enter to install IBM MQ.
What to do next
• If you have chosen this installation to be the primary installation on the system, you must now set it as
the primary installation. Enter the following command at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
You can have only one primary installation on a system. If there is already a primary installation on the
system, you must unset it before you can set another installation as the primary installation. For more
information, see Changing the primary installation.
• You might want to set up the environment to work with this installation. You can use the setmqenv or
crtmqenv command to set various environment variables for a particular installation of IBM MQ. For
more information, see setmqenv and crtmqenv.
• For instructions on how to verify your installation, see “Testing communication between a client and a
server on AIX” on page 58.
Related tasks
“Uninstalling or modifying IBM MQ on AIX” on page 59
Procedure
1. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux. This information also applies to UNIX systems in general.
2. Set your current directory to the location of the installation packages.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
3. Install the product in one of the following ways:
• Install the whole product in the default location:
where the directory specified with the -R flag is an AIX User Specified Installation Location (USIL)
directory which exists before the command is run; it must not contain any spaces or usr/mqm.
IBM MQ is installed underneath the directory specified. For example, if /USIL1 is specified,
the IBM MQ product files are located in /USIL1/usr/mqm. This location is known as the
MQ_INSTALLATION_PATH.
What to do next
• If you have chosen this installation to be the primary installation on the system, you must now set it as
the primary installation. Enter the following command at the command prompt:
You can have only one primary installation on a system. If there is already a primary installation on the
system, you must unset it before you can set another installation as the primary installation. For more
information, see Changing the primary installation.
• You might want to set up the environment to work with this installation. You can use the setmqenv or
crtmqenv command to set various environment variables for a particular installation of IBM MQ. For
more information, see setmqenv and crtmqenv.
• For instructions on how to verify your installation, see “Testing communication between a client and a
server on AIX” on page 58.
Procedure
• To verify a local server installation, see “Verifying a local server installation using the command line on
AIX” on page 50.
• To verify a server-to-server installation, see “Verifying a server-to-server installation using the
command line on AIX” on page 52.
• To verify a client installation, see “Verifying a client installation using the command line on AIX” on
page 55.
. MQ_INSTALLATION_PATH/bin/setmqenv -s
dspmqver
If the command completes successfully, and the expected version number and installation name
are returned, the environment is set up correctly.
3. Create a queue manager called QMA by entering the following command:
crtmqm QMA
Messages indicate when the queue manager is created, and when the default IBM MQ objects are
created.
4. Start the queue manager by entering the following command:
strmqm QMA
runmqsc QMA
end
10. Type some message text on one or more lines, where each line is a different message. Enter a blank
line to end the message input.
The following message is shown:
Your messages are now on the queue and the command prompt is shown.
11. Get the messages from the queue, by entering the following command:
Results
You have successfully verified your local installation.
Procedure
1. On the receiver server:
a) On AIX, log in as a user in the mqm group.
b) Check which ports are free, for example by running netstat. For more information about this
command, see the documentation of your operating system.
If port 1414 is not in use, make a note of 1414 to use as the port number in step 2 h. Use the same
number for the port for your listener later in the verification. If it is in use, note a port that is not in
use; for example 1415.
c) Set up the environment for the installation you are using by entering the following command at the
command prompt:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
crtmqm QMB
Messages tell you that the queue manager has been created, and that the default IBM MQ objects
have been created.
e) Start the queue manager by entering the following command:
runmqsc QMB
A message tells you that MQSC has started. MQSC has no command prompt.
g) Define a local queue called RECEIVER.Q by entering the following command:
Where port_number is the name of the port the listener runs on. This number must be the same as
the number used when defining your sender channel.
i) Start the listener by entering the following command:
Note: Do not start the listener in the background from any shell that automatically lowers the
priority of background processes.
j) Define a receiver channel by entering the following command:
end
. MQ_INSTALLATION_PATH/bin/setmqenv -s
crtmqm QMA
Messages tell you that the queue manager has been created, and that the default IBM MQ objects
have been created.
d) Start the queue manager, by entering the following command:
strmqm QMA
runmqsc QMA
START CHANNEL(QMA.QMB)
The receiver channel on the receiver server starts automatically when the sender channel starts.
j) Stop MQSC by entering the following command:
end
dspmq -o installation
If the queue managers are on the same installation, move either QMA to the sender installation
or QMB to the receiver installation by using the setmqm command. For more information, see
setmqm.
m) Put a message on the local definition of the remote queue, which in turn specifies the name of the
remote queue. Enter one of the following commands:
• On AIX and Linux:
• On Windows:
The sample program starts, and your message is displayed. After a pause, the sample ends. Then
the command prompt is displayed.
Results
You have now successfully verified the server-to-server installation.
Procedure
1. Set up the server using the command line, using the instructions in “Setting up the server using the
command line on AIX” on page 55.
2. Set up the client, using the instructions in “Connecting to a queue manager, using the MQSERVER
environment variable on AIX” on page 57.
3. Test the communications between client and server, using the instructions in “Testing communication
between a client and a server on AIX” on page 58.
Procedure
1. Create a user ID on the server that is not in the mqm group.
This user ID must exist on the server and client. This is the user ID that the sample applications must
be run as, otherwise a 2035 error is returned.
2. Log in as a user in the mqm group.
3. You must set various environment variables so that the installation can be used in the current shell.
You can set the environment variables by entering the following command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
crtmqm QUEUE.MANAGER.1
You see messages telling you that the queue manager has been created.
5. Start the queue manager by entering the following command:
strmqm QUEUE.MANAGER.1
runmqsc QUEUE.MANAGER.1
A message tells you that an MQSC session has started. MQSC has no command prompt.
7. Define a local queue called QUEUE1 by entering the following command:
DEFINE QLOCAL(QUEUE1)
where non_mqm_user is the user ID created in step 1. A message tells you when the authorization
has been set. You must also run the following command to give the user ID authority to connect:
where client_ipaddr is the IP address of the client system, and non_mqm_user is the user ID created
in step 1. A message tells you when the rule has been set.
11. Define a listener by entering the following command:
where port_number is the number of the port the listener is to run on. This number must be the same
as the number used when defining your client-connection channel in “Installing an IBM MQ client on
AIX” on page 47.
Note: If you omit the port parameter from the command, a default value of 1414 is used for the
listener port. If you want to specify a port other than 1414, you must include the port parameter in
the command, as shown.
12. Start the listener by entering the following command:
end
What to do next
Follow the instructions to set up the client. See “Connecting to a queue manager, using the MQSERVER
environment variable on AIX” on page 57.
Procedure
1. Log in as the userid that you created in Step 1 of “Verifying a client installation using the command line
on AIX” on page 55.
2. Check the TCP/IP connection. From the client, enter one of the following commands:
• ping server-hostname
• ping n.n.n.n
n.n.n.n represents the network address. You can set the network address in IPv4 dotted decimal
form, for example, 192.0.2.0. Alternatively, set the address in IPv6 hexadecimal form, for
example 2001:0DB8:0204:acff:fe97:2c34:fde0:3485.
If the ping command fails, correct your TCP/IP configuration.
3. Set the MQSERVER environment variable. From the client, enter the following command:
Where:
• CHANNEL1 is the server-connection channel name.
• server-address is the TCP/IP host name of the server.
• port is the TCP/IP port number the server is listening on.
If you do not give a port number, IBM MQ uses the one specified in the qm.ini file, or the client
configuration file. If no value is specified in these files, IBM MQ uses the port number identified in the
TCP/IP services file for the service name MQSeries. If an MQSeries entry in the services file does not
exist, a default value of 1414 is used. It is important that the port number used by the client and the
port number used by the server listener program are the same.
What to do next
Use the sample programs to test communication between the client and server; see “Testing
communication between a client and a server on AIX” on page 58.
Procedure
1. Change to the MQ_INSTALLATION_PATH/samp/bin directory, which contains the sample
programs.
MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
2. You must set certain environment variables so that the installation can be used in the current shell.
You can set the environment variables by entering the following command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
Tip: You might get the error, MQRC_NOT_AUTHORIZED (2035). By default, channel authentication
is enabled when a queue manager is created. Channel authentication prevents privileged users
accessing a queue manager as an IBM MQ MQI client. For verifying the installation, you can either
When you finish the test, if you do not delete the queue manager, re-enable channel authentication:
The sample program starts, and your message is displayed. After a short pause (approximately 30
seconds), the sample ends and the command prompt is displayed again.
Results
You have now successfully verified the client installation.
What to do next
1. You must set various environment variables on the server so that the installation can be used in the
current shell. You can set the environment variables by entering the following command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
endmqm QUEUE.MANAGER.1
3. On the server, delete the queue manager by entering the following command:
dltmqm QUEUE.MANAGER.1
Procedure
1. Stop all IBM MQ applications associated with the installation you are uninstalling or modifying, if you
have not already done so.
. MQ_INSTALLATION_PATH/bin/setmqenv
dspmq -o installation
d) Stop all running queue managers associated with the installation you want to uninstall or modify.
Enter the following command for each queue manager:
endmqm QMgrName
e) Stop any listeners associated with the queue managers. Enter the following command for each
queue manager:
endmqlsr -m QMgrName
3. Log in as root.
4. Uninstall or modify IBM MQ using either installp or smit. If IBM MQ was installed in a non-default
location, you must use installp.
• To uninstall or modify IBM MQ by using installp, enter one of the following commands:
– To uninstall an installation in the default location /usr/mqm:
installp -u mqm
where usil is the path of the User Specified Installation Location (USIL) specified when the
product was installed.
– To modify an installation in a non-default location:
where usil is the path of the User Specified Installation Location (USIL) specified when the
product was installed.
• To uninstall or modify IBM MQ by using smit, complete the following steps:
a. Select the required smit window using the following sequence:
Results
After uninstallation, certain files under the directory trees /var/mqm and /etc/opt/mqm are not
removed. These files contain user data and remain so subsequent installations can reuse the data.
Most of the remaining files contain text, such as INI files, error logs, and FDC files. The directory
tree /var/mqm/shared contains files that are shared across installations, including the executable
shared libraries libmqzsd.a and libmqzsd_r.a.
What to do next
• If the product successfully uninstalled, you can delete any files and directories contained in
the /usr/mqm directory under the User Specified Installation Location (USIL) specified in the
installp uninstallation command.
• Use the lslpp command to check for other products installed in the USIL. If there are no other
products installed in the USIL and you do not intend to use it again, you can delete the USIL using the
rmusil command.
• If there are no other IBM MQ installations on the system, and you are not planning to reinstall
or migrate, you can delete the /var/mqm and /etc/opt/mqm directory trees, including the files
libmqzsd.a and libmqzsd_r.a. Deleting these directories destroys all queue managers and their
associated data.
• You can optionally remove installations, once IBM MQ is uninstalled, from the Installation configuration
file, mqinst.ini using the commands listed.
Note: If you are not going to install another version of IBM MQ, you can delete the existing installations
using the dltmqinst command. Otherwise, if you install IBM MQ to the same location, the old
installation name is applied.
Procedure
1. Check the system requirements.
See “Hardware and software requirements on IBM i systems” on page 62.
2. Plan your installation.
• As part of the planning process, you must choose which components to install and where to install
them. See “IBM MQ components for IBM i” on page 62.
• You must also make some platform-specific choices. See “Planning to install IBM MQ on IBM i” on
page 63.
3. Prepare your system for installation of IBM MQ.
See “Preparing the system on IBM i” on page 64.
4. Install IBM MQ server.
Procedure
Configure any additional settings needed for your IBM i system.
See “Configuring and tuning the operating system on IBM i” on page 64.
What to do next
When you have completed the tasks to prepare the system, you are ready to start installing IBM MQ. To
install a server, see “Installing IBM MQ server on IBM i” on page 65. To install a client, see “Installing an
IBM MQ client on IBM i” on page 78.
Related tasks
Planning
“Maintaining and migrating IBM MQ” on page 275
Maintenance, upgrade, and migration have three distinct meanings for IBM MQ. The definitions are
described here. The following sections describe the various concepts associated with migration, followed
by the various tasks needed; these tasks are platform-specific where needed.
“Applying maintenance to IBM MQ” on page 278
Maintenance is the application of a reversible fix. Any changes to queue manager data are compatible
with the previous code level.
Procedure
1. Sign on to the system with a user profile that has *ALLOBJ special authority, for example QSECOFR.
2. Install the IBM MQ for IBM i base product, and primary language.
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (*BASE) OUTPUT (*PRINT)
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (1) OUTPUT (*PRINT)
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (2) OUTPUT (*PRINT)
CHGJOB CCSID(939)
• If the language feature code is not in the table then the product has not been translated into your
language. You must choose one of the available language feature codes and install that version
instead. You must manually change the system library list to use IBM MQ in that language load.
CHGSYSLIBL LIB(QSYS2924)
See also How a language of your choice is displayed for licensed programs in How a language is
displayed for IBM i functions in the IBM i product documentation.
• If you are using Korean DBCS and you configure your terminal emulators to 24*80 sessions you
might find that EDTF incorrectly displays DBCS characters in MQ error log messages that extend
beyond 80 columns. To avoid this, configure your terminal emulators to use sessions capable of
displaying 132 columns, for example 27*132.
• Issue the following command specifying the appropriate language ID:
This installs the commands, message file, and panel groups into the relevant QSYS library for the
language. For example, library QSYS2928 is used for French. If this QSYS29nn library does not
exist, it is created by the RSTLICPGM command.
7. To ensure that the product has loaded correctly, issue the Display Software Resources (DSPSFWRSC)
command and check that the licensed program 5724H72 is listed. If you have installed the base and
the optional samples, you see:
Resource
ID Option Feature Description
5724H72 *BASE 5050 IBM MQ for IBM i
5724H72 *BASE 2924 IBM MQ for IBM i
5724H72 1 5050 IBM MQ for IBM i - Samples
8. Press F11, while viewing the Display Software Resources screen, and you see the library and version
number of the products installed:
Resource Feature
ID Option Feature Type Library Release
5724H72 *BASE 5050 *CODE QMQM V9R4M0
5724H72 *BASE 2924 *LNG QMQM V9R4M0
5724H72 1 5050 *CODE QMQMSAMP V9R4M0
9. If you have installed additional language versions, you also see entries for these versions. For
example, if you have installed the French version, for which the language ID is 2928, you see:
a)
Resource
ID Option Feature Description
5724H72 *BASE 2928 IBM MQ for IBM i
Resource Feature
ID Option Feature Type Library Release
5724H72 *BASE 2928 *LNG QSYS2928 V9R4M0
10. Use the command DSPMQMVER to check exactly what version you have installed. For V9R4M0, it
reports:
11. Do the post installation tasks of checking for updates, checking program authorities and starting the
IBM MQ subsystem, see “Performing post installation tasks for IBM MQ on IBM i” on page 76.
What to do next
If you want to see how the installation went in more detail, perform one or more of the following tasks:
• View the log file using the DSPJOBLOG command.
• View the spoolfile generated from the RSTLICPGM command.
If the installation of IBM MQ fails, see “Handling installation failures for IBM i” on page 77.
Related concepts
“Uninstalling IBM MQ for IBM i” on page 88
There are two ways of uninstalling IBM MQ for IBM i.
Procedure
1. Pre-agree the license terms and conditions for the base by running the command,
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (*BASE) OUTPUT (*PRINT)
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (1) OUTPUT (*PRINT)
• If installing Japanese language feature code 2962, ensure the CCSID of the job installing the
product is set to 939 and not 930. Do this to avoid problems with invariant lowercase characters
in CCSID 930
CHGJOB CCSID(939)
• If the language feature code is not in the table then the product has not been translated into your
language. You must choose one of the available language feature codes and install that version
instead. You must manually change the system library list to use IBM MQ in that language load.
CHGSYSLIBL LIB(QSYS2924)
See also How a language of your choice is displayed for licensed programs in How a language is
displayed for IBM i functions in the IBM i product documentation.
• If you are using Korean DBCS and you configure your terminal emulators to 24*80 sessions you
might find that EDTF incorrectly displays DBCS characters in MQ error log messages that extend
beyond 80 columns. To avoid this, configure your terminal emulators to use sessions capable of
displaying 132 columns, for example 27*132.
• Issue the following command specifying the appropriate language ID:
This installs the commands, message file, and panel groups into the relevant QSYS library for the
language. For example, library QSYS2928 is used for French. If this QSYS29nn library does not
exist, it is created by the RSTLICPGM command.
6. To ensure that the product has loaded correctly, issue the Display Software Resources (DSPSFWRSC)
command and check that the licensed program 5724H72 is listed. If you have installed the base and
the optional samples, you see:
7. Press F11, while viewing the Display Software Resources screen, and you see the library and version
number of the products installed:
Resource Feature
ID Option Feature Type Library Release
5724H72 *BASE 5050 *CODE QMQM V9R4M0
5724H72 *BASE 2924 *LNG QMQM V9R4M0
5724H72 1 5050 *CODE QMQMSAMP V9R4M0
8. If you have installed additional language versions, you also see entries for these versions. For
example, if you have installed the French version, for which the language ID is 2928, you see:
a)
Resource
ID Option Feature Description
5724H72 *BASE 2928 IBM MQ for IBM i
Resource Feature
ID Option Feature Type Library Release
5724H72 *BASE 2928 *LNG QSYS2928 V9R4M0
9. Use the command DSPMQMVER to check exactly what version you have installed. For V9R4M0, it
reports:
Version: 9.3.0.0
10. Do the post installation tasks of checking for updates, checking program authorities and starting the
IBM MQ subsystem, see “Performing post installation tasks for IBM MQ on IBM i” on page 76.
What to do next
If you want to see how the installation went in more detail, perform one or more of the following tasks:
• View the log file using the DSPJOBLOG command.
• View the spoolfile generated from the RSTLICPGM command.
If the installation of IBM MQ fails, see “Handling installation failures for IBM i” on page 77.
Procedure
1. Sign on to the system with a user profile that has *ALLOBJ special authority, for example QSECOFR.
2. Install Managed File Transfer for IBM i, base product.
RSTLICPGM LICPGM (5725M50) DEV (installation device) OPTION (*BASE) OUTPUT (*PRINT)
Resource
ID Option Feature Description
5725M50 *BASE 5050 Managed File Transfer for IBM i
5725M50 *BASE 2924 Managed File Transfer for IBM i
5725M50 2 5050 Managed File Transfer for IBM i - Tools
Resource
ID Option Feature Type Library Release
5725M50 *BASE 5050 *CODE QMQMMFT V9R4M0
5725M50 *BASE 2924 *LNG QMQMMFT V9R4M0
5725M50 2 5050 *CODE MFTTOOL V9R4M0
6. Do the post installation tasks of checking for updates, checking program authorities, and starting the
Managed File Transfer subsystem.
What to do next
If you want to see how the installation went in more detail, perform one or more of the following tasks:
• View the log file using the DSPJOBLOG command.
• View the spoolfile generated from the RSTLICPGM command.
If the installation of IBM MQ fails, see “Handling installation failures for IBM i” on page 77.
Procedure
1. Download one of the installation images and extract it to a temporary directory.
2. On IBM i, create a library containing sufficient empty save files to hold the uploaded files by using the
commands:
3. Start an ftp session to your IBM i machine and upload the required save files with the commands:
ftp (your_ibmi_hostname)
bin
put MQ92BASE MQ92PROD/MQ92BASE
put MQ92SAMP MQ92PROD/MQ92SAMP
put MQ92EN24 MQ92PROD/MQ92EN24
put MQ92CBASE MQ92PROD/MQ92CBASE
put MQ92CSAMP MQ92PROD/MQ92CSAMP
put MQ92JBASE MQ92PROD/MQ92JBASE
put MQ92JSAMP MQ92PROD/MQ92JSAMP
4. To prepare for installation of IBM MQ for IBM i, sign on to your IBM i machine and ensure that you have
followed the instructions detailed in “Preparing the system on IBM i” on page 64.
5. Enter the RSTLICPGM commands, specifying the installation device as *SAVF and naming the save file
containing the options that you want to install.
/* IBM MQ Java */
RSTLICPGM LICPGM(5724L26) DEV(*SAVF) SAVF(MQ92PROD/MQ92JBASE) +
OPTION(*BASE) OUTPUT(*PRINT)
/* IBM MQ Client */
RSTLICPGM LICPGM(5725A49) DEV(*SAVF) SAVF(MQ92PROD/MQ92CBASE) +
OPTION(*BASE) OUTPUT(*PRINT)
6. Do the post installation tasks of checking for updates, checking program authorities and starting the
IBM MQ subsystem, see “Performing post installation tasks for IBM MQ on IBM i” on page 76.
What to do next
If you want to see how the installation went in more detail, perform one or more of the following tasks:
• View the log file using the DSPJOBLOG command.
• View the spoolfile generated from the RSTLICPGM command.
If the installation of IBM MQ fails, see “Handling installation failures for IBM i” on page 77.
Procedure
1. See the IBM MQ website at IBM MQ product page for the latest product information.
2. Install and apply all fix packs.
STRSBS SBSD(QMQM/QMQM)
Note: The subsystem must be started after each IPL of the system, so you might choose to start it
as part of your system startup process.
5. Create the system-default objects. The system-default objects are created automatically
when you issue the CRTMQM command to create a queue manager. For example: CRTMQM
MQMNAME(QMGRNAME) ASP(*SYSTEM). You can refresh them using the STRMQM command
(Warning: this command will replace any existing default objects). For example: STRMQM
MQMNAME(QMGRNAME) RDEFSYS(*YES). Refer to the onscreen help for information about using this
command.
Note: on the command STRMQM MQMNAME(QMGRNAME) RDEFSYS(*YES):
• The command does not re-create the objects, it performs a CRTxxxx REPLACE(*YES) for all of the
SYSTEM.* objects.
• This means that it refreshes the parameters on the objects back to their defaults. So if, for example,
on the SYSTEM.DEFAULT.LOCAL.QUEUE object, TRGENBL had previously been changed to *YES,
then, when the command is run, it is changed back to TRGENBL(*NO).
• If any messages exist on a queue, they are not removed, because the queues are not physically
deleted.
• The contents of the SYSTEM.AUTH.DATA.QUEUE are untouched when this command is run.
• So, if the contents of this (or any other significant queue) become corrupt, it must be physically
deleted and re-created either from scratch, or from a backup.
Results
You are now ready to start using IBM MQ for IBM i.
Note: When you install IBM MQ for IBM i, two user profiles are created:
• QMQM
• QMQMADM
These two objects are central to the correct running of IBM MQ for IBM i. Do not alter or delete them. If
you do, IBM cannot guarantee correct behavior of your product.
If you uninstall IBM MQ and data, these profiles are deleted. If you uninstall IBM MQ only, these profiles
are retained.
Procedure
1. Delete installed options using DLTLICPGM LICPGM(5725A49)OPTION(*ALL).
Procedure
1. Obtain the full license from the fully licensed installation media.
The full license file is amqpcert.lic.
2. Run the setmqprd command from the installation that you are upgrading:
where LICENSE_PATH is the path to the amqpcert.lic file that you obtained.
Related reference
setmqprd
Procedure
1. Sign on to the system with a user profile that has *ALLOBJ special authority, for example QSECOFR.
2. Optional: Pre-agree the license terms and conditions. If you do not choose to pre-agree the license,
the license agreement is displayed for you to accept. Run the following commands to pre-agree the
license terms and conditions:
a) For the client:
RSTLICPGM LICPGM (5725A49) DEV (installation device) OPTION (*BASE) OUTPUT (*PRINT)
RSTLICPGM LICPGM (5725A49) DEV (installation device) OPTION (1) OUTPUT (*PRINT)
Resource
ID Option Feature Description
5725A49 *BASE 5050 IBM MQ client for IBM i
5725A49 1 5050 IBM MQ client for IBM i -Samples
5. To see the library and version number of the products installed, press F11, while viewing the Display
Software Resources screen. The following screen is displayed:
Resource Feature
ID Option Feature Type Library Release
5725A49 *BASE 5050 *CODE QMQM V9R4M0
5725A49 1 5050 *CODE QMQMSAMP V9R4M0
6. To check exactly what version you have installed, use the DSPMQMVER program.
For example, /QSYS.LIB/QMQM.LIB/DSPMQVER.PGM -a in a qshell.
What to do next
If you want to see how the installation went in more detail, perform one or more of the following tasks:
• View the log file using the DSPJOBLOG command.
• View the spoolfile generated from the RSTLICPGM command.
If the installation of IBM MQ client for IBM i failed, see “Handling installation failures for IBM i” on page
77
Related concepts
“Uninstalling IBM MQ for IBM i” on page 88
If this command fails to delete the IFS directory /QIBM/ProdData/mqm/java and its subdirectories,
use the EDTF command and select option 9 against the Java directory. For example:
EDTF STMF('/QIBM/ProdData/mqm')
Procedure
1. Sign on to the system with a user profile that has *ALLOBJ special authority, for example QSECOFR.
2. Optional: Pre-agree the license terms and conditions. If you do not choose to pre-agree the license,
the license agreement is displayed for you to accept. Run the following commands to pre-agree the
license terms and conditions:
a) For Java messaging and web services:
RSTLICPGM LICPGM (5724L26) DEV (installation device) OPTION (*BASE) OUTPUT (*PRINT)
RSTLICPGM LICPGM (5724L26) DEV (installation device) OPTION (1) OUTPUT (*PRINT)
Resource
ID Option Feature Description
5724L26 *BASE 5050 IBM MQ Java Messaging and Web Services
5724L26 1 5050 IBM MQ Java Messaging and Web Services - Samp
5. Press F11 while viewing the Display Software Resources screen, and you see the library and version
number of the products installed:
Resource Feature
ID Option Feature Type Library Release
5724L26 *BASE 5050 *CODE QMQMJAVA V9R4M0
5724L26 1 5050 *CODE QMQMJAVA V9R4M0
6. Check what versions you have installed by using the following commands:
IBM MQ Classes for Java:
java com.ibm.mq.MQJavaLevel
Note: For this command to work, you might have to set your environment classpath to:
• /QIBM/ProdData/mqm/java/lib/com.ibm.mq.jar
IBM MQ Classes for Java Message Service:
java com.ibm.mq.jms.MQJMSLevel
Note: For this command to work, you might need to set your environment classpath to:
• /QIBM/ProdData/mqm/java/lib/com.ibm.mq.jakarta.client.jar (Jakarta Messaging
3.0) or /QIBM/ProdData/mqm/java/lib/com.ibm.mq.allclient.jar (JMS 2.0)
See Environment variables relevant to IBM MQ classes for Java and Environment variables used by
IBM MQ classes for JMS.
For IBM MQ for IBM i 9.2, both report:
Version: 9.2.0.0
Note: The command uses the Java classes, and so it reports the version and also performs some
verification that the classes are installed and working.
7. See the following topics for full details of verification of both:
• Using IBM MQ classes for Java
• Using IBM MQ classes for JMS
Procedure
1. Create a user ID on the server that is not in the mqm group.
This user ID must exist on the server and client. This is the user ID that the sample applications must
be run as, otherwise a 2035 error is returned.
2. Log in as a user in the MQM group.
3. Create a queue manager called QUEUE.MANAGER.1 by entering the following command:
crtmqm QUEUE.MANAGER.1
You see messages telling you that the queue manager has been created.
4. Start the queue manager by entering the following command:
strmqm QUEUE.MANAGER.1
where non_mqm_user is the user ID created in step 1. A message tells you when the authorization
has been set. You must also run the following command to give the user ID authority to connect:
where client_ipaddr is the IP address of the client system, and non_mqm_user is the user ID created
in step 1. A message tells you when the rule has been set.
9. Define a listener by entering the following command:
where port_number is the number of the port the listener is to run on. This number must be the same
as the number used when defining your client-connection channel in “Installing an IBM MQ client on
IBM i” on page 78.
Note: If you omit the port parameter from the command, a default value of 1414 is used for the
listener port. If you want to specify a port other than 1414, you must include the port parameter in
the command, as shown.
10. Start the listener by entering the following command:
end
What to do next
Follow the instructions to set up the client. See “Connecting to a queue manager, using the MQSERVER
environment variable on IBM i” on page 86.
Procedure
1. Log in as the userid that you created in Step 1 of “Setting up the server using the command line IBM i”
on page 84.
2. Check the TCP/IP connection. From the client, enter one of the following commands:
• ping server-hostname
• ping n.n.n.n
n.n.n.n represents the network address. You can set the network address in IPv4 dotted decimal
form, for example, 192.0.2.0. Alternatively, set the address in IPv6 hexadecimal form, for
example 2001:0DB8:0204:acff:fe97:2c34:fde0:3485.
If the ping command fails, correct your TCP/IP configuration.
3. Set the MQSERVER environment variable. From the client, enter one the following command:
Where:
• CHANNEL1 is the server-connection channel name.
• server-address is the TCP/IP host name of the server.
• port is the TCP/IP port number the server is listening on.
If you do not give a port number, IBM MQ uses the one specified in the qm.ini file, or the client
configuration file. If no value is specified in these files, IBM MQ uses the port number identified in the
TCP/IP services file for the service name MQSeries. If an MQSeries entry in the services file does not
exist, a default value of 1414 is used. It is important that the port number used by the client and the
port number used by the server listener program are the same.
What to do next
Use the sample programs to test communication between the client and server; see “Testing
communication between a client and a server on IBM i” on page 87.
Procedure
1. Start the PUT program for QUEUE1 on QUEUE.MANAGER.1 by entering the following command:
Tip: You might get the error, MQRC_NOT_AUTHORIZED ( 2035 ). By default, channel authentication
is enabled when a queue manager is created. Channel authentication prevents privileged users
accessing a queue manager as an IBM MQ MQI client. For verifying the installation, you can either
change the MCA user ID to a non-privileged user, or disable channel authentication. To disable channel
authentication run the following MQSC command:
When you finish the test, if you do not delete the queue manager, re-enable channel authentication:
Your message is now on the queue that is on the server queue manager.
3. Start the GET program for QUEUE1 on QUEUE.MANAGER.1 by entering the following command:
The sample program starts, and your message is displayed. After a short pause (approximately 30
seconds), the sample ends and the command prompt is displayed again.
Results
You have now successfully verified the client installation.
ENDMQM MQMNAME(QUEUE.MANAGER.1)
2. On the server, delete the queue manager by entering the following command:
DLTMQM MQMNAME(QUEUE.MANAGER.1)
Procedure
1. Quiesce IBM MQ for IBM i.
For more information, see Quiescing IBM MQ for IBM i .
2. End the IBM MQ subsystem, by issuing the command:
ENDSBS SBS(QMQM)
3. Ensure that no locks are held on the library QMQM, by issuing the command:
4. Use the Delete Licensed Program (DLTLICPGM) command to delete the base product (and also the
samples, AMS, and WEB components if you chose to install them).
To delete only the samples, issue the command:
To delete the base product and all other installed components, issue the command:
Results
Deleting IBM MQ for IBM i in this way deletes only the objects that belong to IBM MQ: the QMQM
library, the QMQM samp library, and the subdirectories that belong to IBM MQ server within the /QIBM/
ProdData/mqm directory.
If that leaves no other subdirectories (for example, if IBM MQ Java is installed it uses subdirectories
there) then the /QIBM/ProdData/mqm directory itself is deleted.
None of the queue manager journal libraries, or IFS directories based upon /QIBM/UserData are
removed.
Procedure
1. Quiesce IBM MQ for IBM i.
For more information, see Quiescing IBM MQ for IBM i .
2. Delete each queue manager in turn by using the command WRKMQM and selecting option 4.
3. End the IBM MQ subsystem, by issuing the command:
ENDSBS SBS(QMQM)
4. Ensure that no locks are held on the library QMQM, by issuing the command:
5. Optional: If you want to also uninstall IBM MQ Java, you can do it now, using the command:
This will also uninstall the Java Samples, if they were installed.
6. Use the Delete Licensed Program (DLTLICPGM) command to delete the base product (and also
the samples if you chose to install them). To delete the base product and the samples issue the
command:
7. Delete the directory /QIBM/UserData/mqm and its subdirectories. Do this using the EDTF command
and selecting option 9 (recursive delete) for the mqm directory, as follows,
Note: If you do this, you no longer have any information regarding your installation. Use this
command with extreme caution.
The format of the command is:
EDTF STMF('/QIBM/UserData')
Alternatively, you can delete the /QIBM/UserData/mqm directory and its subdirectories by repeated
use of the RMVLNK and RMVDIR commands.
8. Identify all the users who belong to the QMQMADM group. Use the DSPUSRPRF command to display
a list of them. You must remove the QMQMADM group profile from their user profiles before you can
delete the QMQMADM user profile. The format of the command is:
9. You must alter the ownership or delete the objects. For each of the user profiles QMQM and
QMQMADM, use the WRKOBJOWN command to list all the objects owned by the profile. The format
of the command is:
10. Delete the two user profiles. The format of the command is:
Procedure
1. Make sure you are signed on to the system with a user profile that has *ALLOBJ special authority, for
example QSECOFR.
2. Issue the command:
Results
Deleting IBM MQ Java for IBM i deletes the objects that belong to it: the QMQMJAVA library, and the
subdirectories that belong to IBM MQ Java within the /QIBM/ProdData/mqm directory.
If that leaves no other subdirectories (for example if the IBM MQ Server is installed it uses subdirectories
there) then the /QIBM/ProdData/mqm directory itself is deleted.
Procedure
1. Make sure you are signed on to the system with a user profile that has *ALLOBJ special authority, for
example QSECOFR.
2. Use the Delete Licensed Program ( DLTLICPGM ) command to delete the IBM MQ MQI client for IBM i
product (and also the samples if you chose to install them):
To delete only the samples, issue the command
To delete IBM MQ MQI client and the samples, issue the command:
Results
Deleting IBM MQ MQI client for IBM i deletes the objects that belong to it - the QMQM library, and the
subdirectories that belong to IBM MQ MQI client for IBM i within the /QIBM/ProdData/mqm directory.
If that leaves no other subdirectories (for example if the IBM MQ Java Client for IBM i is installed it uses
subdirectories there) then the /QIBM/ProdData/mqm directory itself is deleted.
Procedure
1. Make sure you are signed on to the system with a user profile that has *ALLOBJ special authority, for
example QSECOFR.
2. Issue the command:
When you reinstall IBM MQ for IBM i, the system checks whether the IBM MQ configuration file (mqs.ini)
exists. If the file exists, it is kept and used with the newly installed system. If the file does not exist, an
empty mqs.ini file is placed in the directory /QIBM/UserData/mqm.
All data that you have in the UserData directory is referenced by the newly installed system. In addition,
all the queue manager-associated libraries containing journal and receiver information are referenced by
the new system.
Related tasks
“Installing IBM MQ server on IBM i” on page 65
You install IBM MQ for IBM i by installing the IBM MQ server in its primary language, installing samples
and installing additional languages.
Procedure
• To install IBM MQ on Linux using rpm, see “Installing IBM MQ on Linux using rpm” on page 107.
• To install IBM MQ on Linux Ubuntu using a Debian installer , see “Installing IBM MQ on Linux Ubuntu
using Debian” on page 124.
Procedure
1. Check that you have the latest information, including information on hardware and software
requirements.
See “Where to find product requirements and support information” on page 9.
2. Check that your systems meet the initial hardware and software requirements for Linux.
See “Hardware and software requirements on Linux systems” on page 94.
What to do next
When you have completed these tasks, you are ready to start preparing your system for installation. For
the next steps in installing IBM MQ, see “Preparing the system on Linux” on page 97.
Related concepts
“IBM MQ installation overview” on page 6
An overview of concepts and considerations for installing IBM MQ, with links to instructions on how to
install, verify, and uninstall IBM MQ on each of the supported platforms.
Related tasks
“Applying maintenance to IBM MQ” on page 278
Maintenance is the application of a reversible fix. Any changes to queue manager data are compatible
with the previous code level.
Host names
IBM MQ does not support host names that contain spaces. If you install IBM MQ on a system with a host
name that contains spaces, you are unable to create any queue managers.
For Ubuntu.
Check the System Requirements for IBM MQ to see which Linux distributions are supported on IBM MQ.
For example there is no 32-bit support for SUSE Linux Enterprise Server 15 (all architectures), or for Red
Hat Enterprise Linux Server for IBM Z 8.
java -version
Procedure
1. Decide which IBM MQ components and features to install.
See “IBM MQ components and features” on page 6 and “Where to find downloadable installation
images” on page 9.
Important: Ensure that your enterprise has the correct license, or licenses, for the components that
you are going to install. For more information, see “License requirements” on page 8 and IBM MQ
license information.
Attention: If you choose not to install the JRE, or to remove the JRE if it was already installed:
• You must use the runmqakm command to manage key repositories. The runmqktool
command is not available.
• Use of the runmqras command fails unless a JRE at version 7, or later, is available on the
system path.
On Linux, you can install IBM MQ without installing the MQSeriesJRE RPM, unless you are installing
the portions of the product that require the presence of the JRE, in which case the RPM prerequisites
test fails. You can also install the MQSeriesGSKit RPM without the JRE.
Upgrading from an earlier version of IBM MQ to IBM MQ 9.1.0 or later adds the separately installed
JRE feature to the installed product.
For more information, see runmqakm and runmqktool commands on AIX, Linux, and Windows.
Procedure
1. Set up a user ID of the name mqm, with a primary group of mqm.
See “Setting up the user and group on Linux” on page 98.
Note: If the group mqm and/or user mqm do not exist, during the installation of the product, the installer
creates group mqm and user mqm with a home directory of /var/mqm.
2. Create file systems for both the product code and working data to be stored. See “Creating file systems
on Linux” on page 99.
3. Configure any additional settings needed for your Linux system.
See “Configuring and tuning the operating system on Linux” on page 101.
Shell interpreter
Ensure that /bin/sh shell is a valid shell interpreter compatible with the Bourne shell, otherwise the
post-installation configuration of IBM MQ does not complete successfully. If the shell was not installed
using RPM, you might see a prerequisites failure of /bin/sh shell when you try to install IBM MQ . The
failure is because the RPM tables do not recognize that a valid shell interpreter is installed. If the failure
occurs, you can reinstall the /bin/sh shell by using RPM, or specify the RPM option --nodeps to disable
dependency checking during installation of IBM MQ .
Note: The --dbpath option is not supported when installing IBM MQ on Linux.
Swap space
During high load IBM MQ can use virtual memory (swap space). If virtual memory becomes full it could
cause IBM MQ processes to fail or become unstable, affecting the system.
To prevent this situation your IBM MQ administrator should ensure that the system has been allocated
enough virtual memory as specified in the operating system guidelines.
Notes:
sysctl Kernel-name
To add or alter these values, log on as a user with root authority. Open the file /etc/sysctl.conf with a
text editor, then add or change the following entries to your chosen values:
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 268435456
kernel.sem = 32 4096 32 128
TCP/IP configuration
If you want to use keepalive for IBM MQ channels, you can configure the operation of the KEEPALIVE
using the kernel parameters:
net.ipv4.tcp_keepalive_intvl
net.ipv4.tcp_keepalive_probes
net.ipv4.tcp_keepalive_time
[Service]
Environment="MQ_ENV_VAR=1"
LimitNOFILE=65536
LimitNPROC=32768
LimitSTACK=16777216
For more details on configuring the systemd unit file, consult your operating system documentation.
4. Restart the pacemaker service:
systemctl daemon-reload
systemctl restart pacemaker.service
Any RDQM queue managers running on this node move to another node while pacemaker is restarted.
5. Repeat the procedure on the other two RDQM nodes so that the same configuration is used by the
RDQM queue manager when it fails over or switches over to other nodes.
Note: You should use qm.ini attributes in preference to environment variables to control queue manager
behavior because the qm.ini file is replicated between RDQM nodes.
kernel.printk = 3 4 1 7
To load these sysctl values immediately, enter the command sysctl -p. If you do not issue the
sysctl -p command, the new values are loaded when the system is rebooted.
fs.file-max = 524288
ulimit -n
For a standard IBM MQ queue manager, set the nofile value for the mqm user to 10240 or more. To set
the maximum number of open file descriptors for processes running under the mqm user, add the following
information to the /etc/security/limits.conf file:
The pluggable security module limits are not applied to queue managers started with systemd. To start
an IBM MQ queue manager with systemd set LimitNOFILE to 10240 or more in the unit file that
contains the queue manager service configuration.
For instructions on how to configure nofile for RDQM queue managers, see RDQM - configuring resource
limits and environment variables.
Maximum processes
A running IBM MQ queue manager consists of a number of thread programs. Each connected application
increases the number of threads running in the queue manager processes. It is normal for an operating
system to limit the maximum number of processes that a user runs. The limit prevents operating system
failures due to an individual user or subsystem creating too many processes. You must ensure that the
where:
• clientConnections is the maximum number of connections from clients on other machines connecting to
queue managers on this machine.
• qmgrChannels is the maximum number of running channels (as opposed to channel definitions) to other
queue managers. This includes cluster channels, sender/receiver channels, and so on.
• localBindingConnections does not include application threads.
The following assumptions are made in this algorithm:
• 2048 is a large enough contingency to cover the queue manager threads. This might need to be
increased if a lot of other applications are running.
• When setting nproc, take into account the maximum number of applications, connections, channels and
queue managers that might be run on the machine in the future.
• This algorithm takes a pessimistic view and the actual nproc needed might be slightly lower for later
versions of IBM MQ and fastpath channels.
• On Linux, each thread is implemented as a light-weight process (LWP) and each LWP is counted as one
process against nproc.
You can use the PAM_limits security module to control the number of processes that users run. You can
configure the maximum number of processes for the mqm user as follows:
For more details on how to configure the PAM_limits security module type, enter the following
command:
man limits.conf
The pluggable security module limits are not applied to queue managers started with systemd. To start
an IBM MQ queue manager with systemd set LimitNPROC to a suitable value in the unit file that
contains the queue manager service configuration.
For instructions on how to configure nproc for RDQM queue managers, see RDQM - configuring resource
limits and environment variables.
You can check your system configuration using the mqconfig command.
For more information on configuring your system, see How to configure AIX and Linux systems for IBM
MQ.
Related concepts
“Setting up the user and group on Linux” on page 98
On Linux systems, IBM MQ requires a user ID of the name mqm, with a primary group of mqm. The mqm user
ID owns the directories and files that contain the resources associated with the product.
“Creating file systems on Linux” on page 99
Before installing IBM MQ, you might need to create file systems for both the product code and working
data to be stored. There are minimum storage requirements for these file systems. The default installation
Procedure
• Accept the license before installing the product
To accept the license before installing the product, follow the instructions for installing the server by
preparing your system, then follow the appropriate instructions for your operating system:
rpm
See “Installing the first IBM MQ installation on Linux using the rpm command” on page 111.
yum
See “Installing IBM MQ on Linux Red Hat using yum” on page 121.
Ubuntu using Debian
See “Installing IBM MQ on Linux Ubuntu using Debian” on page 124.
• Accept the license after installing the product
You can use the MQLICENSE environment variable to accept or view an IBM MQ license after you
install the product. MQLICENSE can be set to one of two values:
accept
Accept the license post-installation.
view
Display the license, if the license has been accepted.
To accept the license post-installation, use this command:
export MQLICENSE=accept
export MQLICENSE=view
Attention: Do not use the mqlicense.sh script from the installation media, because this
script can only be used to accept the license before installation.
Procedure
1. Check the system requirements.
See “Checking requirements on Linux” on page 93.
2. Plan your installation.
• As part of the planning process, you must choose which components to install and where to install
them. See “IBM MQ rpm components for Linux systems” on page 107.
• You must also make some platform-specific choices. See “Planning to install IBM MQ on Linux” on
page 96.
3. Prepare your system for installation of IBM MQ.
See “Preparing the system on Linux” on page 97.
4. Install IBM MQ server.
See “Installing the first IBM MQ installation on Linux using the rpm command” on page 111, and
“Installing additional IBM MQ installations on Linux using the rpm command” on page 115.
5. Optional: Install an IBM MQ client.
See “Installing an IBM MQ client on Linux using rpm” on page 118.
6. Verify your installation. See “Verifying an IBM MQ installation on Linux” on page 139.
Table 13 on page 108 shows the components that are available when installing an IBM MQ server or
client on a Linux system:
Notes:
1. The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
3. For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product
at IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix
Pack 15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
4. From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ installation package. It
remains available as a separate download, and can be installed from the stand-alone IBM MQ Explorer
download available from Fix Central. For more information, see Installing and uninstalling IBM MQ
Explorer as a stand-alone application on Linux and Windows.
Related concepts
“IBM MQ components and features” on page 6
You can select the components or features that you require when you install IBM MQ.
“Planning considerations for installation on Multiplatforms” on page 14
Before you install IBM MQ, you must choose which components to install and where to install them. You
must also make some platform-specific choices.
Installing the first IBM MQ installation on Linux using the rpm command
You can install an IBM MQ server on a 64-bit Linux system using rpm. The instructions in this topic are for
the first installation of IBM MQ on a Linux system.
MQSeriesRuntime
MQSeriesJRE
MQSeriesJava
MQSeriesGSKit
MQSeriesServer
1. The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
3. For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product
at IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix
Pack 15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
4. From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ installation package. It
remains available as a separate download, and can be installed from the stand-alone IBM MQ Explorer
download available from Fix Central. For more information, see Installing and uninstalling IBM MQ
Explorer as a stand-alone application on Linux and Windows.
Procedure
1. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
2. Optional: If your installation media is a downloadable installation image, obtained from Passport
Advantage, you must decompress the tar.gz file and extract the installation files from the tar file:
a) For example, if you download part number CC7K6ML, you decompress the file by using the
following command:
gunzip CC7K6ML.tar.gz
b) Similarly, extract the installation files from the tar file by using the following command:
Important: You must use GNU tar (also known as gtar) to unpack any tar images.
3. Set your current directory to the location of the installation packages.
./mqlicense.sh
• To display the license agreement as text in the current shell, which can be read by a screen reader,
use the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
5. Optional: Obtain the IBM MQ public signing gpg key and install it into rpm.
The IBM-provided RPMs are signed with a digital signature, and your system will not recognize
that signature without further steps. This only needs to be done once for each system. For more
information, see “IBM MQ code signatures” on page 12.
The validity of any of the IBM MQ RPMs can then be verified, for example:
Note: If you skip this step, then a harmless warning might be issued during RPM installation to indicate
there is a signature but the system does not recognize the signing key, for example:
warning: MQSeriesRuntime-9.4.0-0.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0209b828:
NOKEY
6. Install IBM MQ.
To support the running of a queue manager, you must install at least the MQSeriesRuntime and the
MQSeriesServer components.
Important: The components that you need to install might not all be in the same folder on the
installation media. Some components might be under the /Advanced folder. For more information
about installing IBM MQ Advanced components, see “Installing IBM MQ Advanced for Multiplatforms”
on page 236.
• For IBM MQ 9.4, install IBM MQ in the default location /opt/mqm by using the rpm -Uvh
command:
For example, to install all components that are available in your current location on the installation
media to the default location, use the following command:
To install the runtime and server components to the default location, use the following command:
• Install IBM MQ in a non-default location by using the --prefix option. All of the IBM MQ
components that you require must be installed in the same location:
Results
You installed IBM MQ on your Linux system.
What to do next
• If required, you can now set this installation to be the primary installation. Enter the following command
at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
MQSeriesRuntime
MQSeriesJRE
MQSeriesJava
MQSeriesGSKit
MQSeriesServer
MQSeriesWeb
MQSeriesFTBase
MQSeriesFTAgent
MQSeriesFTService
MQSeriesFTLogger
MQSeriesFTTools
MQSeriesAMQP
MQSeriesAMS
MQSeriesXRService
MQSeriesExplorer
MQSeriesClient
MQSeriesMan
MQSeriesMsg
MQSeriesSamples
MQSeriesSDK
Notes:
1. The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
3. For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product
at IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix
Pack 15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
4. From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ installation package. It
remains available as a separate download, and can be installed from the stand-alone IBM MQ Explorer
download available from Fix Central. For more information, see Installing and uninstalling IBM MQ
Explorer as a stand-alone application on Linux and Windows.
Procedure
1. Optional: Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
2. Optional: If your installation media is a downloadable installation image, obtained from Passport
Advantage, you must decompress the tar.gz file and extract the installation files from the tar file:
a) For example, if you download part number CC7K6ML, you decompress the file by using the
following command:
gunzip CC7K6ML.tar.gz
b) Similarly, extract the installation files from the tar file by using the following command:
Important: You must use GNU tar (also known as gtar) to unpack any tar images.
3. Set your current directory to the location of the installation files. The location might be a network
location, or a local file system directory.
4. Optional: Run the crtmqpkg command to create a unique set of packages to install on the system.
The crtmqpkg command is required only if this is not the first installation of IBM MQ on the system. If
you have earlier versions of IBM MQ installed on your system, then installing the latest version works
correctly if you install it in a different location.
Before you can run the crtmqpkg command on Linux, you must have the pax and rpmbuild
commands installed. For more information, see Before you begin.
To run the crtmqpkg command on a Linux system:
a) Enter the following command:
./crtmqpkg suffix
where suffix is a name of your choosing that uniquely identifies the installation packages on the
system. suffix is not the same as an installation name, although the names can be identical. suffix is
limited to 16 characters in the ranges A-Z, a-z, and 0-9.
Note: This command creates a full copy of the installation packages in a temporary directory. By
default, the temporary directory is located at /var/tmp. You must ensure that the system has
b) Set your current directory to the location specified when the crtmqpkg command operation
completes successfully.
This directory is a subdirectory of the /var/tmp/mq_rpms directory, in which the unique set
of packages is created. The packages have the suffix value contained within the file name. For
example, using a suffix of "1":
./crtmqpkg 1
From: MQSeriesRuntime-9.4.0-0.x86_64.rpm
To: MQSeriesRuntime-1-9.4.0-0.x86_64.rpm
5. You have the option of accepting the license before or after installing the product. To accept the
license before installing, run the mqlicense.sh script. The license agreement is displayed in a
language appropriate to your environment and you are prompted to accept or decline the terms of the
license:
• To display the license agreement in the default manner, which uses an X-window where possible,
use the following command:
./mqlicense.sh
• To display the license agreement as text in the current shell, which can be read by a screen reader,
use the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
6. Install IBM MQ.
To support the running of a queue manager, you must install at least the MQSeriesRuntime and the
MQSeriesServer components.
Important: The components that you need to install might not all be in the same folder on the
installation media. Some components might be under the /Advanced folder. For more information
about installing IBM MQ Advanced components, see “Installing IBM MQ Advanced for Multiplatforms”
on page 236.
• For IBM MQ 9.4, install IBM MQ in the default location /opt/mqm:
For example, to install all components that are available in your current location on the installation
media to the default location, use the following command:
To install the runtime and server components to the default location, use the following command:
• Install IBM MQ in a non-default location by using the --prefix option. For each installation, all of
the IBM MQ components that you require must be installed in the same location.
The installation path specified must be either an empty directory, the root of an unused file system,
or a path that does not exist. The length of the path is limited to 256 bytes and must not contain
spaces.
Results
You installed IBM MQ on your Linux system.
What to do next
• If required, you can now set this installation to be the primary installation. Enter the following command
at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
Procedure
1. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
2. Set your current directory to the location of the installation packages.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
3. You have the option of accepting the license before or after installing the product. To accept the
license before installing, run the mqlicense.sh script:
./mqlicense.sh
The license agreement is displayed in a language appropriate to your environment and you are
prompted to accept or decline the terms of the license.
If possible, mqlicense.sh opens an X-window to display the license.
If you need the license to be presented as text in the current shell, which can be read by a screen
reader, type the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
4. If you have multiple installations on this system, you must run crtmqpkg to create a unique set of
packages to install on the system:
a) Enter the following command:
./crtmqpkg suffix
where suffix is a name of your choosing, that will uniquely identify the installation packages on the
system. suffix is not the same as an installation name, although the names can be identical. suffix is
limited to 16 characters in the ranges A-Z, a-z, and 0-9.
b) Set your current directory to the location specified when the crtmqpkg command completes.
This directory is a sub-directory of /var/tmp/mq_rpms, in which the unique set of packages is
created. The packages have the suffix value contained within the filename.
5. Optional: Obtain the IBM MQ public signing gpg key and install it into rpm.
The IBM-provided RPMs are signed with a digital signature, and your system will not recognize
that signature without further steps. This only needs to be done once for each system. For more
information, see “IBM MQ code signatures” on page 12.
The validity of any of the IBM MQ RPMs can then be verified, for example:
Note: If you skip this step, then a harmless warning might be issued during RPM installation to indicate
there is a signature but the system does not recognize the signing key, for example:
warning: MQSeriesRuntime-9.4.0-0.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0209b828:
NOKEY
6. Install IBM MQ.
The minimum components you must install are the MQSeriesRuntime, the MQSeriesClient, and the
MQSeriesGSKit.
• To install to the default location, /opt/mqm, use the rpm -ivh command to install each component
that you require.
For example, to install all components to the default location use the following command:
If you are using Ubuntu, add the --force-debian attribute. For example, to install all components
to the default location use the following command:
You must include this option to prevent seeing warning messages from the version of RPM for your
platform, which indicates that the RPM packages are not intended to be directly installed using RPM.
• To install to a non-default location use the rpm --prefix option. For each installation, all of the
IBM MQ components that you require must be installed in the same location.
The installation path specified must either be an empty directory, the root of an unused file system,
or a path that does not exist. The length of the path is limited to 256 bytes and must not contain
spaces.
For example, to install the runtime and server components to /opt/customLocation on a 64-bit
Linux system:
where:
V
Represents the version of the product that you are installing
R
Represents the release of the product that you are installing
M
Represents the modification of the product that you are installing
F
Represents the fix pack level of the product that you are installing
What to do next
• If you have chosen this installation to be the primary installation on the system, you must now set it as
the primary installation. Enter the following command at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
Procedure
1. Optional: Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
2. Optional: If your installation media is a downloadable installation image, obtained from Passport
Advantage, you must decompress the tar.gz file and extract the installation files from the tar file:
a) For example, if you download part number CC7K6ML, you decompress the file by using the
following command:
gunzip CC7K6ML.tar.gz
b) Similarly, extract the installation files from the tar file by using the following command:
Important: You must use GNU tar (also known as gtar) to unpack any tar images.
3. Optional: If this is not the first installation on the system, or if you want to install IBM MQ to a non
default location, run the crtmqpkg to create a unique set of packages to install on the system:
where:
4. Set your current directory to the location of the installation packages. If you used the crtmqpkg
command, this directory is the location that is specified when the crtmqpkg command operation
completes successfully.
5. Configure the yum repository:
A sample repository file is available in the MQServer directory of the installation packages. You can
use this sample to assist you in configuring the yum repository.
a) Create or update the repository:
• If this is the first IBM MQ installation on the system, create a file with the suffix .repo, for
example, IBM_MQ.repo, in the /etc/yum.repos.d directory.
• If this is an additional IBM MQ installation on the system, append the details of the additional
installation to the appropriate .repo file in the /etc/yum.repos.d directory.
b) Add the following contents to the repository file:
[IBM-MQ-v.r.m-architecture]
name=IBM MQ v.r.m architecture
baseurl=file:///installationFilesLocation
enabled=1
gpgcheck=0
c) Replace the installationFilesLocation variable with the location of the installation files.
d) Replace the v.r.m variable with the version, release, and modification number for the version of IBM
MQ that you want to install.
e) Replace the architecture variable with the architecture of the system you are installing on. This
value is one of the following values:
• x86_64
• ppc64le
• s390x
f) Optional: Enable gpg key verification.
Replace gpgcheck=0 with gpgcheck=1 and add an additional gpgkey=<uri> line pointing to the
certificate provided, for example:
gpgcheck=1
gpgkey=file:///directory/to/ibm_mq_public.pgp
g) Optional: If you appended contents to the repository file, clear the repository cache by using the
following command:
h) Check that the IBM MQ repository is available by using the following command:
yum repolist
6. You have the option of accepting the license before or after installing the product. To accept the
license before installing, run the mqlicense.sh script. The license agreement is displayed in a
./mqlicense.sh
• To display the license agreement as text in the current shell, which can be read by a screen reader,
use the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
7. Install IBM MQ:
• To install all available components in the default location, use the following command:
• To install all available components in a non default location, use the following command:
where suffix specifies the suffix that was chosen when you ran crtmqpkg in step “3” on page 121.
• To install a subset of components, specify the components that you want to install. Any
dependencies are automatically installed. To support the running of a queue manager, you must
install at least the MQSeriesRuntime and the MQSeriesServer components. For example, to install
the server component in the default location, use the following command:
• To install an older version of IBM MQ when multiple versions are available in the repository file, use
the following command:
where v.r.m-f specifies the version, release, modification, and fix pack level to install.
Results
You installed IBM MQ on your Linux system.
What to do next
• If required, you can now set this installation to be the primary installation. Enter the following command
at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
Procedure
1. Check the system requirements.
See “Checking requirements on Linux” on page 93.
2. Plan your installation.
As part of the planning process, you must choose which components to install and where to install
them. See “IBM MQ Debian components for Linux Ubuntu systems” on page 125.
3. Prepare your system for installation of IBM MQ.
See “Preparing the system on Linux” on page 97.
4. Install IBM MQ server.
See “Installing an IBM MQ server on Linux Ubuntu using Debian packages” on page 128.
5. Optional: Install an IBM MQ client.
See “Installing an IBM MQ client on Linux Ubuntu using Debian packages ” on page 134.
6. Verify your installation. See “Verifying an IBM MQ installation on Linux” on page 139.
Installation tools
Use apt, dpkg, or a higher level installation tool, to install and uninstall the product. The installed product
on disk appears identical to an rpm-installed copy.
Package names
The package names have been changed to use an IBM MQ derived name.
For example, the Debian equivalent of the existing rpm server component, MQSeriesServer, is ibmmq-
server.
On a single system, you can have a single version of IBM MQ installed by Debian, or you can achieve
multi-version installation with Debian through the use of container based technologies, such as Docker.
Notes:
1. The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
3. For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product
at IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix
Pack 15.
Related concepts
“IBM MQ components and features” on page 6
You can select the components or features that you require when you install IBM MQ.
Notes:
1. The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
3. For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product
at IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix
Pack 15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
4. From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ installation package. It
remains available as a separate download, and can be installed from the stand-alone IBM MQ Explorer
download available from Fix Central. For more information, see Installing and uninstalling IBM MQ
Explorer as a stand-alone application on Linux and Windows.
Procedure
1. Open a shell terminal. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
2. Set your current directory to the location of the installation packages.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
./mqlicense.sh
The license agreement is displayed in a language appropriate to your environment and you are
prompted to accept or decline the terms of the license.
If possible, mqlicense.sh opens an X-window to display the license.
If you need the license to be presented as text in the current shell, which can be read by a screen
reader, type the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
4. Choose how to install the IBM MQ packages:
Either use the apt management tool to install the IBM MQ packages that you want, or use the dpkg
command to install the IBM MQ packages that you want along with their dependency packages.
• To use the apt-get management tool to install the IBM MQ packages that you want along with
their dependency packages:
a. Create a file with the suffix .list, for example, IBM_MQ.list, in the /etc/apt/
sources.list.d directory.
This file should contain a deb entry for the location of the directory that contains the IBM MQ
packages.
For example:
The inclusion of the [trusted=yes] statement (including the brackets) is optional and
suppresses warnings and prompts during subsequent operations.
b. Run the command apt-get update to add this directory, and the list of packages the directory
contains, to the apt cache.
Refer to the Attention note in “apt-get” on page 129 for possible errors you might receive.
You can now use apt to install IBM MQ. For example, you can install the complete product by
issuing the following command:
You can install the server package and all its dependencies by issuing the following command:
Attention: Do not run the apt-get install ibmmq-* command in the directory
which holds the .deb files, unless you are using quotation characters in the shell.
If you are using tools such as aptitude or synaptic, the install packages can be found in the
misc\non-free category.
• To use the dpkg command to install the IBM MQ packages that you want, issue the dpkg command
for each IBM MQ package that you want to install. For example, issue the following command to
install the run time package:
dpkg -i ibmmq-runtime_9.4.0.0_amd64.deb
Results
You have installed the packages you require.
What to do next
• If required, you can now set this installation to be the primary installation. Enter the following command
at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
Procedure
1. Open a shell terminal. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
2. Set your current directory to the location of the installation packages.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
3. You have the option of accepting the license before or after installing the product. To accept the
license before installing, run the mqlicense.sh script:
./mqlicense.sh
The license agreement is displayed in a language appropriate to your environment and you are
prompted to accept or decline the terms of the license.
If possible, mqlicense.sh opens an X-window to display the license.
If you need the license to be presented as text in the current shell, which can be read by a screen
reader, type the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
4. Install the IBM MQ client.
You can use any Debian installer. “Installing an IBM MQ server on Linux Ubuntu using Debian
packages” on page 128 describes the use of the apt-get and dpkg packages to install a server.
At a minimum, you must install the ibmmq-runtime component.
If you are installing a subset of components, you must ensure that any dependencies are first installed,
as listed in Table 18 on page 135.
To install and use the package listed in the Package Name column, you must also install the
components listed in the Package Dependencies column.
Notes:
a. The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
c. For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the
product at IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix
Pack 15.
Results
You have installed the packages you require.
What to do next
• If you have chosen this installation to be the primary installation on the system, you must now set it as
the primary installation. Enter the following command at the command prompt:
MQ_INSTALLATION_PATH/bin/setmqinst -i -p MQ_INSTALLATION_PATH
• You might want to set up the environment to work with this installation. You can use the setmqenv or
crtmqenv command to set various environment variables for a particular installation of IBM MQ. For
more information, see setmqenv and crtmqenv.
• For instructions on how to verify your installation, see “Testing communication between a client and a
server on Linux” on page 148
Related concepts
“Multiple installations on AIX, Linux, and Windows” on page 17
On AIX, Linux, and Windows, it is possible to have more than one copy of IBM MQ on a system.
“Primary installation on AIX, Linux, and Windows” on page 18
On systems that support multiple installations of IBM MQ ( AIX, Linux, and Windows ), the primary
installation is the one to which IBM MQ system-wide locations refer. Having a primary installation is
optional, but convenient.
Related tasks
“Uninstalling or modifying IBM MQ on Linux using rpm” on page 150
On Linux, you can uninstall the IBM MQ server or client by using the rpm command. You can also modify
an installation by removing selected packages (components) currently installed on your system.
Changing the primary installation
Related reference
setmqinst
File names
The archive or .zip file names describe the file contents and equivalent maintenance levels.
For IBM MQ 9.4 the client images are available under the following file names:
Long Term Support: 9.4.0 IBM MQ C redistributable client for Linux x86-64
9.4.0.0-IBM-MQC-Redist-LinuxX64.tar.gz
Long Term Support: 9.4.0 IBM MQ JMS and Java redistributable client
9.4.0.0-IBM-MQC-Redist-Java.zip
Other considerations
On Linux, the default data path of a non-installed client is:
Linux x86-64
$HOME/IBM/MQ/data
You can change the default directory of the data path, by using the MQ_OVERRIDE_DATA_PATH
environment variable.
Note: You must create the directory first, as the directory is not created automatically.
A redistributable client runtime co-exists with a full IBM MQ client or server installation, provided that
they are installed in different locations.
Important: Unpacking a redistributable image into the same location as a full IBM MQ installation is not
supported.
On Linux the ccsid.tbl used to define the supported CCSID conversions is traditionally expected to be
found in the UserData directory structure, along with error logs, trace files, and so on.
The UserData directory structure is populated by unpacking the redistributable client, and so, if the
file is not found in its usual location, the redistributable client falls back to locate the file in the /lib
subdirectory of the installation.
Classpath changes
The classpath used by dspmqver, setmqenv, and crtmqenv commands adds the
com.ibm.mq.allclient.jar and com.ibm.mq.jakarta.client.jar to the environment,
immediately following the com.ibm.mq.jar, and com.ibm.mqjms.jar.
An example of dspmqver output from the redistributable client on Linux:
Name: IBM MQ
Version: 9.4.0.0
Level: p940-940-L220415
BuildType: IKAP - (Production)
Platform: IBM MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 2.6.32.59-0.7-default
InstName: MQNI09200004
InstDesc: IBM MQ V9.4.0.0 (Redistributable)
Primary: No
InstPath: /Development/johndoe/unzip/unpack
DataPath: /u/johndoe/IBM/MQ/data
MaxCmdLevel: 940
Related concepts
“Redistributable IBM MQ clients” on page 26
Procedure
1. Obtain the full license from the fully licensed installation media.
The full license file is amqpcert.lic. On Linux, it is in the /MediaRoot/licenses directory on the
installation media.
2. Run the setmqprd command from the installation that you are upgrading:
MQ_INSTALLATION_PATH/bin/setmqprd /MediaRoot/licenses/amqpcert.lic
Related reference
setmqprd
Procedure
1. Install the appropriate message catalog (see “IBM MQ components and features” on page 6 ).
2. To select messages in a different language, ensure the LANG environment variable is set to the
identifier for the language you want to install:
Procedure
• To verify a local server installation, see “Verifying a local server installation using the command line on
Linux” on page 139.
• To verify a server-to-server installation, see “Verifying a server-to-server installation using the
command line on Linux” on page 141.
• To verify a client installation, see “Verifying a client installation on Linux” on page 144.
Procedure
1. On a Linux system, log in as a user in the mqm group.
2. Set up your environment:
a) Set up environment variables for use with a particular installation by entering the following
command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
dspmqver
If the command completes successfully, and the expected version number and installation name
are returned, the environment is set up correctly.
3. Create a queue manager called QMA by entering the following command:
crtmqm QMA
Messages indicate when the queue manager is created, and when the default IBM MQ objects are
created.
4. Start the queue manager by entering the following command:
strmqm QMA
runmqsc QMA
end
10. Type some message text on one or more lines, where each line is a different message. Enter a blank
line to end the message input.
The following message is shown:
Your messages are now on the queue and the command prompt is shown.
11. Get the messages from the queue, by entering the following command:
Results
You have successfully verified your local installation.
Procedure
1. On the receiver server:
a) On Linux, log in as a user in the mqm group.
. MQ_INSTALLATION_PATH/bin/setmqenv -s
crtmqm QMB
Messages tell you that the queue manager has been created, and that the default IBM MQ objects
have been created.
e) Start the queue manager by entering the following command:
strmqm QMB
runmqsc QMB
A message tells you that MQSC has started. MQSC has no command prompt.
g) Define a local queue called RECEIVER.Q by entering the following command:
Where port_number is the name of the port the listener runs on. This number must be the same as
the number used when defining your sender channel.
i) Start the listener by entering the following command:
Note: Do not start the listener in the background from any shell that automatically lowers the
priority of background processes.
j) Define a receiver channel by entering the following command:
end
. MQ_INSTALLATION_PATH/bin/setmqenv -s
crtmqm QMA
Messages tell you that the queue manager has been created, and that the default IBM MQ objects
have been created.
d) Start the queue manager, by entering the following command:
strmqm QMA
runmqsc QMA
A message tells you that an MQSC session has started. MQSC had no command prompt.
f) Define a local queue called QMB (to be used as a transmission queue) by entering the following
command:
START CHANNEL(QMA.QMB)
The receiver channel on the receiver server starts automatically when the sender channel starts.
j) Stop MQSC by entering the following command:
end
dspmq -o installation
If the queue managers are on the same installation, move either QMA to the sender installation
or QMB to the receiver installation by using the setmqm command. For more information, see
setmqm.
m) Put a message on the local definition of the remote queue, which in turn specifies the name of the
remote queue. Enter the following command:
The sample program starts, and your message is displayed. After a pause, the sample ends. Then
the command prompt is displayed.
Results
You have now successfully verified the server-to-server installation.
Procedure
1. Set up the server and client by using the command line.
See “Setting up the server and client using the command line on Linux” on page 145.
2. Test the communications between client and server.
See “Testing communication between a client and a server on Linux” on page 148.
Related tasks
“Installing an IBM MQ client on Linux using rpm” on page 118
Installing an IBM MQ client on a 64 bit Linux system.
Setting up the server and client using the command line on Linux
You can use the command line to create the objects that you need to use to verify a client installation
on Linux. On the server you create a queue manager, a local queue, a listener, and a server-connection
channel. You must also apply security rules to allow the client to connect and make use of the queue
defined. On the client you create a client-connection channel. After setting up the server and client, you
can then use the sample programs to complete the verification procedure.
Procedure
1. Set up the server by following the instructions in “Setting up the server using the command line on
Linux” on page 145.
2. Set up the client by following instructions in “Connecting to a queue manager, using the MQSERVER
environment variable on Linux” on page 147.
What to do next
Test the communications between client and server by following the instructions in “Testing
communication between a client and a server on Linux” on page 148.
. MQ_INSTALLATION_PATH/bin/setmqenv -s
crtmqm QUEUE.MANAGER.1
You see messages telling you that the queue manager has been created.
5. Start the queue manager by entering the following command:
strmqm QUEUE.MANAGER.1
runmqsc QUEUE.MANAGER.1
A message tells you that an MQSC session has started. MQSC has no command prompt.
7. Define a local queue called QUEUE1 by entering the following command:
DEFINE QLOCAL(QUEUE1)
where non_mqm_user is the user ID created in step 1. A message tells you when the authorization
has been set. You must also run the following command to give the user ID authority to connect:
where port_number is the number of the port the listener is to run on. This number must be the same
as the number used when defining your client-connection channel in “Installing an IBM MQ client on
Linux using rpm” on page 118.
Note: If you omit the port parameter from the command, a default value of 1414 is used for the
listener port. If you want to specify a port other than 1414, you must include the port parameter in
the command, as shown.
12. Start the listener by entering the following command:
end
What to do next
Follow the instructions to set up the client. See “Connecting to a queue manager, using the MQSERVER
environment variable on Linux” on page 147.
Procedure
1. Log in as the userid that you created in Step 1 of “Setting up the server using the command line on
Linux” on page 145.
2. Check the TCP/IP connection. From the client, enter one of the following commands:
• ping server-hostname
• ping n.n.n.n
Where:
• CHANNEL1 is the server-connection channel name.
• server-address is the TCP/IP host name of the server.
• port is the TCP/IP port number the server is listening on.
If you do not give a port number, IBM MQ uses the one specified in the qm.ini file, or the client
configuration file. If no value is specified in these files, IBM MQ uses the port number identified in the
TCP/IP services file for the service name MQSeries. If an MQSeries entry in the services file does not
exist, a default value of 1414 is used. It is important that the port number used by the client and the
port number used by the server listener program are the same.
What to do next
Use the sample programs to test communication between the client and server; see “Testing
communication between a client and a server on Linux” on page 148.
Procedure
1. Change to the MQ_INSTALLATION_PATH/samp/bin directory, which contains the sample
programs.
MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
2. You must set certain environment variables so that the installation can be used in the current shell.
You can set the environment variables by entering the following command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
Tip: You might get the error, MQRC_NOT_AUTHORIZED (2035). By default, channel authentication
is enabled when a queue manager is created. Channel authentication prevents privileged users
accessing a queue manager as an IBM MQ MQI client. For verifying the installation, you can either
change the MCA user ID to a non-privileged user, or disable channel authentication. To disable channel
authentication run the following MQSC command:
When you finish the test, if you do not delete the queue manager, re-enable channel authentication:
The sample program starts, and your message is displayed. After a short pause (approximately 30
seconds), the sample ends and the command prompt is displayed again.
Results
You have now successfully verified the client installation.
What to do next
1. You must set various environment variables on the server so that the installation can be used in the
current shell. You can set the environment variables by entering the following command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
endmqm QUEUE.MANAGER.1
3. On the server, delete the queue manager by entering the following command:
dltmqm QUEUE.MANAGER.1
Procedure
• For information on how to uninstall or modify IBM MQ on Linux, see the following subtopics:
– “Uninstalling or modifying IBM MQ on Linux using rpm” on page 150
– “Uninstalling or modifying IBM MQ on Linux Ubuntu using Debian packages” on page 154
Procedure
1. Stop all IBM MQ applications associated with the installation you are uninstalling or modifying, if you
have not already done so.
2. For a server installation, end any IBM MQ activity that is associated with the installation you are
uninstalling or modifying:
a) Log in as a user in the group mqm.
b) Set up your environment to work with the installation you want to uninstall or modify. Enter the
following command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
dspmq -o installation
d) Stop all running queue managers that are associated with the installation that you want to uninstall
or modify. Enter the following command for each queue manager:
endmqm QMgrName
e) Stop any listeners associated with the queue managers. Enter the following command for each
queue manager:
3. Log in as root.
4. Uninstall or modify IBM MQby using the rpm command:
a) On a system with a single installation:
• Find out the names of the packages (components) currently installed on your system, by entering
the following command:
• Remove all components by appending all the package names to the rpm command arguments.
For example:
• Modify your installation by appending individual package names to the rpm command arguments.
For example, to remove the runtime, Server and SDK components enter the following command:
• If you are using Ubuntu, add the --force-debian attribute. For example, to remove the
runtime, Server and SDK components enter the following command:
where suffix is the unique name that is given to the packages when crtmqpkg was run at
installation time. suffix is included in each of the package names that belong to a particular
installation.
• Remove all components by appending all the package names to the rpm command arguments.
For example, to remove all components from an installation with the suffix MQ94 enter the
following command:
• Modify your installation by appending individual package names to the rpm command arguments.
For example, to remove the runtime, Server and SDK components from an installation with the
suffix MQ94 enter the following command:
• If you are using Ubuntu, add the --force-debian attribute. For example, to remove the
runtime, Server and SDK components for an installation with the suffix MQ94, enter the following
command:
What to do next
• If the product successfully uninstalled, you can delete any files and directories that are contained in the
installation directory.
• If no other IBM MQ installations exist on the system, and you are not planning to reinstall or migrate,
you can delete the /var/mqm and /etc/opt/mqm directory trees, including the files libmqzsd.so
and libmqzsd_r.so. Deleting these directories destroys all queue managers and their associated
data.
Procedure
1. Stop all IBM MQ applications associated with the installation you are uninstalling or modifying, if you
have not already done so.
2. For a server installation, end any IBM MQ activity associated with the installation you are uninstalling
or modifying:
a) Log in as a user in the group mqm.
b) Set up your environment to work with the installation you want to uninstall or modify. Enter the
following command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
dspmq -o installation
d) Stop all running queue managers associated with the installation you want to uninstall or modify.
Enter the following command for each queue manager:
e) Stop any listeners associated with the queue managers. Enter the following command for each
queue manager:
endmqlsr -m QMgrName
3. Log in as root.
4. Uninstall or modify IBM MQ using the yum remove command:
• On a system with a single installation:
– Remove the installation by using the following command:
where suffix specifies the suffix that uniquely identifies the installation.
– Modify the installation to add a component by using the following command:
where packageName specifies the component you want to add, and suffix specifies the suffix
that uniquely identifies the installation.
– Modify the installation to remove a component by using the following command:
where packageName specifies the component you want to remove, and suffix specifies the suffix
that uniquely identifies the installation.
Results
After uninstallation, certain files under the directory trees /var/mqm and /etc/opt/mqm are not
removed. These files contain user data and remain so subsequent installations can reuse the data.
Most of the remaining files contain text, such as INI files, error logs, and FDC files. The directory
tree /var/mqm/shared contains files that are shared across installations, including the executable
shared libraries libmqzsd.so and libmqzsd_r.so.
What to do next
• If the product successfully uninstalled, you can delete any files and directories contained in the
installation directory.
• If there are no other IBM MQ installations on the system, and you are not planning to reinstall
or migrate, you can delete the /var/mqm and /etc/opt/mqm directory trees, including the files
Procedure
1. Stop all IBM MQ applications associated with the installation you are uninstalling or modifying, if you
have not already done so.
2. For a server installation, end any IBM MQ activity associated with the installation you are uninstalling
or modifying:
a) Log in as a user in the group mqm.
b) Set up your environment to work with the installation you want to uninstall or modify. Enter the
following command:
. MQ_INSTALLATION_PATH/bin/setmqenv -s
dspmq -o installation
d) Stop all running queue managers associated with the installation you want to uninstall or modify.
Enter the following command for each queue manager:
endmqm QMgrName
endmqlsr -m QMgrName
3. Log in as root.
4. Uninstall or modify IBM MQ using a Debian installation command:
• Using apt.
Issuing the command:
dpkg -r packagename
dpkg -P packagename
Results
After uninstallation, certain files under the directory trees /var/mqm and /etc/opt/mqm are not
removed. These files contain user data and remain so subsequent installations can reuse the data.
Most of the remaining files contain text, such as INI files, error logs, and FDC files. The directory
tree /var/mqm/shared contains files that are shared across installations, including the executable
shared libraries libmqzsd.so and libmqzsd_r.so.
What to do next
• If the product successfully uninstalled, you can delete any files and directories contained in the
installation directory.
• If there are no other IBM MQ installations on the system, and you are not planning to reinstall
or migrate, you can delete the /var/mqm and /etc/opt/mqm directory trees, including the files
libmqzsd.so and libmqzsd_r.so. Deleting these directories destroys all queue managers and their
associated data.
Related tasks
“Removing a fix pack from IBM MQ on Linux Ubuntu using Debian packages” on page 156
Removing a fix pack from IBM MQ on Linux Ubuntu using Debian packages
Follow these instructions to remove a fix pack, for example IBM MQ 9.4.0 Fix Pack 1, on Linux Ubuntu
using Debian packages.
Procedure
1. Stop all IBM MQ queue managers and clients associated with the installation that you are modifying, if
you have not already done so.
For example, issue the following command:
$ endmqm -i TEST_94
You receive a message that the queue manager TEST_94 is ending (that is, shutting down), followed
by another message when shutdown has completed.
2. Issue the following command:
$ ps -ef | grep -i mq
Now that there is no IBM MQ activity on the system, you can uninstall the product.
3. Log in as root and issue the a command similar to the following, to find out the file sets for IBM MQ
9.4.0 Fix Pack 1.
Note the presence in each line of the following text, unknown, now.
4. Use the following Debian command to uninstall the product.
…
0 upgraded, 0 newly installed, 34 to remove and 78 not upgraded.
After this operation, 974 MB disk space will be freed.
Do you want to continue? [Y/n]
Y
…
Removing ibmmq-runtime-u9201 (9.4.0.1) ...
Entering prerm for "ibmmq-runtime-u9401" remove
Entering postrm for "ibmmq-runtime-u9401" remove
Note the presence in each line of the following text, unknown instead of unknown, now.
8. Issue the command dspmqver and you see that the version is
# dspmqver
Name: IBM MQ
Version: 9.4.0.0
What to do next
You can uninstall the base product if required. For more information, see “Uninstalling or modifying IBM
MQ on Linux Ubuntu using Debian packages” on page 154.
Related tasks
“Removing maintenance level updates on Windows” on page 318
From IBM MQ 9.4.0, you remove maintenance for server and client installations by uninstalling IBM MQ
and then reinstalling an earlier level.
Related reference
endmqm (end queue manager)
dspmqver (display version information)
Procedure
1. Check the system requirements.
See “Checking requirements on Windows” on page 168.
2. Plan your installation.
• As part of the planning process, you must choose which components to install and where to install
them. See “IBM MQ features for Windows systems” on page 158.
• You must also make some platform-specific choices. See “Planning to install IBM MQ on Windows”
on page 170.
3. Install IBM MQ server.
See “Installing IBM MQ server on Windows” on page 176.
4. Optional: Install an IBM MQ client.
See “Installing an IBM MQ client on Windows” on page 203.
5. Verify your installation. See “Verifying an IBM MQ installation on Windows” on page 220.
From IBM MQ
9.1, additional
prerequisite
checking is
performed on
this option.
See Prerequisite
checking for more
information.
When you install an IBM MQ server using msiexec, the features that are included in a typical installation
are added to the list of features that you specify in the ADDLOCAL directive.
If you specify ADDLOCAL="" all these features will be installed.
If you do not want specific features added, you must add those specific features to the REMOVE directive.
For example, suppose that you specify the following settings for an msiexec installation:
ADDLOCAL="Client"
REMOVE="Web,Toolkit"
Server,JavaMsg,JRE,Client
Related concepts
“IBM MQ components and features” on page 6
You can select the components or features that you require when you install IBM MQ.
“Planning considerations for installation on Multiplatforms” on page 14
Before you install IBM MQ, you must choose which components to install and where to install them. You
must also make some platform-specific choices.
Related tasks
“Installing the server using the Launchpad” on page 177
You can install IBM MQ server on Windows systems by using the Launchpad. This procedure can be used
for installing a first or a subsequent installation.
“Installing the server using msiexec” on page 179
Procedure
1. Check that you have the latest information, including information on hardware and software
requirements.
See “Where to find product requirements and support information” on page 9.
2. Check that your systems meet the initial hardware and software requirements for Windows.
See “Hardware and software requirements on Windows systems” on page 168.
3. Check that your systems have sufficient disk space for the installation.
See Disk space requirements.
4. Check that you have the correct licenses.
See “License requirements” on page 8 and IBM MQ license information.
Related concepts
“IBM MQ installation overview” on page 6
An overview of concepts and considerations for installing IBM MQ, with links to instructions on how to
install, verify, and uninstall IBM MQ on each of the supported platforms.
Related tasks
“Applying maintenance to IBM MQ” on page 278
Maintenance is the application of a reversible fix. Any changes to queue manager data are compatible
with the previous code level.
• From IBM MQ 9.4.0, for .NET 6 IBM MQ client libraries, that is libraries built using .NET 6
as the target framework, .NET 6 is a prerequisite.
Procedure
1. Decide which IBM MQ components and features to install.
See “IBM MQ components and features” on page 6 and “Where to find downloadable installation
images” on page 9.
Important: Ensure that your enterprise has the correct license, or licenses, for the components that
you are going to install. For more information, see “License requirements” on page 8 and IBM MQ
license information.
2. Review the options for naming your installation.
Attention: If you choose not to install the JRE, or to remove the JRE if it was already installed:
• You must use the runmqakm command to manage key repositories. The runmqktool
command is not available.
• Use of the runmqras command fails unless a JRE at version 7, or later, is available on the
system path.
For more information, see runmqakm and runmqktool commands on AIX, Linux, and Windows.
Table 20. Installation features requiring either the Server or JRE feature
Feature Required by Non-interactive name
Server Web Administration Web
Interactive installation
If you choose an interactive installation, before you install, you must decide what type of installation you
require. Table 21 on page 173 shows the installation types available, and the features that are installed
with each option. For the prerequisites required for each feature, see System Requirements for IBM MQ.
The installation types are:
• Typical installation
• Compact installation
• Custom Installation
You can also:
• Specify the installation location, name, and description.
• Have multiple installations on the same computer.
See “Primary installation on AIX, Linux, and Windows” on page 18 for important information about these
features, including whether to designate your installation as the primary installation.
Compact • Server only • MQI Client only The feature is installed to the
default location with a default
installation name.
Custom By default, the following By default, the following A server custom installation
features are preselected: features are preselected: can be used if you want to
install the IBM MQ MQI client
• Server • MQI Client
from within the server image.
• Development Toolkit • Development Toolkit
All the available features are
• Extended Messaging APIs • Extended Messaging APIs listed and you can select
• Web Administration which ones to install, and
where to install them. You
A custom installation can also
can also name and provide a
install:
description for the installation.
• Telemetry Service
Use a custom installation when
• Advanced Message Security you want to specify that the
• Managed File Transfer installation is primary.
Service Extended Messaging APIs
• Managed File Transfer (known as Java and .NET
Logger Messaging and Web Services
• Managed File Transfer Agent before IBM MQ 9.1) includes
IBM MQ classes for .NET,
• Managed File Transfer Tools support for the Microsoft
• MQI Client Windows Communication
Foundation (WCF) for use with
Microsoft.NET 3 or later.
If Microsoft.NET is not installed before IBM MQ and you add it, rerun setmqinst -i -n
Installationname if this is a primary installation.
The following table describes which level of .NET is required for which function:
For instructions on how to install IBM MQ on Windows systems, see Installing IBM MQ Server on Windows
systems and “Installing an IBM MQ client on Windows” on page 203.
Non-interactive installation
If you choose a non-interactive installation the system on which you want to install must be able to access
the IBM MQ image, or a copy of the files, and you must be able to access the system.
If you are running with User Account Control (UAC) enabled, you must invoke the non-interactive
installation from an elevated command prompt. Elevate a command prompt by using a right-click to start
the command prompt and choose Run as administrator. If you try to silently install from a non-elevated
command prompt, the installation fails with an error of AMQ4353 in the installation log.
There are several ways to invoke MSI:
• Using the msiexec command with command-line parameters.
• Using the msiexec command with a parameter that specifies a response file. The response file contains
the parameters that you normally supply during an interactive installation. See “Installing the server
using msiexec” on page 179.
• Use the MQParms command with command-line parameters, a parameter file, or both. The parameter
file can contain many more parameters than a response file. See “Installing the server using the
MQParms command” on page 188.
Special domain ID
If the system belongs to a Windows domain you may need a special domain ID for the IBM MQ service,
see “Considerations when installing IBM MQ server on Windows” on page 175 for more information.
Attention: The parameters LOSEDATA and NOPROMPT are optional. If you supply either, or both, of
these parameters, the following action results:
LOSEDATA
Existing queue managers become unusable. However, the data remains on disk.
NOPROMPT
Configuration information is permanently removed without further prompting.
You can run this command only after the last IBM MQ installation has been removed.
Important: You should use this script with caution. The command, even without specifying the optional
parameter LOSEDATA, can irrecoverably remove queue manager configuration.
Related concepts
“Considerations when installing IBM MQ server on Windows” on page 175
There are some considerations relating to security that you should take into account when installing an
IBM MQ server on Windows. There are some additional considerations relating to the object naming rules
and logging.
Naming considerations
Windows has some rules regarding the naming of objects created and used by IBM MQ. These naming
considerations apply to IBM MQ 8.0 or later.
• Ensure that the machine name does not contain any spaces. IBM MQ does not support machine names
that include spaces. If you install IBM MQ on such a machine, you cannot create any queue managers.
• For IBM MQ authorizations, names of user IDs and groups must be no longer than 64 characters (spaces
are not allowed).
• An IBM MQ for Windows server does not support the connection of an IBM MQ MQI client if the client is
running under a user ID that contains the @ character, for example, abc@d. Similarly, the client user ID
should not be the same as local group.
• A user account that is used to run the IBM MQ Windows service is set up by default during the
installation process; the default user ID is MUSR_MQADMIN. This account is reserved for use by IBM
MQ. For more information, see Configuring user accounts for IBM MQ and Local and domain user
accounts for the IBM MQ Windows service.
• When an IBM MQ client connects to a queue manager on the server, the username under which the
client runs must not be same as the domain or machine name. If the user has the same name as the
domain or machine, the connection fails with return code 2035(MQRC_NOT_AUTHORIZED).
Logging
You can set up logging during installation which assists you in troubleshooting any problems you might
have with the installation.
Logging is enabled by default from the Launchpad. You can also enable complete logging, for more
information, see How to enable Windows Installer logging.
Digital signatures
The IBM MQ programs and installation image are digitally signed on Windows to confirm that they are
genuine and unmodified. The SHA-256 with RSA algorithm is used to sign the IBM MQ product.
Procedure
• To install IBM MQ server by using the Launchpad, see “Installing the server using the Launchpad” on
page 177.
• To install IBM MQ server on by using the MSI technology directly, see “Installing the server using
msiexec” on page 179.
Related concepts
“Modifying a server installation” on page 201
You can modify an IBM MQ server installation interactively using the launchpad or non-interactively using
msiexec.
Related tasks
“Configuring user accounts for IBM MQ” on page 194
After installing IBM MQ server, you must configure the IBM MQ service before you can start any queue
managers.
“Uninstalling IBM MQ on Windows” on page 230
You can uninstall the IBM MQ MQI clients and servers on Windows systems by using the control panel,
the command line ( msiexec ), MQParms, or by using the installation media, in which case you can
optionally remove queue managers as well.
Procedure
1. Access the IBM MQ installation image.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
2. Locate Setup.exe in the base directory of the IBM MQ installation image.
• From a network location, this location might be m:\instmqs\Setup.exe
• From a local file system directory, this location might be C:\instmqs\Setup.exe
Results
You have successfully installed IBM MQ. The Prepare IBM MQ wizard starts automatically, displaying the
Welcome to the Prepare IBM MQ Wizard page.
What to do next
Use the Prepare IBM MQ Wizard to configure IBM MQ with a user account for your network. You must
run the wizard to configure the IBM MQ Service before you can start any queue managers. For more
information, see “Configuring IBM MQ with the Prepare IBM MQ Wizard” on page 194.
• If you have chosen this installation to be the primary installation on the system, you must now set it as
the primary installation. Enter the following command at the command prompt:
MQ_INSTALLATION_PATH\bin\setmqinst -i -p MQ_INSTALLATION_PATH
You can have only one primary installation on a system. If there is already a primary installation on the
system, you must unset it before you can set another installation as the primary installation. For more
information, see Changing the primary installation.
• You might want to set up the environment to work with this installation. You can use the setmqenv or
crtmqenv command to set various environment variables for a particular installation of IBM MQ. For
more information, see setmqenv and crtmqenv.
• For instructions on how to verify your installation, see “Verifying an IBM MQ installation on Windows” on
page 220.
Related concepts
“Modifying a server installation” on page 201
Procedure
1. For multiple silent installations, for each version that is to be installed, find an MSI instance ID that is
available to use for that installation.
For more information, see “Choosing MSI Instance IDs for multiple client installations” on page 205.
2. To install using msiexec, at the command line, enter the msiexec command in the following format:
where:
Results
After the command has been entered, the command prompt immediately reappears. IBM MQ is installing
as a background process. If you have entered parameters to produce a log, check this file to see
how the installation is progressing. If the installation completes successfully, you see the message
Installation operation completed successfully in the log file.
Procedure
1. Type dspmqinst to find a free MSI Instance in the media being installed by reviewing the MSIMedia
and MSIInstanceId values for the versions already installed. For example:
InstName: Installation1
InstDesc:
Identifier: 1
InstPath: C:\Program Files\IBM\MQ
Version: 9.0.0.0
Primary: Yes
State: Available
MSIProdCode: {74F6B169-7CE6-4EFB-8A03-2AA7B2DBB57C}
MSIMedia: 9.0 Server
MSIInstanceId: 1
MSINEWINSTANCE=1 TRANSFORMS=":instanceId7.mst;1033.mst"
What to do next
For multiple installations, the INSTALLATIONNAME or PGMFOLDER must be supplied as an additional
parameter on any non-interactive installation command. Supplying the INSTALLATIONNAME or
PGMFOLDER ensures that you do not work with the wrong installation in case you omit or incorrectly
specify the TRANSFORMS parameter.
Table 23. Parameters that can be used on the command line only (msiexec property=value
parameters)
Property Values Meaning
USEINI path \ file_name Use the specified response file. See “Creating
and using a response file for server installation”
on page 184
SAVEINI path \ file_name Generate a response file during installation. The
file contains those parameters selected for this
installation that a user might make during an
interactive installation.
ONLYINI 1|yes| "" 1, yes or any value other than null. End the
installation before updating the target system,
but after generating a response file, if this is
specified.
"". Continue the installation and update the
target system (the default).
ADDLOCAL="Server,Client"
• For properties taking paths and file names, for example, PGMFOLDER, you must supply the paths as
absolute paths and not relative paths; that is as C:\folder\file and not ".\folder\file".
When using property=value pair and command line parameters with the msiexec command, enter
command line parameters first.
If a parameter is specified both on the command line and in a response file, the setting on the command
line takes precedence.
Procedure
• For a single installation of IBM MQ, specify the msiexec command as shown in the following typical
example.
All parameters, separated by one or more spaces, must be typed on the same line as the msiexec
call.
msiexec
/i "path\MSI\IBM MQ.msi"
/l*v c:\install.log
/q
TRANSFORMS="1033.mst"
AGREETOLICENSE="yes"
ADDLOCAL="Server"
• If you are installing a second copy of IBM MQ, specify the msiexec command as shown in the
following typical example.
All parameters, separated by one or more spaces, must be typed on the same line as the msiexec
call.
msiexec
/i "path\MSI\IBM MQ.msi"
/l*v c:\install.log
/q
TRANSFORMS=":InstanceId2.mst;1033.mst"
AGREETOLICENSE="yes"
You can also specify the required language by using the MQLANGUAGE property with the MQParms
command. For information about the msiexec property=value parameters, see “MQParms parameter file -
server installation” on page 189.
Procedure
On the msiexec command line, specify the required language by using the TRANSFORMS property in a
property=value pair as shown in the following example:
TRANSFORMS="1033.mst"
You might need to merge transforms to install multiple installations of the same version, for example:
TRANSFORMS=":InstanceId2.mst;D:\Msi\1033.mst"
LOGFOLDER path Folder for the IBM MQ queue manager log files.
For example, c:\mqm\log.
Note: Multiple installations of IBM MQ all use
the same LOGFOLDER.
WIZPARMFILE path \ file_name When specified, the file that contains the
parameters to pass to the Prepare IBM MQ
Wizard when it is launched. These are in the
[Services].
ADDLOCAL feature, feature, All| "" A comma-separated list of features to install
locally. For a list of valid feature names, see
“IBM MQ features for Windows systems” on
page 158.
All installs all features
"" installs the typical features. If you do not want
a feature use REMOVE="feature"
Note: If this is a new installation, the typical
features “3” on page 187 are installed by default
irrespective of the feature list provided in the
ADDLOCAL property. If you do not want a
feature, use REMOVE="feature" to specify that
feature.
STARTSERVICE 0|no| "" 0 or no. Do not start the IBM MQ Service at the
end of installation.
"" (the default). Start the IBM MQ Service at the
end of installation if it was running at the start,
or if this is a new installation.
Anything else. Start the Service at the end of the
installation.
Ignored if the server feature is not installed.
If you do not start the IBM MQ Service, IBM
MQ will not be operational and queue managers
will not start. You must run the Prepare IBM MQ
Wizard for the service to be correctly configured.
This parameter is only valid if LAUNCHWIZ is set
to no.
Notes:
1. For multiple installations, the INSTALLATIONNAME or PGMFOLDER must be supplied as an additional
parameter on any non-interactive installation command. Supplying the INSTALLATIONNAME or
Procedure
1. Create a response file for installation in one of the following ways:
• Copy and edit the file Response.ini that is supplied in the IBM MQ Windows Server install image,
using an ASCII file editor.
• Create your own response file using an ASCII file editor.
• Use the msiexec command with the SAVEINI (and optionally, the ONLYINI) command line
parameters to generate a response file that contains the same installation options as shown in
the following example:
2. To run the msiexec command with a response file, specify the full path and file name of the response
file with the USEINI parameter as shown in the following example:
msiexec /i "path\MSI\IBM
MQ.msi" /l*v c:\install.log TRANSFORMS= "1033.mst" USEINI= "C:\MQ\Responsefile"
In the response file, all text is in English, and comments begin with a ; character.
Example
The following example shows a typical response file:
[Response]
PGMFOLDER="c:\mqm"
DATFOLDER="c:\mqm\data"
LOGFOLDER="c:\mqm\log"
AGREETOLICENSE="yes"
LAUNCHWIZ=""
WIZPARMFILE="d:\MQParms.ini"
ADDLOCAL="Server,Client"
REMOVE="Toolkit"
Procedure
1. From a command line, change to the root folder of the IBM MQ Server install image (that is, the
location of the file MQParms.exe).
2. Enter the following command:
where:
parameter_file
is the file that contains the required parameter values. If this file is not in the same folder as
MQParms.exe, specify the full path and file name. If you do not specify a parameter file, the default
is MQParms.ini. For silent installation, the MQParms_silent.ini parameter file can be used.
For further details, see “MQParms parameter file - server installation” on page 189.
Example
A typical example of an MQParms command is:
A typical example of an MQParms command when you are installing a second copy of IBM MQ is:
Alternatively, TRANSFORMS and MSINEWINSTANCE can be specified in the MSI stanza of the parameter
file.
If you specify a parameter both on the command line and in the parameter file, the setting on the
command line takes precedence.
If you specify a parameter file, you might want to run the encryption utility before you use the MQParms
command (see “Encrypting a parameter file” on page 192 ).
If you do not specify /i, /x, /a, or /j, MQParms defaults to standard installation using the IBM MQ
Windows Installer package, IBM MQ.msi. That is, it generates the following part of the command line:
If you do not specify a WIZPARMFILE parameter, MQParms defaults to the current parameter file. That is,
it generates the following part of the command:
ADDLOCAL="Server,Client"
REINSTALL=""
The following tables show the properties that you can set. The default is shown in bold.
For the [MSI] stanza, you can enter standard MSI command line options and properties. For example:
- /q
- ADDLOCAL="server"
- REBOOT=Suppress
Refer to Table 26 on page 190, Table 27 on page 191, and Table 28 on page 191 for the properties used
to install IBM MQ.
Table 26 on page 190 shows additional properties in the stanza that affect how the MQParms command
runs, but that do not affect the installation.
For the [Services] stanza, you can enter parameters in property=value format. You might want to encrypt
the values in this stanza. See “Encrypting a parameter file” on page 192.
[MSI]
MQPLANGUAGE=1033
MQPLOG=%temp%\MQParms.log
MQPSMS=no
ADDLOCAL=Server
/m miffile
REMOVE=""
/l*v c:\install.log
[Services]
USERTYPE=domain
DOMAINNAME=mqm*df349edfcab12
USERNAME=mqm*a087ed4b9e9c
PASSWORD=mqm*d7eba3463bd0a3
Procedure
1. From a command line, change to the folder that contains your parameter file.
2. Enter the following command:
CD_drive:\setmqipw
CD_drive:\setmqipw parameter_file
Results
If you view the resulting parameter file, the encrypted values start with the string mqm*. Do not use this
prefix for any other values; passwords or names that begin with this prefix are not supported.
The utility creates a log file, setmqipw.log, in the current directory. This file contains messages related
to the encryption process. When encryption is successful, messages are similar to:
Encryption complete
Configuration file closed
Processing complete
What to do next
After you encrypt the parameter file, you can use it in the normal way with the MQParms command (see
“Installing the server using the MQParms command” on page 188 ).
Procedure
1. Check MSI nnnnn.LOG. This file is in your user Temp folder. It is an application log that contains
English messages written during installation. The log includes a message indicating whether the
installation was successful and complete.
This file is created if you have set up default logging.
2. If you used the launchpad to install IBM MQ, check MQv9_Install_YYYY-MM-DDTHH-MM-SS.log in
your user Temp folder, where:
YYYY
This is the year that you installed IBM MQ
MM
This is the month that you installed IBM MQ, for example this would be 09 if you installed in
September
DD
This is the day that you installed IBM MQ
HH-MM-SS
This is the time at which IBM MQ was installed
You can get to your user Temp directory by entering the following command at the command prompt:
cd %TEMP%
3. Check amqmjpse.txt. This file is in the IBM MQ data files folder (default
C:\ProgramData\IBM\MQ ). It is an application log that contains English messages written during
installation by the Prepare IBM MQ Wizard.
Table 29. Startup parameters that can be used for the Prepare IBM MQ Wizard
Parameter Parameter Default action if parameter not
Name description How parameter is used supplied
-l file Create log file The Prepare IBM MQ Wizard appends Append to log file amqmjpse.txt
to a log file with the program actions in IBM MQ Data directory.
and results.
This parameter specifies the file name
to use for this log. If the path is not
provided, the IBM MQ Data directory
is assumed. If the file name is not
provided, amqmjpse.txt is assumed.
-r Reset When the Prepare IBM MQ Wizard User account not reset.
MQSeriesService is first run it creates a local
user account user account MUSR_MQADMIN, with
specific settings and permissions.
The MQSeriesService component is
configured to run under this account.
Depending on the LAN configuration,
the wizard might reconfigure the
MQSeriesService component to run
under a domain user account instead.
When this parameter is specified, the
local user account MUSR_MQADMIN is
re-created with all the default settings
and permissions. The MQSeriesService
component is configured to run under
this account.
[Services]
[SSLMigration]
On Windows systems, you must carry out this task under a Windows administrator account, or domain
administrator account in case your workstation is a member of a Windows domain.
On Windows systems with User Account Control (UAC) enabled, if you do not complete the Prepare IBM
MQ Wizard directly after IBM MQ is installed, or if for any reason your machine is rebooted between
completing IBM MQ installation and completing the Prepare IBM MQ Wizard, you must accept the
Windows prompt when it appears to allow the wizard to run as elevated.
Procedure
1. When the IBM MQ installation completes, the Prepare IBM MQ Wizard window is displayed with a
welcome message.
To continue, click Next.
2. If you have run the Prepare IBM MQ Wizard before, this step is skipped. Otherwise, the Prepare IBM
MQ Wizard window displays a progress bar with the following message:
Status: Setting up IBM MQ Configuration
Wait until the progress bar completes. If there are any problems with the domain user account,
a further window is displayed. Follow the advice on this window before you continue with this
procedure.
9. The Prepare IBM MQ Wizard window displays a progress bar with the following message:
Select the options that you require, then click Finish. Select one or more from the following list:
• Remove the shortcut to this wizard from the desktop
This option is available only if you have previously attempted installation, but you canceled the
procedure from thePrepare IBM MQ Wizard and you created a desktop shortcut to this wizard.
Select this option to remove the shortcut. You do not need it now that you have completed the
Prepare IBM MQ Wizard.
• Launch IBM MQ Explorer
The IBM MQ Explorer allows you to view and administer your IBM MQ network. You can use the
items in the Welcome to IBM MQ Explorer Content view page to explore the facilities in IBM MQ.
This page is launched the first time that the IBM MQ Explorer is launched. The Welcome page can
be viewed at any time from the IBM MQ Explorer by clicking IBM MQ in the Navigator view.
What to do next
Optionally, follow the procedure described in Checking for problems after installing.
For information on how to verify an installation, see Verifying an IBM MQ installation on Windows.
Related concepts
User rights required for an IBM MQ Windows Service
Related tasks
Creating and setting up Windows domain accounts for IBM MQ
This information is for Domain Administrators. Use this information to create and set up a special domain
account for the IBM MQ service. Do this if IBM MQ is to be installed on a Windows domain where local
accounts do not have the authority to query the group membership of the domain user accounts.
Procedure
Create a domain group with a special name that is known to IBM MQ (see “4” on page 199) and give
members of this group the authority to query the group membership of any account.
1. Log on to the domain controller as an account with domain administrator authority.
2. From the Start menu, open Active Directory Users and Computers.
3. Find the domain name in the navigation pane, right-click it and select New Group.
4. Type a group name into the Group name field.
Note: The preferred group name is Domain mqm. Type it exactly as shown.
• Calling the group Domain mqm modifies the behavior of the Prepare IBM MQ Wizard on a domain
workstation or server. It causes the Prepare IBM MQ Wizard automatically to add the group Domain
mqm to the local mqm group on each new installation of IBM MQ in the domain.
• You can install workstations or servers in a domain with no Domain mqm global group. If you do
so, you must define a group with the same properties as Domain mqm group. You must make that
group, or the users that are members of it, members of the local mqm group wherever IBM MQ is
installed in a domain. You can place domain users into multiple groups. Create multiple domain
groups, each group corresponding to a set of installations that you want to manage separately. Split
domain users, according to the installations they manage, into different domain groups. Add each
domain group or groups to the local mqm group of different IBM MQ installations. Only domain users
in the domain groups that are members of a specific local mqm group can create, administer, and run
queue managers for that installation.
• The domain user that you nominate when installing IBM MQ on a workstation or server in a domain
must be a member of the Domain mqm group, or of an alternative group you defined with same
properties as the Domain mqm group.
5. Leave Global clicked as the Group scope, or change it to Universal. Leave Security clicked as the
Group type. Click OK.
6. Follow these steps to assign permissions to the group based on the Windows version of the domain
controller:
On Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019,
and Windows Server 2022:
a. In the Server Manager, click Tools then select Active Directory Users and Computers from the
list box.
b. Select View > Advanced Features.
c. Expand your domain name, then click Users.
d. In the Users window, right-click Domain mqm > Properties.
e. On the Security tab, click Advanced > Add....
f. Click Select principle, then type Domain mqm and click Check names > OK.
The Name field is prefilled with the string Domain mqm (domain name\Domain mqm).
g. In the Applies to list, select Descendant User Objects.
Procedure
1. Download the compressed file that contains the installation image, then uncompress it into a
temporary directory.
2. Navigate to that directory, then double-click Setup.exe to start the installation process.
The IBM MQ Installation Launchpad window is displayed.
3. Click the IBM MQ Installation option.
4. Click Launch IBM MQ Installer. Wait until the IBM MQ Setup window is displayed with a welcome
message.
What to do next
After modifying the installation, you might need to run setmqenv again as described in What to do next in
“Installing IBM MQ server on Windows” on page 176.
Procedure
• To silently modify an installation using msiexec, set the ADDLOCAL parameter to include the features
you want to add, and set the REMOVE parameter to the features you want to remove.
For example, if you use ADDLOCAL="JavaMsg" and REMOVE="" it modifies the installation to include
the Extended Messaging and APIs (JavaMsg) feature but does not remove any currently installed
features.
where product_code is the value shown for MSIProdCode in the output of the following command:
dspmqinst -n installation_name
Procedure
1. Access the IBM MQ installation image.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
2. Locate Setup.exe in the Windows directory of the IBM MQ installation image.
• From a network location, this location might be m:\instmqs\Windows\Setup.exe
• From a local file system directory, this location might be C:\instmqs\Windows\Setup.exe
3. Start the installation process.
Either run Setup.exe from a command prompt, or double-click Setup.exe from Windows Explorer.
Note: If you are installing on a Windows system with UAC enabled, accept the Windows prompt to
allow the launchpad to run as elevated. During installation, you might also see Open File - Security
Warning dialog boxes that list International Business Machines Limited as the publisher. Click Run to
allow the installation to continue.
The IBM MQ Installation window is displayed.
4. Follow the instructions on screen.
Results
A new sample IBM MQ MQI client configuration file is created in the IBM MQ installation directory (for
example C:\Program Files\IBM\MQ\, by the IBM MQ MQI client package, during installation, but only
What to do next
• If you have chosen this installation to be the primary installation on the system, when using
setup.exe, you must now set it as the primary installation. Enter the following command at the
command prompt:
MQ_INSTALLATION_PATH\bin\setmqinst -i -p MQ_INSTALLATION_PATH
You can have only one primary installation on a system. If there is already a primary installation on the
system, you must unset it before you can set another installation as the primary installation. For more
information, see Changing the primary installation.
• You might want to set up the environment to work with this installation. You can use the setmqenv or
crtmqenv command to set various environment variables for a particular installation of IBM MQ. For
more information, see setmqenv and crtmqenv.
• For instructions on how to verify your installation, see “Testing communication between a client and a
server on Windows” on page 229.
Related concepts
“Modifying a client installation using Add/Remove Programs” on page 215
On some versions of Windows, you can modify an installation by using Add/Remove Programs.
Related tasks
“Installing a client using msiexec” on page 204
IBM MQ on Windows uses the MSI technology to install software. MSI provides both an interactive
installation and a non interactive installation.
“Installing a client using the MQParms command” on page 211
You can use the MQParms command to invoke installation or uninstallation of an IBM MQ client.
“Uninstalling IBM MQ on Windows” on page 230
You can uninstall the IBM MQ MQI clients and servers on Windows systems by using the control panel,
the command line ( msiexec ), MQParms, or by using the installation media, in which case you can
optionally remove queue managers as well.
Procedure
1. For multiple silent installations, for each version that is to be installed, find an MSI instance ID that is
available to use for that installation.
For more information, see “Choosing MSI Instance IDs for multiple server installations” on page 180.
2. To install using msiexec, at the command line, enter the msiexec command in the following format:
where:
parameters
are either command line parameters preceded by a / character, or property=value pairs (if using
both forms of parameter always put the command-line parameters first). For further information,
see “Specifying command line parameters for client installation with msiexec” on page 206.
For an unattended installation, you must include the /q or /qn parameter in the command line.
Without this parameter, the installation is interactive.
Note: You must include the /i parameter and the file location of the IBM MQ installer package.
response-file
is the full path and file name of the file that contains the [Response] stanza and the
required property=value pairs, for example C:\MyResponseFile.ini. An example response file,
Response.ini, is supplied with IBM MQ. This file contains default installation parameters. For
further information, see “Creating and using a response file for client installation” on page 209.
transform_file
is the full path and file name of a transform file. For further information, see “Using transforms with
msiexec for client installation” on page 208 and “Choosing MSI Instance IDs for multiple server
installations” on page 180.
Note: For a silent installation to succeed, the AGREETOLICENSE="yes" property must be defined
either on the command line or in the response file.
Results
After the command has been entered, the command prompt immediately reappears. IBM MQ is installing
as a background process. If you have entered parameters to produce a log, check this file to see
how the installation is progressing. If the installation completes successfully, you see the message
Installation operation completed successfully in the log file.
Procedure
1. Type dspmqinst to find a free MSI Instance in the media being installed by reviewing the MSIMedia
and MSIInstanceId values for the versions already installed. For example:
InstName: Installation1
InstDesc:
Identifier: 1
InstPath: C:\Program Files\IBM\MQ
Version: 9.0.0.0
Primary: Yes
State: Available
MSIProdCode: {74F6B169-7CE6-4EFB-8A03-2AA7B2DBB57C}
MSIMedia: 9.0 Server
MSIInstanceId: 1
2. If MSI Instance ID 1 is in use and you want to use MSI Instance ID 2, the following parameters must
be added to the msiexec call:
MSINEWINSTANCE=1 TRANSFORMS=":instanceId7.mst;1033.mst"
What to do next
For multiple installations, the INSTALLATIONNAME or PGMFOLDER must be supplied as an additional
parameter on any non-interactive installation command. Supplying the INSTALLATIONNAME or
PGMFOLDER ensures that you do not work with the wrong installation in case you omit or incorrectly
specify the TRANSFORMS parameter.
ADDLOCAL="Server,Client"
• For properties taking paths and file names, for example PGMFOLDER, you must supply the paths as
absolute paths and not relative; that is, C:\folder\file and not .\folder\file.
When using property=value pair and command line parameters with the msiexec command, enter
command line parameters first.
If a parameter is specified both on the command line and in a response file, the setting on the command
line takes precedence.
• If you are installing a second copy of IBM MQ, specify the msiexec command as shown in the
following typical example.
You can also specify the required language by using the MQLANGUAGE property with the MQParms
command. For information about the msiexec property=value parameters, see “MQParms parameter file -
client installation” on page 213.
TRANSFORMS="1033.mst"
TRANSFORMS="D:\Msi\1033.mst"
Table 31 on page 208 shows the locale identifier, language, and the transform file name to use in the
msiexec command line.
You might need to merge transforms to install multiple installations of the same version, for example:
TRANSFORMS=":InstanceId2.mst;D:\Msi\1033.mst"
AGREETOLICENSE “2” yes Accept the terms of the license. Set to yes before
on page 211 a silent installation.
If the installation is not silent, this parameter is
ignored.
Notes:
Procedure
1. Create a response file for installation in one of the following ways:
• Copy and edit the file Response.ini that is supplied on the IBM MQ Windows Server install
image, using an ASCII file editor.
• Create your own response file using an ASCII file editor.
• Use the msiexec command with the SAVEINI (and optionally, the ONLYINI ) command line
parameters to generate a response file that contains the same installation options as shown in the
following example:
2. To run the msiexec command with a response file, specify the full path and file name of the response
file with the USEINI parameter as shown in the following example:
In the response file, all text is in English, and comments begin with a ; character.
Example
The following example shows a typical response file:
[Response]
PGMFOLDER="c:\mqm"
DATFOLDER="c:\mqm\data"
AGREETOLICENSE="yes"
ADDLOCAL="Client"
REMOVE="Toolkit"
Procedure
1. From a command line, change to the root folder of the IBM MQ installation media (that is, the location
of the file MQParms.exe).
2. Enter the following command:
where:
parameter_file
is the file that contains the required parameter values. If this file is not in the same folder as
MQParms.exe, specify the full path and file name. If you do not specify a parameter file, the default
is MQParms.ini. For further details, see “MQParms parameter file - client installation” on page 213.
parameters
are one or more command-line parameters, for a list of these, see the MSDN Command-Line
Options web page.
Example
A typical example of an MQParms command is:
If you specify a parameter both on the command line and in the parameter file, the setting on the
command line takes precedence.
If you do not specify /i, /x, /a, or /j, MQParms defaults to standard installation using the IBM MQ
Windows Installer package, IBM IBM MQ.msi. That is, it generates the following part of the command line:
ADDLOCAL="Server,Client"
REINSTALL=""
The following tables show the properties that you can set. The default is shown in bold.
For the [MSI] stanza, you can enter standard MSI command line options and properties. For example:
- /q
- ADDLOCAL="client"
- REBOOT=Suppress
Refer to Table 33 on page 213, and Table 34 on page 214 for the properties used to install IBM MQ.
Table 33 on page 213 shows additional properties in the stanza that affect how the MQParms command
runs, but that do not affect the installation.
[MSI]
MQPLANGUAGE=1033
MQPLOG=%temp%\MQParms.log
MQPSMS=no
ADDLOCAL=CLIENT
/m miffile
REMOVE=""
/l*v c:\install.log
Procedure
1. Access the IBM MQ installation image.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
2. Locate Setup.exe in the Windows directory of the IBM MQ installation image.
• From a network location, this location might be m:\instmqs\Windows\Setup.exe
• From a local file system directory, this location might be C:\instmqs\Windows\Setup.exe
3. Start the installation process.
Either run Setup.exe from a command prompt, or double-click Setup.exe from Windows Explorer.
Note: If you are installing on a Windows system with UAC enabled, accept the Windows prompt to
allow the launchpad to run as elevated. During installation, you might also see Open File - Security
Warning dialog boxes that list International Business Machines Limited as the publisher. Click Run to
allow the installation to continue.
The IBM MQ Installation window is displayed.
4. Click Next to continue.
5. Select Modify, then click Next.
The Features panel is displayed.
6. To change the installation of a feature, complete the following steps:
a) Click the symbol next to the feature name to display a menu.
b) Select the required option from:
• Install this feature
• Install this feature and all its subfeatures (if any)
• Do not install this feature (remove if already installed).
The symbol next to the feature name changes to show the current installation option.
7. When your selections are complete, click Next.
The IBM MQ Setup window displays a summary of the installation you selected.
8. To continue, click Modify then wait until the progress bar is complete.
When the IBM MQ client is successfully installed, the IBM MQ Setup window displays the following
message: Installation Wizard Completed Successfully
9. Click Finish to close the window.
Procedure
1. Obtain the full license from the fully licensed installation media.
The full license file is amqpcert.lic. On Windows it is in the \MediaRoot\licenses directory on
the installation media. It is installed into the bin directory on the IBM MQ installation path.
2. Run the setmqprd command from the installation that you are upgrading:
MQ_INSTALLATION_PATH\bin\setmqprd \MediaRoot\licenses\amqpcert.lic
Related reference
setmqprd
Procedure
1. Globally set the MQS_FORCE_NTLANGID environment variable, to the language identifier of the desired
language, for messages displayed by the queue manager.
You should set the MQS_FORCE_NTLANGID system wide. Otherwise, every user displaying messages
needs to have the environment variable set individually.
The language identifier values, represented in hexadecimal notation, are listed in the following
Microsoft document: Language Identifier Constants and Strings
2. Reboot machines where queue managers are running as a service, for the environment variable to take
effect.
File names
The archive or .zip file names describe the file contents and equivalent maintenance levels.
For IBM MQ 9.4 the client images are available under the following file names:
Long Term Support: 9.4.0 IBM MQ C and .NET redistributable client for Windows x64
9.4.0.0-IBM-MQC-Redist-Win64.zip
Long Term Support: 9.4.0 IBM MQ JMS and Java redistributable client
9.4.0.0-IBM-MQC-Redist-Java.zip
Other considerations
On Windows, the default data path of a non-installed client is %HOMEDRIVE%%HOMEPATH%
\IBM\MQ\data.
You can change the default directory of the data path, by using the MQ_OVERRIDE_DATA_PATH
environment variable.
Note: You must create the directory first, as the directory is not created automatically.
A redistributable client runtime co-exists with a full IBM MQ client or server installation, provided that
they are installed in different locations.
Important: Unpacking a redistributable image into the same location as a full IBM MQ installation is not
supported.
Classpath changes
The classpath used by dspmqver, setmqenv, and crtmqenv commands adds the
com.ibm.mq.allclient.jar and com.ibm.mq.jakarta.client.jar to the environment,
immediately following the com.ibm.mq.jar, and com.ibm.mqjms.jar.
An example of dspmqver output from the redistributable client on Windows:
Name: IBM MQ
Version: 9.4.0.0
Level: p940-940-L220415
BuildType: IKAP - (Production)
Platform: IBM MQ for Windows (x64 platform)
Mode: 64-bit
O/S: Windows 10 Professional x64 Edition, Build 7601: SP1
InstName: MQNI09200004
InstDesc: IBM MQ V9.4.0.0 (Redistributable)
Primary: No
InstPath: C:\Users\johndoe\Desktop\Redist
Related concepts
“Redistributable IBM MQ clients” on page 26
The IBM MQ redistributable client is a collection of runtime files that are provided in a .zip or .tar file
that can be redistributed to third parties under redistributable license terms. This provides a simple way
of distributing applications and the runtime files that they require in a single package.
Probing
After checking the GAC, the .NET runtime attempts to locate required assemblies through probing. The
first location checked is the application base, which is the root location where the application is being
run. See the information on How the Runtime Locates Assemblies on the Microsoft Web site for more
information.
Note that when using this approach, the maintenance level of the assemblies used when building
the .NET application must match those used at runtime - for example an application built at IBM MQ
8.0.0 Fix Pack 4 must be run with the IBM MQ 8.0.0 Fix Pack 4 redistributable client runtime.
Using this approach, a .NET application placed in the \bin directory alongside the IBM MQ assemblies
picks up assemblies from a primary IBM MQ installation (if one exists), falling back to the redistributable
copies.
1. Compile the .NET application under a full IBM MQ installation, that is csc \t:exe \r:System.dll
\r:amqmdnet.dll \lib: \out:nmqwrld.exe nmqwrld.cs.
2. Copy the exe file in the redistributable client .zip file into the \bin directory.
<configuration>
<runtime>
<developmentMode developerInstallation="true" />
</runtime>
</configuration>
set DEVPATH=%MQ_INSTALLATION_PATH%\bin
Starting and stopping trace for the .NET redistributable managed client
There are several different ways to enable trace for IBM MQ .NET applications. For more information, see
Tracing IBM MQ .NET applications.
You normally need to use the trace facility only at the request of IBM Support.
Procedure
• To verify a local server installation, see “Verifying a local server installation using the command line on
Windows” on page 220.
• To verify a server-to-server installation, see “Verifying a server-to-server installation using the
command line on Windows” on page 222.
• To verify a client installation, see “Verifying a client installation on Windows” on page 225.
Procedure
1. Set up your environment:
a) Set up environment variables for use with a particular installation by entering the following
command:
MQ_INSTALLATION_PATH\bin\setmqenv -s
dspmqver
If the command completes successfully, and the expected version number and installation name
are returned, the environment is set up correctly.
2. Create a queue manager called QMA by entering the following command:
crtmqm QMA
Messages indicate when the queue manager is created, and when the default IBM MQ objects are
created.
3. Start the queue manager by entering the following command:
strmqm QMA
runmqsc QMA
end
8. Type some message text on one or more lines, where each line is a different message. Enter a blank
line to end the message input.
The following message is shown:
Your messages are now on the queue and the command prompt is shown.
9. Get the messages from the queue, by entering the following command:
Results
You have successfully verified your local installation.
Procedure
1. On the receiver server:
a) Check which ports are free, for example by running netstat. For more information about this
command, see the documentation of your operating system.
If port 1414 is not in use, make a note of 1414 to use as the port number in step 2 g. Use the same
number for the port for your listener later in the verification. If it is in use, note a port that is not in
use; for example 1415.
b) Set up the environment for the installation you are using by entering the following command at the
command prompt:
crtmqm QMB
Messages tell you that the queue manager has been created, and that the default IBM MQ objects
have been created.
d) Start the queue manager by entering the following command:
strmqm QMB
runmqsc QMB
A message tells you that MQSC has started. MQSC has no command prompt.
f) Define a local queue called RECEIVER.Q by entering the following command:
Where port_number is the name of the port the listener runs on. This number must be the same as
the number used when defining your sender channel.
h) Start the listener by entering the following command:
Note: Do not start the listener in the background from any shell that automatically lowers the
priority of background processes.
i) Define a receiver channel by entering the following command:
end
MQ_INSTALLATION_PATH\bin\setmqenv -s
crtmqm QMA
Messages tell you that the queue manager has been created, and that the default IBM MQ objects
have been created.
c) Start the queue manager, by entering the following command:
strmqm QMA
runmqsc QMA
A message tells you that an MQSC session has started. MQSC had no command prompt.
e) Define a local queue called QMB (to be used as a transmission queue) by entering the following
command:
con-name is the TCP/IP address of the receiver system. If both installations are on the same
system, the con-name is localhost. port is the port you noted in 1 a. If you do not specify a port,
the default value of 1414 is used.
h) Start the sender channel by entering the following command:
START CHANNEL(QMA.QMB)
The receiver channel on the receiver server starts automatically when the sender channel starts.
i) Stop MQSC by entering the following command:
end
dspmq -o installation
If the queue managers are on the same installation, move either QMA to the sender installation
or QMB to the receiver installation by using the setmqm command. For more information, see
setmqm.
k) Put a message on the local definition of the remote queue, which in turn specifies the name of the
remote queue. Enter the following command:
The sample program starts, and your message is displayed. After a pause, the sample ends. Then
the command prompt is displayed.
Results
You have now successfully verified the server-to-server installation.
Procedure
1. Set up the server and client by using the command line.
For more information, see “Setting up the server and client using the command line on Windows” on
page 226.
2. Test the communications between client and server.
For more information, see “Testing communication between a client and a server on Windows” on
page 229.
Related tasks
“Installing an IBM MQ client on Windows” on page 203
Setting up the server and client using the command line on Windows
You can use the command line to create the objects that you need to use to verify a client installation
on Linux. On the server you create a queue manager, a local queue, a listener, and a server-connection
channel. You must also apply security rules to allow the client to connect and make use of the queue
defined. On the client you create a client-connection channel. After setting up the server and client, you
can then use the sample programs to complete the verification procedure.
Procedure
1. Set up the server by following the instructions in “Setting up the server using the command line on
Windows” on page 226.
2. Set up the client by following instructions in “Connecting to a queue manager, using the MQSERVER
environment variable on Windows” on page 228.
What to do next
Test the communications between client and server by following the instructions in “Testing
communication between a client and a server on Windows” on page 229.
Procedure
1. Create a user ID on the server that is not in the mqm group.
This user ID must exist on the server and client. This is the user ID that the sample applications must
be run as, otherwise a 2035 error is returned.
2. You must set various environment variables so that the installation can be used in the current shell.
You can set the environment variables by entering the following command:
MQ_INSTALLATION_PATH\bin\setmqenv -s
You see messages telling you that the queue manager has been created.
4. Start the queue manager by entering the following command:
strmqm QUEUE.MANAGER.1
runmqsc QUEUE.MANAGER.1
A message tells you that an MQSC session has started. MQSC has no command prompt.
6. Define a local queue called QUEUE1 by entering the following command:
DEFINE QLOCAL(QUEUE1)
where non_mqm_user is the user ID created in step 1. A message tells you when the authorization
has been set. You must also run the following command to give the user ID authority to connect:
where client_ipaddr is the IP address of the client system, and non_mqm_user is the user ID created
in step 1. A message tells you when the rule has been set.
10. Define a listener by entering the following command:
where port_number is the number of the port the listener is to run on. This number must be the same
as the number used when defining your client-connection channel in “Installing an IBM MQ client on
Windows” on page 203.
Note: If you omit the port parameter from the command, a default value of 1414 is used for the
listener port. If you want to specify a port other than 1414, you must include the port parameter in
the command, as shown.
11. Start the listener by entering the following command:
end
What to do next
Follow the instructions to set up the client. See “Connecting to a queue manager, using the MQSERVER
environment variable on Windows” on page 228.
Procedure
1. Log in as the userid that you created in Step 1 of “Setting up the server using the command line on
Windows” on page 226.
2. Check the TCP/IP connection. From the client, enter one of the following commands:
• ping server-hostname
• ping n.n.n.n
n.n.n.n represents the network address. You can set the network address in IPv4 dotted decimal
form, for example, 192.0.2.0. Alternatively, set the address in IPv6 hexadecimal form, for
example 2001:0DB8:0204:acff:fe97:2c34:fde0:3485.
If the ping command fails, correct your TCP/IP configuration.
3. Set the MQSERVER environment variable. From the client, enter the following command:
SET MQSERVER=CHANNEL1/TCP/server-address(port)
Where:
• CHANNEL1 is the server-connection channel name.
What to do next
Use the sample programs to test communication between the client and server; see “Testing
communication between a client and a server on Windows” on page 229.
Procedure
1. Change into the MQ_INSTALLATION_PATH\Tools\C\Samples\Bin directory for 32 bit systems or the
MQ_INSTALLATION_PATH\Tools\C\Samples\Bin64 directory for 64 bit systems.
MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
2. You must set certain environment variables so that the installation can be used in the current shell.
You can set the environment variables by entering the following command:
MQ_INSTALLATION_PATH\bin\setmqenv -s
Tip: You might get the error, MQRC_NOT_AUTHORIZED ( 2035 ). By default, channel authentication
is enabled when a queue manager is created. Channel authentication prevents privileged users
accessing a queue manager as an IBM MQ MQI client. For verifying the installation, you can either
When you finish the test, if you do not delete the queue manager, re-enable channel authentication:
Your message is now on the queue that is on the server queue manager.
5. Start the GET program for QUEUE1 on QUEUE.MANAGER.1 by entering the following command:
The sample program starts, and your message is displayed. After a short pause (approximately 30
seconds), the sample ends and the command prompt is displayed again.
Results
You have now successfully verified the client installation.
What to do next
1. You must set various environment variables on the server so that the installation can be used in the
current shell. You can set the environment variables by entering the following command:
MQ_INSTALLATION_PATH\bin\setmqenv -s
endmqm QUEUE.MANAGER.1
3. On the server, delete the queue manager by entering the following command:
dltmqm QUEUE.MANAGER.1
Procedure
The first part of the procedure ensures that there are no IBM MQ programs or processes running:
1. If you are running IBM MQ with the Microsoft Cluster Service (MSCS), remove the queue managers
from MSCS control before uninstalling IBM MQ. Perform the following steps for each queue manager
currently under MSCS control :
a) Take the queue manager resource offline.
b) Destroy the resource instance.
c) Migrate the queue manager files back from shared drives. This step is shown as optional in
Removing a queue manager from MSCS control. However, it is mandatory in this case.
2. Stop all IBM MQ applications associated with the installation you are uninstalling.
3. Close all Managed File Transfer agents.
If you have a Managed File Transfer Agent running, close it by using the fteStopAgent command;
see fteStopAgent (stop a Managed File Transfer Agent).
4. For a server installation, end all IBM MQ activity:
a) Log in as a user in the group mqm.
b) Stop all running queue managers and listeners by using the IBM MQ Explorer, or by entering the
following commands:
i) Set up your environment to work with the installation you want to uninstall by entering the
following command:
MQ_INSTALLATION_PATH\bin\setmqenv -s
endmqm queue_manager_name
iii) For each queue manager, enter the following command to stop any listeners associated with
the queue manager:
endmqlsr -m queue_manager_name
MQ_INSTALLATION_PATH\bin\amqmjpse.exe -r
For more information about the Prepare IBM MQ Wizard, see “Configuring IBM MQ with the Prepare
IBM MQ Wizard” on page 194.
9. Check the Windows event log and restart the system if necessary.
If event ID 10005 is written to the Windows event log, you must restart the system to complete the
uninstallation process.
10. If you are uninstalling the last or only installation of IBM MQ, you can remove all the information
about previous installations that is retained on the system, if you want to. You should use the
ResetMQ.cmd for this purpose; see “Clearing IBM MQ installation settings” on page 174 for more
information.
The following registry values remain after uninstallation:
• My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\IBM\WebSphere MQ\LogDefaultPath
• My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\IBM\WebSphere MQ\WorkPath
• My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\IBM\WebSphere
MQ\LogDefaultPath
• My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\IBM\WebSphere
MQ\WorkPath
Data folders will also remain and are located at MQ_DATA_PATH\Config, where MQ_DATA_PATH is
the location of the IBM MQ data directory. Most of the remaining files contain text such as INI files,
error logs, and FDC files. The executable shared library mqzsd.dll also remains.
If a client is installed on a system where the LogDefaultPath registry value remains from a
previous server installation, a client installation will attempt to create this directory if it does
not already exist. If this behavior is not wanted, remove the LogDefaultPath registry value before
installing the client.
Procedure
1. From the Windows taskbar, open the control panel by clicking Start > Settings > Control Panel, or
Start > Control Panel.
What to do next
Complete the steps that you started in “Uninstalling IBM MQ on Windows” on page 230.
dspmqinst -n installation_name
Procedure
• To silently uninstall IBM MQ by running the msiexec command with a parameter that calls a response
file:
a) Set which features to uninstall, and whether to keep existing queue managers in the response file.
[Response] REMOVE="ALL"
For more information about how to create a response file, including which parameters you can
specify, see “Creating and using a response file for server installation” on page 184.
b) To silently uninstall IBM MQ using the response file, enter the following
command: msiexec /x {product_code} /l*v "c:\removal.log" /q USEINI="response_file"
INSTALLATIONNAME="installation_name"
• To uninstall IBM MQ by entering the required msiexec parameters on the command line, enter one of
the following commands:
– To invoke an interactive uninstallation giving you the option to remove queue manager data
(providing there are no other IBM MQ installations remaining):
If you are running IBM MQ on a Windows system with User Account Control (UAC) enabled, you
might see Open File - Security Warning dialog boxes during uninstallation that list International
Business Machines Limited as the publisher. Click Run to allow the uninstallation to continue.
– To invoke a silent uninstallation that does not remove any queue manager data:
– To invoke a silent uninstallation and remove any queue manager data (only valid when removing the
final server installation):
– To monitor the progress of the uninstalling process and not remove any queue manager data:
If you are running IBM MQ on a Windows system with User Account Control (UAC) enabled, you
might see Open File - Security Warning dialog boxes during uninstallation that list International
Business Machines Limited as the publisher. Click Run to allow the uninstallation to continue.
– To invoke a silent uninstallation and not remove any queue manager data:
Results
After the command is entered, the command prompt immediately reappears and IBM MQ is uninstalled
as a background process. If you entered parameters to produce a log, check this file to see how the
uninstallation is progressing. If the uninstallation finishes successfully, you see the message Removal
completed successfully in the log file.
What to do next
Complete the steps that you started in “Uninstalling IBM MQ on Windows” on page 230.
Procedure
1. Follow the instructions on the MQParms installation pages to uninstall IBM MQ non-interactively. See:
“Installing the server using the MQParms command” on page 188.
a) Set the ADDLOCAL parameter to empty (ADDLOCAL="").
b) Set the REMOVE parameter to "ALL" (REMOVE="ALL").
2. If you have multiple versions of IBM MQ installed on your system, specify the product code that
identifies the installation you want to remove.
Type the following command:
where
• parameter_file is the file that contains the required parameter values. If this file is not in the
same folder as MQParms.exe, specify the full path and file name. If you do not specify a parameter
file, the default is MQParms.ini.
• product_code is the value shown for MSIProdCode in the output of the following command:
dspmqinst -n installation_name
where installation_name is the name of the installation you want to remove. An example of a
product code is {0730749B-080D-4A2E-B63D-85CF09AE0EF0}.
What to do next
Complete the steps that you started in “Uninstalling IBM MQ on Windows” on page 230.
What to do next
Complete the steps that you started in “Uninstalling IBM MQ on Windows” on page 230.
Procedure
• “Installing and uninstalling AMS on Multiplatforms” on page 237.
• “Installing Managed File Transfer ” on page 243.
• “Installing MQ Telemetry” on page 249.
Procedure
• “Installing AMS on Multiplatforms” on page 237
• “Uninstalling AMS on Multiplatforms” on page 240
Procedure
• “Installing Advanced Message Security on AIX” on page 237
• “Installing Advanced Message Security on IBM i” on page 238
• “Installing Advanced Message Security on Linux” on page 239
• “Installing AMS on Windows using the Launchpad” on page 240
Procedure
1. Log on as root.
2. Change the directory to the location of the installation packages.
3. Start the system management interface tool (SMIT).
The system management menu is displayed.
4. Select the required SMIT window using the following sequence:
Results
Advanced Message Security has been installed successfully.
Procedure
1. Log on as root.
2. Set your current directory to the location of the installation file. The location might be a network
location, or a local file system directory.
3. Run the following command:
Note the period, signifying the current directory, following the -d parameter.
Results
Advanced Message Security component has been installed successfully.
Procedure
Install AMS using the command:
Results
The AMS component has been installed successfully.
Once AMS is installed on an IBM MQ server installation, any:
• Queue managers that are subsequently started enable security policy management features.
What to do next
See Setting up certificates and the keystore configuration file on IBM i for details on setting up your
security policy.
Procedure
1. Log on as root.
2. Set your current directory to the location of the installation file. The location might be a network share,
or a local file system directory.
3. Optional: If this installation is not the first installation on the system, run the crtmqpkg command to
create a unique set of packages to install on the system.
Before you can run the crtmqpkg command on Linux, you must have the pax and rpmbuild
commands installed. These commands are not supplied as part of the product. You must get them
from your Linux distribution supplier. The rpmbuild command is located in the rpm-build package.
a) Enter the following command:
./crtmqpkg suffix
where suffix is a name of your choosing, that uniquely identifies the installation packages on the
system. suffix is not the same as an installation name, although the names can be identical. suffix is
limited to 16 characters in the ranges A-Z, a-z, and 0-9.
Note: This command creates a full copy of the installation packages in a subdirectory of /var/tmp.
You must ensure that the system has enough space before running the command.
b) Set your current directory to the location specified when the crtmqpkg command completes.
This directory is a subdirectory of /var/tmp/mq_rpms, in which the unique set of packages is
created. The packages have the suffix value contained within the filename. For example, using a
suffix of "1":
./crtmqpkg 1
there is a subdirectory named /var/tmp/mq_rpms/1/i386 and the packages are renamed, for
example:
From: MQSeriesAMS-V.R.M-F.i386.rpm
To: MQSeriesAMS_1-V.R.M-F.i386.rpm
where:
V
Represents the version of the product that you are installing
R
Represents the release of the product that you are installing
M
Represents the modification of the product that you are installing
F
Represents the fix pack level of the product that you are installing
4. In the command line, issue the following command:
Results
Advanced Message Security has been installed successfully.
Procedure
1. Access the IBM MQ installation image.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
2. Locate Setup.exe in the base directory of the IBM MQ installation image.
• From a network location, this location might be m:\instmqs\Setup.exe
• From a local file system directory, this location might be C:\instmqs\Setup.exe
3. Start the installation process.
Either run Setup.exe from a command prompt, or double-click Setup.exe from Windows Explorer.
Note: If you are installing on a Windows system with UAC enabled, accept the Windows prompt to
allow the launchpad to run as elevated. During installation, you might also see Open File - Security
Warning dialog boxes that list International Business Machines Limited as the publisher. Click Run to
allow the installation to continue.
The IBM MQ Installation window is displayed.
4. Follow the instructions on screen.
Procedure
• “Uninstalling AMS on AIX” on page 241
• “Uninstalling AMS on Linux” on page 242
• “Uninstalling AMS on Windows” on page 243
Related tasks
“Installing AMS on Multiplatforms” on page 237
Procedure
1. Stop all IBM MQ applications associated with the installation you are uninstalling.
2. For a server installation, end any IBM MQ activity associated with the installation you are uninstalling:
a) Log in as a user in the group mqm.
b) Set up your environment to work with the installation you want to uninstall. Enter the following
command:
. MQ_INSTALLATION_PATH/bin/setmqenv
dspmq -o installation
d) Stop all running queue managers associated with the installation you want to uninstall. Enter the
following command for each queue manager:
endmqm QMgrName
e) Stop any listeners associated with the queue managers. Enter the following command for each
queue manager:
endmqlsr -m QMgrName
3. Log in as root.
4. Uninstall AMS component using either installp or smit. If AMS component was installed in a
non-default location, you must use installp to uninstall.
• Uninstall using installp by entering one of the following commands:
– For an installation in the default location /usr/mqm
installp -u mqm.ams.rte
installp -R
usil -u mqm.ams.rte
where usil is the path of the User Specified Installation Location (USIL) specified when the
product was installed.
• Uninstall using smit:
a. Select the required smit window using the following sequence:
Results
The Advanced Message Security component has been uninstalled.
Procedure
1. Stop all IBM MQ applications associated with the installation you are uninstalling.
2. For a server installation, end any IBM MQ activity associated with the installation you are uninstalling:
a) Log in as a user in the group mqm.
b) Set up your environment to work with the installation you want to uninstall. Enter the following
command:
. MQ_INSTALLATION_PATH/bin/setmqenv
dspmq -o installation
d) Stop all running queue managers associated with the installation you want to uninstall. Enter the
following command for each queue manager:
endmqm QMgrName
e) Stop any listeners associated with the queue managers. Enter the following command for each
queue manager:
endmqlsr -m QMgrName
3. Log in as root.
4. Run the following command:
rpm -e package_name
Results
The Advanced Message Security component has been uninstalled.
Procedure
1. Download the compressed file that contains the installation image, then uncompress it into a
temporary directory.
2. Navigate to that directory, then double-click setup.exe to start the installation process.
The IBM MQ Installation Launchpad window is displayed.
3. Click the IBM MQ Installation.
4. Click Launch IBM MQ Installer. Click Next until the IBM MQ Program Maintenance panel is displayed
with a welcome message.
If this panel is not displayed, IBM WebSphere MQ for Windows 7.5 is not installed on this machine.
When presented with the option, select to remove/maintain or upgrade.
5. Select Maintain or upgrade an existing instance, then click Next.
6. If there are any existing queue managers, the Removing Server feature panel is displayed.
Click one of the following options, then click Next:
• Keep - keep existing queue managers and their objects.
• Remove - remove existing queue managers and their objects.
The Program Maintenance panel is displayed, with a summary of the installation to be removed.
7. Click Modify and click Next.
8. On the list of available IBM MQ features, click Advanced Message Security, select Do not install this
feature (remove if already intalled), and click Next.
The Ready to modify IBM MQ panel appears with the summary of your changes.
9. Click Modify and Next on the following panel to continue.
Results
Selected features of Advanced Message Security component have been removed.
Procedure
1. Decide which Managed File Transfer components to install.
Managed File Transfer can be installed as four different options, depending on your operating system
and overall setup. These options are Managed File Transfer Agent, Managed File Transfer Service,
Managed File Transfer Logger, or Managed File Transfer Tools.
To decide which components to install, review the product options and topology information in the
following topics:
• Managed File Transfer product options
• Managed File Transfer topology overview
2. Install IBM MQ, including Managed File Transfer components.
For information about which specific components to install for your platform, including Managed File
Transfer, see “IBM MQ components and features” on page 6.
For more information about installing IBM MQ on AIX, Linux, and Windows, see the appropriate
information for your platform:
On AIX and Linux platforms, there is an additional Managed File Transfer Base installation component.
This component contains files common to all of the installation options. You must install the Managed File
Transfer Base component before installing any of the Agent, Logger, Service, or Tools components.
For more information about the IBM MQ components that are required for each product option on AIX and
Linux platforms, see the following topics:
Redistributable
Managed File
Agent command Service Tools command Logger command Transfer package
Command set command set set set set
fteAnt
fteCancelTransfer
fteChangeDefaultConfigurationOptio
ns
Redistributable
Managed File
Agent command Service Tools command Logger command Transfer package
Command set command set set set set
fteCleanAgent
fteCreateAgent
fteCreateBridgeAgent
fteCreateEnvironment
fteCreateMonitor
fteCreateTemplate
fteCreateTransfer
fteDeleteAgent
fteDeleteMonitor
fteDeleteScheduledTransfer
fteDeleteTemplates
fteDisplayVersion
fteListAgents
fteListMonitors
fteListScheduledTransfers
fteListTemplates
fteObfuscate
ftePingAgent
fteRAS
Redistributable
Managed File
Agent command Service Tools command Logger command Transfer package
Command set command set set set set
fteSetAgentLogLevel
fteSetAgentTraceLevel
fteSetupCommands
fteSetupCoordination
fteShowAgentDetails
fteStartAgent
fteStopAgent
Notes:
1. From IBM MQ 9.3.0, the Redistributable Managed File Transfer package also includes the
Redistributable Managed File Transfer Logger. For more information, see Downloading and configuring
Redistributable Managed File Transfer components.
Installing MQ Telemetry
Installation tasks associated with MQ Telemetry are grouped in this section.
Procedure
• Install IBM MQ, including MQ Telemetry.
For information about which specific components to install for your platform, including MQ Telemetry,
see “IBM MQ components and features” on page 6.
For more information about installing IBM MQ on AIX, Linux, or Windows, see the appropriate
information for your platform:
MQ Telemetry overview
See Introduction to MQ Telemetry for general details about MQ Telemetry.
Procedure
• Verify your installation in one of the following ways:
• By using IBM MQ Explorer as described in “Verifying the installation of MQ Telemetry by using IBM
MQ Explorer” on page 251.
• By using the command line as described in “Verifying the installation of MQ Telemetry using the
command line” on page 253.
Procedure
1. Start IBM MQ Explorer.
On Windows and Linux systems, you can start IBM MQ Explorer by using the system menu, the
MQExplorer executable file, the mqexplorer command, or the strmqcfg command.
2. Open the Welcome to MQ Telemetry page.
• To use an existing queue manager, click on IBM MQ\Queue Managers\qMgrName\Telemetry
folder to open the Welcome to MQ Telemetry page.
• If, for the reasons mentioned, you decide to use a new queue manager,
a. Click Queue Managers > New > Queue Manager.
b. Type MQTTVerification as the Queue manager name > Next > Next > Next.
c. Change the default port in Listen on port number, if the port is in use > Finish.
d. When the queue manager starts, click on IBM MQ\Queue
Managers\MQTTVerification\Telemetry folder to open the Welcome to MQ Telemetry
page.
3. From the Welcome to MQ Telemetry page in IBM MQ Explorer, click Define sample configuration.
If this link is not present, and instead you see the text, "The sample configuration has been set up for
this queue manager", then telemetry has already been configured. Proceed to step “6” on page 252.
If you clicked Define sample configuration, the page opens, and lists actions that are to be performed
as part of the sample configuration.
4. Leave Launch MQTT client utility checked, if you want to automatically start the MQTT client utility.
The check box is selected by default.
5. Click Finish.
6. Click Connect.
In the MQTT client utility panel, ensure that the host and port names are correct.
If you did not automatically start the MQTT client utility panel in step 4, you can start it either by using
a direct link from the Welcome to MQ Telemetry panel, or by right-clicking a NON-TLS channel, which
allows you to control the channel it runs on.
The client history records a Connected event.
7. Click Subscribe.
The client history records a Subscribed event.
8. Click Publish.
The client history records a Published and Received event.
Results
If the publish/subscribe finishes successfully, the MQ Telemetry installation is verified.
Procedure
1. Decompress the IBM Messaging Telemetry Clients SupportPac into a directory of your own choosing.
This task uses the mqttv3app sample Java application, and the associated mqttv3 Java client library.
If you have the earlier (MA9B) version of the SupportPac, the sample applications and client libraries
are in the CLIENTPACKDIR/SDK/clients/java directory, where CLIENTPACKDIR is the directory in
which you decompressed the client pack.
Note: The later (MA9C) version of the IBM Messaging Telemetry Clients SupportPac does not have
the /SDK/ directory, and does not include a compiled copy of the mqttv3app sample application. If
you have this version of the SupportPac, you need to compile the application manually, then create
the /SDK/ directory and contents. For the latest information about available clients and samples, see
IBM MQ Telemetry Transport sample programs.
2. Configure MQ Telemetry.
MQINSTDIR\mqxr\samples\SampleMQM.bat
MQINSTDIR/mqxr/samples/SampleMQM.sh
where MQINSTDIR is the installation directory for this installation of IBM MQ.
A queue manager called MQXR_SAMPLE_QM is created, and MQ Telemetry is configured.
3. Run the mqttv3app sample Java application to create a subscription.
• On Windows systems, enter the following commands in a command line:
java -cp
"CLIENTPACKDIR\SDK\clients\java\org.eclipse.paho.sample.mqttv3app.jar;
CLIENTPACKDIR\SDK\clients\java\org.eclipse.paho.client.mqttv3.jar"
org.eclipse.paho.sample.mqttv3app.Sample -a subscribe
java -cp
CLIENTPACKDIR/SDK/clients/java/org.eclipse.paho.sample.mqttv3app.jar:
CLIENTPACKDIR/SDK/clients/java/org.eclipse.paho.client.mqttv3.jar
org.eclipse.paho.sample.mqttv3app.Sample -a subscribe
java -cp
"CLIENTPACKDIR\SDK\clients\java\org.eclipse.paho.sample.mqttv3app.jar;
CLIENTPACKDIR\SDK\clients\java\org.eclipse.paho.client.mqttv3.jar"
org.eclipse.paho.sample.mqttv3app.Sample -m "Hello from an MQTT v3 application"
• On AIX or Linux systems, enter the following command in a second shell window:
java -cp
CLIENTPACKDIR/SDK/clients/java/org.eclipse.paho.sample.mqttv3app.jar:
CLIENTPACKDIR/SDK/clients/java/org.eclipse.paho.client.mqttv3.jar
org.eclipse.paho.sample.mqttv3app.Sample -m "Hello from an MQTT v3 application"
The message Hello from an MQTT v3 application, that you typed into the second command
line or shell window, is published by that application and received by the application in the first
window. The application in the first window shows it on the screen.
5. Press Enter in the first command line or shell window to end the subscribing application.
6. Remove the queue manager created by the SampleMQM script.
• On Windows systems, enter the following command in a command line:
MQINSTDIR\mqxr\samples\CleanupMQM.bat
MQINSTDIR/mqxr/samples/CleanupMQM.sh
What to do next
If you encounter any problems during the verification process, see MQ Telemetry troubleshooting. You
can also view the error log:
• On Windows systems, the default location for the queue manager log is
MQINSTDIR\qmgrs\MQXR_SAMPLE_QM\mqxr
• On AIX and Linux systems, the default location for the queue manager log is /var/mqm/qmgrs/
MQXR_SAMPLE_QM/mqxr/
For supported levels of RHEL 8, components are found under the Advanced/RDQM/PreReqs/el8/
directory. For supported levels of RHEL 9, components are found under the Advanced/RDQM/
PreReqs/el9/ directory.
Attention: If you are using UEFI secure boot, you might need to enroll the key for the DRBD
kernel module. See https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-linbit-packages. If
UEFI secure boot is in use and the key is not enrolled, you will see the following error message.
modprobe: ERROR: could not insert 'drbd': Required key not available
The DRBD and Pacemaker packages are signed with the LINBIT GPG key. Use the following command to
import the public LINBIT GPG key:
Without this step, an RPM install of these packages issues the following warnings:
You can have multiple IBM MQ installations on each server, but only one of these installations should be
an RDQM installation.
Attention: You should retain the installation media, in case there is a need to revert to this level,
after upgrading to a later level.
Procedure
Complete the following steps on each node:
1. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
2. Change into the directory containing the installation image.
3. Determine which DRBD kernel module is needed for the system on which RDQM is being installed.
See https://ibm.biz/mqrdqmkernelmods for up-to-date kernel module information. Helper scripts are
provided in the kmod-drbd-9 directories. For example, on a RHEL 8.10 system, running the helper
script Advanced/RDQM/PreReqs/el8/kmod-drbd-9/modver returns the following information,
identifying the kernel module that you need to install:
4. Install the appropriate DRBD kernel module that you identified in step 1. For example, for RHEL 8.10
you run the following command:
5. Install the required DRBD utilities. For example, for RHEL 8.10 you run the following command:
6. Install Pacemaker. For example, for RHEL 8.10 you run the following command:
The Pacemaker installer reports any missing packages that also need to be installed before the install
can complete successfully.
7. Accept the IBM MQ license:
./mqlicense.sh
8. Install IBM MQ. This is like a standard IBM MQ install. At the minimum, you must install the following:
9. Install RDQM:
What to do next
You can now configure the Pacemaker cluster and replicated data queue managers, or you can configure
disaster recovery replicated data queue managers. See RDQM high availability or RDQM disaster recovery.
Related concepts
“Migrating replicated data queue managers” on page 460
When you need to migrate replicated data queue managers (RDQMs), you must upgrade all nodes in a
sequence. Do not try to operate with the nodes at different levels.
Related tasks
“Applying maintenance level updates for RDQM” on page 301
There are different procedures for applying maintenance level updates to a high availability (HA)
configuration, a disaster recovery (DR) configuration, or a combined DR/HA configuration.
“Removing maintenance level updates for RDQM” on page 305
There are different procedures for removing maintenance level updates to a high availability (HA)
configuration, a disaster recovery (DR) configuration, or a combined DR/HA configuration.
Procedure
• To uninstall HA RDQM support if it is no longer required:
a) Delete the RDQM HA queue managers in the HA group, see Deleting an HA RDQM.
b) Delete the RDQM HA group, see Deleting the Pacemaker cluster (HA group).
c) Log in as root or switch to superuser using the su command.
d) If you configured a firewall, run the script MQ_INSTALLATION_PATH/samp/rdqm/firewalld/
unconfigure.sh on each node to undo the firewall configuration. You must run this script as
root.
e) To uninstall IBM MQ and RDQM:
f) Uninstall Pacemaker:
g) Uninstall DRBD:
e) Uninstall Pacemaker:
f) Uninstall DRBD:
f) Uninstall Pacemaker:
g) Uninstall DRBD:
Related reference
rdqmadm (administer replicated data queue manager cluster)
Procedure
• Uninstall HA RDQM support and upgrade RDQM and IBM MQ.
a) Suspend the HA group on the node, by entering the following command:
rdqmadm -s
d) Uninstall Pacemaker:
e) Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded with
the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
rdqmadm -r
c. Uninstall Pacemaker:
d. Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded
with the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
c. Uninstall Pacemaker:
d. Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded
with the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
rdqmadm -s
d. Uninstall Pacemaker:
e. Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded
with the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
rdqmadm -r
rdqmadm -s
d. Uninstall Pacemaker:
e. Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded
with the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
rdqmadm -r
crtmqpkg PACKAGE_SUFFIX
Procedure
To create unique installation packages for RDQM:
1. Decompress the downloaded software to your installation directory, see “Installing the first IBM MQ
installation on Linux using the rpm command” on page 111.
2. From your installation directory, create unique packages for the IBM MQ components:
./crtmqpkg RDQM
RPMDIR=install_directory_path/MQServer/Advanced/RDQM SPECDIR=install_directory_path/MQServer/
Advanced/RDQM/repackage ./crtmqpkg RDQM
cd /var/tmp/mq_rpms/RDQM/x86_64
Update DRBD kernel module before nodes are rebooted into a new kernel
If an OS update requires a DRBD kernel update, you should follow this procedure before you reboot the
nodes into the new OS kernel.
rdqmadm -s
yum update
d) Determine which DRBD kernel module is compatible with the new kernel level (see https://
ibm.biz/mqrdqmkernelmods for guidance on which kernel module is compatible). For example,
for moving to RHEL 9.2 (5.14.0-284.11.1) with IBM MQ 9.4, the required kernel module is kmod-
drbd-9.2.7+ptf.14.gdc5453714_5.14.0_284.11.1-1.x86_64.
e) Update the DRBD kernel module with the one you identified in step 4. For example:
f) Reboot the node. This will reboot to the new kernel level:
sudo reboot
rdqmadm -r
You can now repeat this procedure for the next node in the HA group.
• To update the DRBD kernel module before nodes are rebooted into a new kernel for RDQM DR:
a) Update the OS and the DRBD kernel module on the DR secondary node:
a. Log in as root, or with sufficient authority to run the following commands.
b. Update the OS. For example:
yum update
c. Determine which DRBD kernel module is compatible with the new kernel level (see https://
ibm.biz/mqrdqmkernelmods for guidance on which kernel module is compatible). For example,
for moving to RHEL 9.2 (5.14.0-284.11.1) with IBM MQ 9.4, the required kernel module is
kmod-drbd-9.2.7+ptf.14.gdc5453714_5.14.0_284.11.1-1.x86_64.
d. Update the DRBD kernel module with the one you identified in step c. For example:
e. Reboot the node. This will reboot to the new kernel level:
sudo reboot
c. Determine which DRBD kernel module is compatible with the new kernel level (see https://
ibm.biz/mqrdqmkernelmods for guidance on which kernel module is compatible). For example,
for moving to RHEL 9.2 (5.14.0-284.11.1) with IBM MQ 9.4, the required kernel module is
kmod-drbd-9.2.7+ptf.14.gdc5453714_5.14.0_284.11.1-1.x86_64.
d. Update the DRBD kernel module with the one you identified in step c. For example:
e. Reboot the node. This will reboot to the new kernel level:
sudo reboot
rdqmadm -s
yum update
d. Determine which DRBD kernel module is compatible with the new kernel level (see https://
ibm.biz/mqrdqmkernelmods for guidance on which kernel module is compatible). For example,
for moving to RHEL 9.2 (5.14.0-284.11.1) with IBM MQ 9.4, the required kernel module is
kmod-drbd-9.2.7+ptf.14.gdc5453714_5.14.0_284.11.1-1.x86_64.
e. Update the DRBD kernel module with the one you identified in step d. For example:
f. Reboot the node. This will reboot to the new kernel level:
sudo reboot
rdqmadm -r
You can now repeat this procedure for the next node in the HA group.
b) Update the OS and the DRBD kernel module on your main site. Complete the following steps on
each node in the group in turn.
a. Log in as root, or with sufficient authority to run the following commands.
b. Suspend the node from the HA group:
rdqmadm -s
yum update
f. Reboot the node. This will reboot to the new kernel level:
sudo reboot
rdqmadm -r
You can now repeat this procedure for the next node in the HA group.
Update DRBD kernel module after a node has rebooted into a new kernel
If a node was rebooted to a new OS kernel level and the DRBD kernel module is now incompatible with
the current OS kernel level then RDQM might fail to start correctly on the node.
$ rdqmstatus
Node: mqhavm07.exampleco.com
OS kernel version: 5.14.0-362.18.1
DRBD OS kernel version: 5.14.0-362.18.1
DRBD version: 9.2.7
DRBD kernel module status: Loaded
To recover from this situation, complete the following procedure in turn on each node that has been
rebooted into a new kernel.
Procedure
1. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
2. Determine which DRBD kernel module is now needed for the system. See https://ibm.biz/
mqrdqmkernelmods for up-to-date kernel module information. Helper scripts are provided in the
kmod-drbd-9 directories.
kmod-drbd-9.2.7+ptf.14.gdc5453714_4.18.0_513.5.1-1.x86_64.rpm
3. Update the DRBD kernel module to the one that you identified in step 2. For example:
sudo reboot
export IATEMPDIR=/var/tmp
You must export the environment variable before you run the ./Setup.bin command .
Procedure
1. Download the Linux version of stand-alone IBM MQ Explorer.
Follow this link to Fix Central, then select the Linux version of the download package.
2. Create an installation directory on the target system.
3. Decompress the tar.gz file that you downloaded, for example, 9.4.0.0-IBM-MQ-Explorer-
LinuxX64.tar.gz, to this directory.
4. Install IBM MQ Explorer in one of the following ways:
• To install by using the installation wizard:
a. Log in as root and navigate to the directory where you decompressed the files.
b. Run the command ./Setup.bin (as root) and follow the onscreen instructions.
c. Start IBM MQ Explorer either by using the system menu entry, or by using the MQExplorer
executable file in the installation directory.
• To install silently, by using a response file:
a. Use a text editor to modify the example response file, silent_install.resp, as required.
Make your changes in line with the comments in the file.
Note: Before running a silent install, the LICENSE_ACCEPTED property in the response file must
be set to TRUE to indicate that you agree to the terms of the product license. (The license can be
found in the license folder of the product .zip file).
b. Start the silent installation by using the following command:
./Setup.bin -f silent_install.resp
./Setup.bin -i console
Note: If you see the following error message, this might be because you have the DISPLAY
environment variable set but do not have a valid X configuration:
Unable to load and to prepare the installer in console or silent mode.
If you do see this message, unset your DISPLAY environment variable and retry the operation in
console mode.
Procedure
• To uninstall IBM MQ Explorer with the provided uninstaller, go to the installation directory and then
go in the directory named '_IBM MQ Explorer V9.4_installation', then run (as root) the
application named Change IBM MQ Explorer V9.4 Installation.
• If you need to get back to a clean system because you want to reinstall IBM MQ Explorer after
uninstalling it by deleting the files rather by than using the Change IBM MQ Explorer V9.4 Installation
application, complete the following steps:
a) Locate and edit the file .com.zerog.registry.xml.
The .com.zerog.registry.xml file is found either in the /var directory or alternatively in the
user's home directory. Make a backup of this file then edit it by deleting the section that begins with
the XML tag: '<product name="IBM MQ Explorer ' or '<product name="IBM WebSphere
MQ Explorer ' and ends with the next </product> tag. Save the file.
b) Delete the directory /etc/opt/ibm/MQ_Explorer and/or /etc/opt/ibm/
WebSphere_MQ_Explorer.
You should now be able to reinstall IBM MQ Explorer as described in “Installing the stand-alone IBM
MQ Explorer on Linux” on page 268.
Procedure
1. Download the Windows version of the stand-alone IBM MQ Explorer.
Follow this link to Fix Central and select the Windows version of the download package.
2. Create an installation directory on the target system.
3. Decompress the .zip file that you downloaded, for example, 9.4.0.0-IBM-MQ-Explorer-
Win64.zip, to this directory.
4. Install IBM MQ Explorer in one of the following ways:
• To install by using the installation wizard:
a. Double-click Setup.exe and follow the onscreen instructions.
b. Start the IBM MQ Explorer either by using the Start menu entry, or by using the MQExplorer
executable file in the installation directory.
• To install silently, by using a response file:
a. Use a text editor to modify the example response file, silent_install.resp, as required.
Make your changes in line with the comments in the file.
Note: Before installing silently, the LICENSE_ACCEPTED property in the response file must be
sent to TRUE to indicate that you agree to the terms of the product license. (The license can be
found in the license folder of the product .zip file).
b. Start the silent installation by using the following command:
Setup.exe -f silent_install.resp
Setup.exe -i console
What to do next
After IBM MQ Explorer has been installed, you can run it from the Windows start menu or by using the
MQExplorer command. For more information, see Launching IBM MQ Explorer.
Related tasks
Launching IBM MQ Explorer
Procedure
• To uninstall the stand-alone IBM MQ Explorer by using the Control Panel, use either Add or Remove
Programs or Programs and Features as appropriate.
• To perform a silent uninstallation, go to the directory named _IBM MQ Explorer
V9.4_installation in the installation directory and run the following command:
Installing MQIPT
IBM MQ Internet Pass-Thru (MQIPT) is available on AIX, Linux, and Windows. You can install MQIPT
wherever you want on your computer, and can have several installations on the same system.
mkdir /opt/mqipt/installation1
When you unpack the MQIPT installation archive file, a directory called mqipt is created, and the
installation files are placed in this directory. On Windows, the MQIPT installation archive file also
contains a directory called META-INF that contains files relating to code signature verification.
3. Unpack the installation archive file into the MQIPT directory by using an appropriate tool for your
platform.
Note: The tar command on AIX and Linux systems must be run as the root user when installing
MQIPT. Failure to run the tar command as root is likely to result in "permission denied" errors.
For example, on a Linux platform, you might use the following commands, if the archive file was
downloaded to the /tmp directory:
cd /opt/mqipt/installation1
su root
tar xzvf /tmp/9.4.0.0-IBM-MQIPT-LinuxX64.tar.gz
4. To increase security, set the file permissions for the installed files so that they are read-only:
• On AIX and Linux systems, you can use the chmod command. For
example:
MQIPT_PATH=/opt/mqipt/installation1/mqipt
export MQIPT_PATH
6.
On Windows platforms, create MQIPT icons on the Start menu.
Run the following command from an administrator command prompt:
where
• mqipt_path is the directory where MQIPT is installed.
• installation_name is a name that you choose to distinguish this installation from any other. The name
is appended to the name of the MQIPT icons.
What to do next
Follow the scenarios in Getting started with IBM MQ Internet Pass-Thru to verify that MQIPT is installed
correctly, and to configure MQIPT in simple scenarios.
For information on configuring and administering MQIPT, see Administering and configuring IBM MQ
Internet Pass-Thru.
Uninstalling MQIPT
Follow this procedure to uninstall MQIPT.
Procedure
1. Make appropriate backups in case you later have to restore any data. See Making backups for details.
2. Prevent the system from trying to start MQIPT automatically, if the MQIPT service has been installed.
• On AIX and Linux, remove the MQIPT service by changing to the bin
directory in the MQIPT installation path, and issuing the following command:
./mqiptService -remove
• On Windows, follow these steps to stop and remove the MQIPT service:
a. Stop MQIPT from the Windows services panel.
b. Open an administration command prompt, go to the bin directory in the MQIPT installation
path, and enter the command:
mqiptService -remove
Note: Only the installation of MQIPT that installed the service can be used to remove it. Attempting to
remove the service using a different installation causes error MQCPE083.
3. On Windows platforms, remove the MQIPT icons from the Start menu by clicking the
MQIPT icon, Remove these icons on the Start menu.
4. Delete the directory where MQIPT is currently installed.
You will need to have root access to the system in order to delete the MQIPT installation directory.
Procedure
1. Download the stand-alone IBM MQ Web Server installation file.
Follow this link to Fix Central. Select the correct version of the download package for your
system. The download package is a tar.gz file, for example 9.4.0.0-IBM-MQ-Web-Server-
LinuxX64.tar.gz.
2. Create an installation directory on the target system.
3. Decompress the tar.gz file that you downloaded to the installation directory.
What to do next
Configure the mqweb server to run the IBM MQ Console and REST API. For more information, see
Configuring the stand-alone IBM MQ Web Server.
Characteristics of fixes
The application of a fix pack, cumulative security update (CSU), or interim fix on Multiplatforms, or a
program temporary fix (PTF) on z/OS is called a fix. You apply fixes by using a maintenance installation
tool.
On the following platforms, fixes that are applied by using a maintenance installation tool can be rolled
back completely if no queue manager migration has taken place:
• AIX
• Windows
and IBM MQ is returned to its previous code level.
On all other platforms you must reinstall the product.
• On AIX, Linux, and Windows, you associate a queue manager with an installation, and
start the queue manager. In IBM MQ, running multiple queue managers at different command levels
on the same server is termed queue manager coexistence.
• AIX
• Linux
• Windows
• IBM i
An irreversible upgrade implies that you must back up the queue managers, or your system, before
upgrading, to be able to restore your queue managers. Taking a backup of a queue manager requires you
to stop the queue manager. If you do not take a backup, you are not able to restore IBM MQ to its previous
level. Any changes you make on the new level cannot be restored onto the backup system. Changes
include the creation or deletion of persistent messages, and changes to queue managers, channels,
topics, and queues.
Related tasks
“Applying maintenance to IBM MQ” on page 278
Maintenance is the application of a reversible fix. Any changes to queue manager data are compatible
with the previous code level.
“Upgrading IBM MQ” on page 320
Upgrading is the process of taking an existing IBM MQ installation and upgrading to a new level of code.
“Migrating IBM MQ” on page 336
Migration is the conversion of programs and data to work with a new code level of IBM MQ. Some
types of migration are required, and some are optional. Queue manager migration is never required after
applying a maintenance level update, that does not change the command level. Some types of migration
are automatic, and some are manual. Queue manager migration is typically automatic and required after
releases and manual and optional after a maintenance level upgrade that introduces a new function.
Application migration is typically manual and optional.
Procedure
• To check the IBM MQ maintenance level:
– Type the command dspmqver, or DSPMQMVER on IBM i. The returned messages include the three-
digit VRM or, if maintenance has been applied, the four-digit VRMF.
– Use the REST API GET method.
Procedure
1. Log in as a user in group mqm.
2. Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished all of
the file transfers that they were engaged in. There should be no incomplete transfers associated with
the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
3. Stop the mqweb server that is associated with the IBM MQ installation:
a) Check whether the mqweb server is running by entering the following command:
dspmqweb status
endmqweb
4. End all the activity of queue managers associated with the IBM MQ installation.
a) Run the dspmq command to list the state of all the queue managers on the system.
Run either of the following commands from the installation that you are updating:
dspmq -o installation -o status displays the installation name and status of queue
managers associated with all installations of IBM MQ.
dspmq -a displays the status of active queue managers associated with the installation from
which the command is run.
b) Use the MQSC command DISPLAY LSSTATUS to list the status of listeners associated with a
queue manager, as shown in the following example:
c) Run the endmqm command to stop each running queue manager associated with this installation.
-c
endmqm -w QmgrName
-i
-p
endmqlsr -m QMgrName
USIL_Directory is the installation parent directory. IBM MQ is installed underneath the directory.
For example, if /USIL1 is specified, the IBM MQ product files are located in /USIL1/usr/mqm. /
USIL1/usr/mqm is known as the MQ_INSTALLATION_PATH.
Related tasks
Stopping a queue manager
Related reference
dspmq
To back out a maintenance update, as the user root, issue the command:
Otherwise:
Procedure
1. Log in as a user in group mqm.
2. Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished all of
the file transfers that they were engaged in. There should be no incomplete transfers associated with
the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
3. End all the activity of queue managers associated with the IBM MQ installation.
a) Run the dspmq command to list the state of all the queue managers on the system.
Run either of the following commands from the installation that you are updating:
dspmq -o installation -o status displays the installation name and status of queue
managers associated with all installations of IBM MQ.
dspmq -a displays the status of active queue managers associated with the installation from
which the command is run.
c) Run the endmqm command to stop each running queue manager associated with this installation.
-c
endmqm -w QmgrName
-i
-p
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
For the maintenance to proceed, applications must respond to an endmqm command by
disconnecting from the queue manager and releasing any IBM MQ libraries they have loaded. If
they do not, you must find another way to force applications to release IBM MQ resources, such as
by stopping the applications.
You must also stop applications that are using the client libraries that are part of the installation.
Client applications might be connected to a different queue manager, running a different
installation of IBM MQ. The application is not informed about queue managers in the current
installation being shut down.
Any applications that continue to have IBM MQ shared libraries from the installation loaded prevent
you applying IBM MQ maintenance. An application might disconnect from a queue manager, or be
forcibly disconnected, but keep an IBM MQ shared library loaded.
Note: “Applying maintenance level updates to multi-instance queue managers on Linux” on page
299 describes how to apply maintenance to a multi-instance queue manager. A multi-instance
queue manager can continue to run on one server, while maintenance is applied to another server.
d) Stop any listeners associated with the queue managers, using the command:
endmqlsr -m QMgrName
Note: The principles apply to a User Specified Installation Location (USIL) by using the -R usil-directory
option, and to other IBM MQ fix packs.
See Life cycle for a USIL in AIX for non-default installations of MQ for more information on a USIL.
Carry out the following procedure to remove the latest 9.1.0.8 fix pack, and leave the base IBM MQ for
AIX 9.1.0.0 and 9.1.0.7 fix packs in place.
Procedure
1. Issue the following command, # lslpp -la "mqm*":
You see the following output:
+-----------------------------------------------------------------------------+
INSTALL ROOT PATH = /
+-----------------------------------------------------------------------------+
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
mqm.amqp.rte 9.1.0.0 COMMITTED IBM MQ AMQP Service
9.1.0.7 APPLIED IBM MQ AMQP Service
9.1.0.8 APPLIED IBM MQ AMQP Service
2. Go to the original directory where the IBM MQ for AIX tar.Z file with the fix pack code, that was
downloaded, was stored in the machine and unpacked; for example, cd /downloads/mq9108.
Expand 9.1.0-IBM-MQ-AixPPC64-FP0008.tar.Z and you see:
3. Issue the following command to obtain the text file mq9108.installpl.txt, to be used later in the
procedure: # installp -l -d /downloads/mq9108 > mq9108.installpl.txt
The output text file looks like the following text.
Note: Only the first few lines are shown here.
4. Use the output file from Step “3” on page 286 as input to the following command: # installp -r
-f mq9108.installpl.txt
Verifying selections...
done
Verifying requisites...done
Results...
SUCCESSES
---------
Filesets listed in this section passed pre-reject verification
and will be rejected.
Selected Filesets
-----------------Page 5 of 5
mqm.amqp.rte 9.1.0.8 # IBM MQ AMQP Service
mqm.ams.rte 9.1.0.8 # IBM MQ Advanced - Advanced M...
mqm.base.runtime 9.1.0.8 # IBM MQ Runtime for Client an...
...
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
mqm.amqp.rte 9.1.0.8 USR REJECT SUCCESS
+-----------------------------------------------------------------------------+
INSTALL ROOT PATH = /
+-----------------------------------------------------------------------------+
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
mqm.amqp.rte 9.1.0.0 COMMITTED IBM MQ AMQP Service
9.1.0.7 APPLIED IBM MQ AMQP Service
mqm.ams.rte 9.1.0.0 COMMITTED IBM MQ Advanced - Advanced Message Security
9.1.0.7 APPLIED IBM MQ Advanced - Advanced Message Security
mqm.base.runtime 9.1.0.0 COMMITTED IBM MQ Runtime for Client and Server
9.1.0.7 APPLIED IBM MQ Runtime for Client and Server
Related tasks
“Reverting to the previous maintenance level on AIX” on page 283
You can revert to a previous maintenance level by using the System Management Interface Tool (SMIT).
Procedure
Apply the first maintenance level update to Inst_2.
1. Download the first fix pack or cumulative security update (CSU) for the version of your product when
it is released.
See “Where to find downloadable installation images” on page 9.
2. Apply the fix pack or cumulative security update (CSU) that you downloaded to Inst_2.
For more information, see “Applying maintenance level updates on AIX” on page 280.
3. Verify Inst_2.
4. Transfer the queue managers to Inst_2 one at a time.
a) Stop QM1 and the applications connected to it.
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
Note: “Applying maintenance level updates to multi-instance queue managers on AIX” on page
289 describes how to apply maintenance to a multi-instance queue manager. A multi-instance
queue manager can continue to run on one server, while maintenance is applied to another server.
b) Set up the local environment to the installation Inst_2.
. Inst_2_INSTALLATION_PATH/bin/setmqenv -s
strmqm QM1
Inst_2_INSTALLATION_PATH/bin/setmqinst -i -n Inst_2
Inst_1_INSTALLATION_PATH/bin/setmqinst -i -n Inst_1
Procedure
1. Where the maintenance update procedure instructs you to stop all running queue managers, or
quiesce IBM MQ do the following instead:
See: “Applying and removing maintenance on AIX” on page 280
a) If the queue manager is running as standby:
• End the standby with the endmqm -x QMgrName command.
b) If the queue manager is running as the active instance:
End the instance and transfer control to the standby instance with the endmqm command. For
example, endmqm -shutdown_option -s QMgrName, where -shutdown_option is an optional
parameter specifying the type of shutdown. For more information, see endmqm.
If there is no standby instance running, the command fails, and you must start a standby instance
on a different server.
c) If a queue manager is running as a single instance queue manager, you have no alternative but to
stop the queue manager before applying the maintenance update.
When you complete this step, no queue manager instances are left running on the server you intend to
update.
2. Continue with the maintenance update procedure, following the step to issue the endmqm command,
or quiesce IBM MQ and apply maintenance to the IBM MQ server.
3. When you have completed the maintenance update, restart all the queue managers on the IBM MQ
server, permitting standby instances:
Use the following command:
4. Repeat the procedure on the standby server, to update its maintenance level.
5. If necessary, switch the active instances back to the primary servers:
Use the endmqm -shutdown_option -s QMgrName command, and the restart the instances using
the strmqm -x QmgrName command.
Procedure
• To apply maintenance level updates, see “Applying maintenance level updates on IBM i” on page 291.
• To restore a queue manager to the previous version of the product from the latest version, see
“Restoring a queue manager to a previous release on IBM i” on page 294.
• For information on how to use use multi-instance queue managers to reduce the outage caused by
applying maintenance updates, see “Applying maintenance updates to multi-instance queue managers
on IBM i” on page 295.
Related tasks
“Applying maintenance to IBM MQ” on page 278
Maintenance is the application of a reversible fix. Any changes to queue manager data are compatible
with the previous code level.
java com.ibm.mq.MQJavaLevel
Note: For this command to work, you might need to set your environment
classpath to include:
• /QIBM/ProdData/mqm/java/lib/com.ibm.mq.jar
IBM MQ classes for Java Message Service:
java com.ibm.mq.jms.MQJMSLevel
Note: For this command to work, you might need to set your environment
classpath to include:
• /QIBM/ProdData/mqm/java/lib/
com.ibm.mq.jakarta.client.jar (Jakarta
Messaging 3.0) or /QIBM/
ProdData/mqm/java/lib/com.ibm.mq.allclient.jar (JMS 2.0)
See Environment variables relevant to IBM MQ classes for Java and
Environment variables relevant to IBM MQ classes for JMS.
IBM MQ Client
DSPMQMVER
Procedure
Prepare to quiesce queue managers:
1. Read the cover letter carefully to see if you need to take any special actions.
2. Sign on to a new interactive IBM i session, ensuring that you are not accessing any IBM MQ objects.
3. Ensure that you have the following authorities:
• *ALLOBJ authority, or object management authority for the QMQM library.
• Sufficient authority to use the ENDSBS command.
4. Warn all users that you are going to stop IBM MQ.
5. Stop the mqweb server by entering the following command:
ENDMQWEB
If the commands in the previous step do not complete, end the subsystem immediately:
7. Run the following command:
If the command in the previous step also does not complete, use the operating system command
ENDJOB to end all jobs in the subsystem QMQM:
Note: Do not use ENDJOBABN unless you intend to perform an IPL on the machine before starting IBM
MQ. Ending IBM MQ jobs using ENDJOBABN can lead to damaged semaphores, which in turn can prevent
your queue manager from starting.
8. If a QMGR must be shut down manually, end the jobs (ENDJOB) in the following order. Wait a few
minutes for AMQA* or AMQZ* jobs to tidy up.
a. RUNMQLSR - TCP listener (multi-threaded)
b. AMQCLMAA - TCP listener (single-threaded)
c. AMQRMPPA - Channel process pooling job
d. RUNMQCHI - channel initiator
e. AMQCRSTA - receiving MCA jobs
f. RUNMQCHL - sending MCA jobs
g. AMQCRS6B - LU62 receiver channel
h. AMQPCSEA - command server
i. RUNMQTRM - Application trigger monitor
j. RUNMQDLQ - Dead letter queue handler
k. AMQFCXBA - IBM Integration Bus Worker Job
l. AMQFQPUB - Queued Publish/Subscribe Daemon
m. RUNMQBRK - IBM Integration Bus Control Job
n. AMQZMUC0 ('0' is a zero) - Utility Manager
o. AMQZMUF0 ('0' is a zero) - Utility Manager
p. AMQZMUR0 ('0' is a zero) - Utility Manager
q. AMQZMGR0 ('0' is a zero) - Process Controller
r. AMQRRMFA - cluster repository manager
s. AMQZDMAA - deferred message manager
t. AMQZFUMA - object authority manager
u. AMQZLSA0 ('0' is a zero) - LQM agents
v. AMQZLAA0 ('0' is a zero) - LQM agents
w. AMQZXMA0 ('0' is a zero) - Execution Controller
9. Run the following command:
EDTF '/QIBM/UserData/mqm/qmgrs'
then:
a. Take option 5 for &SYSTEM and check that the following directories are empty: isem, esem,
msem, ssem, and shmem.
b. Take option 5 for QMGRNAME and check that the following directories are empty:- isem, esem,
msem, ssem, and shmem.
c. Take option 5 for &ipcc in the QMGRNAME directory and check that the following directories are
empty:- isem, esem, msem, ssem, and shmem.
d. Take option 5 for &qmpersist in the QMGRNAME directory and check that the following
directories are empty:- isem, esem, msem, ssem, and shmem.
e. Take option 5 for &app and check that the following directories are empty: isem, esem, msem,
ssem, and shmem.
Apply a PTF:
12. Load and apply a PTF.
Procedure
1. Where the maintenance update procedure instructs you to stop all running queue managers, or
quiesce IBM MQ do the following instead:
See: “Applying and removing maintenance on IBM i” on page 291.
a) If the queue manager is running as standby:
Procedure
• To upgrade by using rpm, follow the steps in “Upgrading an IBM MQ installation on Linux using the rpm
command” on page 322.
• To upgrade by using yum, follow the steps in “Upgrading an IBM MQ installation on Linux Red Hat
using yum” on page 325.
• To upgrade by using dpkg, follow the steps in “Upgrading an IBM MQ installation on Linux Ubuntu
using dpkg” on page 328.
• To upgrade by using apt, follow the steps in “Upgrading an IBM MQ installation on Linux Ubuntu using
apt” on page 330.
If you are using IBM MQ Explorer and you have two installations, you also have two IBM
MQ Explorer instances. One linked to one installation, and one to the other. Each IBM MQ Explorer shows
locally connected queue managers that are associated with the same installation as the instance of IBM
MQ Explorer. To monitor all the queue managers on a server, set up remote connections to the queue
managers associated with the other installations.
Procedure
Apply the first maintenance level update to Inst_2.
1. Download the first fix pack or cumulative security update (CSU) when it is released.
For more information, see “Where to find downloadable installation images” on page 9.
2. Apply the fix pack or cumulative security update (CSU) you downloaded to Inst_2.
For more information, see “Applying maintenance on Linux” on page 296.
3. Verify Inst_2.
4. Transfer the queue managers to Inst_2 one at a time.
a) Stop QM1 and the applications connected to it.
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
Note: “Applying maintenance level updates to multi-instance queue managers on Linux” on page
299 describes how to apply maintenance to a multi-instance queue manager. A multi-instance
queue manager can continue to run on one server, while maintenance is applied to another server.
b) Set up the local environment to the installation Inst_2.
. Inst_2_INSTALLATION_PATH/bin/setmqenv -s
d) Start QM1.
strmqm QM1
f)
Set up IBM MQ Explorer for Inst_2.
i) Start the Inst_2 instance of IBM MQ Explorer
ii) Click IBM MQ > Queue Managers > Show/Hide Queue Managers... >
iii) Click each directly connected queue manager listed in the Hidden Queue Managers list >
Show.
iv) Click Close.
5. Set Inst_2 primary.
Inst_2_INSTALLATION_PATH/bin/setmqinst -i -n Inst_2
Inst_1_INSTALLATION_PATH/bin/setmqinst -i -n Inst_1
Procedure
1. Ensure that no queue manager instances are running on the server that you intend to apply
maintenance to:
• If the queue manager is running as standby, end the standby with the following command:
endmqm -x QMgrName
• If the queue manager is running as the active instance, end the instance and transfer control to the
standby instance with the endmqm command. For example:
where -shutdown_option is an optional parameter specifying the type of shutdown. For more
information, see endmqm.
If there is no standby instance running, the command fails, and you must start a standby instance
on a different server.
• If a queue manager is running as a single instance queue manager, you have no alternative but to
stop the queue manager before applying the maintenance update.
When you complete this step, no queue manager instances are left running on the server you intend to
update.
2. From IBM MQ 9.4.0, you install the maintenance updates by upgrading IBM MQ. Follow the
appropriate steps outlined in one of the following topics to install the maintenance updates on the
server:
• To upgrade by using rpm, follow the steps in “Upgrading an IBM MQ installation on Linux using the
rpm command” on page 322.
• To upgrade by using yum, follow the steps in “Upgrading an IBM MQ installation on Linux Red Hat
using yum” on page 325.
• To upgrade by using dpkg, follow the steps in “Upgrading an IBM MQ installation on Linux Ubuntu
using dpkg” on page 328.
• To upgrade by using apt, follow the steps in “Upgrading an IBM MQ installation on Linux Ubuntu
using apt” on page 330.
3. When you have completed the maintenance update, restart all the queue managers on the IBM MQ
server, permitting standby instances:
Use the following command:
4. Repeat the procedure on the standby server to update its maintenance level.
5. If necessary, switch the active instances back to the primary servers:
a) End the instances by using the following command:
where -shutdown_option is an optional parameter specifying the type of shutdown. For more
information, see endmqm.
b) Restart the instances by using the following command:
strmqm -x QMgrName
Procedure
• To apply maintenance level updates for HA RDQM:
a) Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
b) Change into the directory containing the maintenance packages.
c) Suspend the HA group on the node, by entering the following command:
rdqmadm -s
d) If DRBD has been updated in the Fix Pack, complete the following steps:
a. Determine which DRBD kernel module is needed for the system on which RDQM is being
installed. See https://ibm.biz/mqrdqmkernelmods for up-to-date kernel module information.
Helper scripts are provided in the kmod-drbd-9 directories. For example, on a RHEL 8.2
system, running the helper script Advanced/RDQM/PreReqs/el8/kmod-drbd-9/modver
returns the following information, identifying the kernel module that you need to install:
kmod-drbd-9.0.23_4.18.0_193-1.x86_64.rpm
b. Update the appropriate DRBD kernel module that you identified. For example, for RHEL 8.2 you
run the following command:
c. Update the DRBD utilities. For example, for RHEL 8.2 you run the following command:
e) If Pacemaker has been updated in the Fix Pack, update it in RDQM. For example, for RHEL 8.2, run
the following command:
f) Apply the FixPack by using the procedure for upgrading on Linux using yum, see “Upgrading an
IBM MQ installation on Linux Red Hat using yum” on page 325. For an RDQM install, the minimum
commands are:
g) If DRBD or Pacemaker have been updated in the Fix Pack, reboot the node, for example:
reboot
rdqmadm -r
Proceed to the next node in the HA group and repeat the procedure.
• To apply maintenance level updates for DR RDQM on the DR secondary node:
a) Apply maintenance level updates to the DR secondary node:
a. Log in as root, or with sufficient authority to run the following commands.
b. Change into the directory containing the maintenance packages.
c. If DRBD has been updated in the Fix Pack, complete the following steps:
i) Determine which DRBD kernel module is needed for the system on which RDQM is being
installed. See https://ibm.biz/mqrdqmkernelmods for up-to-date kernel module information.
Helper scripts are provided in the kmod-drbd-9 directories. For example, on a RHEL 8.2
system, running the helper script Advanced/RDQM/PreReqs/el8/kmod-drbd-9/modver
returns the following information, identifying the kernel module that you need to install:
kmod-drbd-9.0.23_4.18.0_193-1.x86_64.rpm
ii) Update the appropriate DRBD kernel module that you identified. For example, for RHEL 8.2
you run the following command:
iii) Update the DRBD utilities. For example, for RHEL 8.2 you run the following command:
d. If Pacemaker has been updated in the Fix Pack, update it in RDQM. For example, for RHEL 8.2,
run the following command:
e. Apply the FixPack by using the procedure for upgrading on Linux using yum, see “Upgrading
an IBM MQ installation on Linux Red Hat using yum” on page 325. For an RDQM install, the
minimum commands are:
f. If DRBD or Pacemaker have been updated in the Fix Pack, reboot the node, for example:
reboot
b) On the DR primary node, either end the DR queue managers or perform a managed failover of the
DR queue managers to the DR secondary node.
c) Apply maintenance level updates to the DR primary node:
kmod-drbd-9.0.23_4.18.0_193-1.x86_64.rpm
ii) Update the appropriate DRBD kernel module that you identified. For example, for RHEL 8.2
you run the following command:
iii) Update the DRBD utilities. For example, for RHEL 8.2 you run the following command:
d. If Pacemaker has been updated in the Fix Pack, update it in RDQM. For example, for RHEL 8.2,
run the following command:
e. Apply the FixPack by using the procedure for upgrading on Linux using yum, see “Upgrading
an IBM MQ installation on Linux Red Hat using yum” on page 325. For an RDQM install, the
minimum commands are:
f. If DRBD or Pacemaker have been updated in the Fix Pack, reboot the node, for example:
reboot
d) On the DR primary node, either start the DR queue managers or perform a managed failover of the
DR queue managers to the DR primary node.
• To apply maintenance level updates for HA/DR RDQM:
a) Apply maintenance to the HA group on your recovery site. Complete the following steps on each
node in the group in turn.
a. Log in as root, or with sufficient authority to run the following commands.
b. Change into the directory containing the maintenance packages.
c. Suspend the HA group on the node, by entering the following command:
rdqmadm -s
d. If DRBD has been updated in the Fix Pack, complete the following steps:
i) Determine which DRBD kernel module is needed for the system on which RDQM is being
installed. See https://ibm.biz/mqrdqmkernelmods for up-to-date kernel module information.
Helper scripts are provided in the kmod-drbd-9 directories. For example, on a RHEL 8.2
system, running the helper script Advanced/RDQM/PreReqs/el8/kmod-drbd-9/modver
returns the following information, identifying the kernel module that you need to install:
kmod-drbd-9.0.23_4.18.0_193-1.x86_64.rpm
ii) Update the appropriate DRBD kernel module that you identified. For example, for RHEL 8.2
you run the following command:
iii) Update the DRBD utilities. For example, for RHEL 8.2 you run the following command:
e. If Pacemaker has been updated in the Fix Pack, update it in RDQM. For example, for RHEL 8.2,
run the following command:
f. Apply the FixPack by using the procedure for upgrading on Linux using yum, see “Upgrading
an IBM MQ installation on Linux Red Hat using yum” on page 325. For an RDQM install, the
minimum commands are:
g. If DRBD or Pacemaker have been updated in the Fix Pack, reboot the node, for example:
reboot
rdqmadm -r
b) Apply maintenance to the HA group on your main site. Complete the following steps on each node
in the group in turn.
a. Log in as root, or with sufficient authority to run the following commands.
b. Change into the directory containing the maintenance packages.
c. Suspend the HA group on the node, by entering the following command:
rdqmadm -s
d. If DRBD has been updated in the Fix Pack, complete the following steps:
i) Determine which DRBD kernel module is needed for the system on which RDQM is being
installed. See https://ibm.biz/mqrdqmkernelmods for up-to-date kernel module information.
Helper scripts are provided in the kmod-drbd-9 directories. For example, on a RHEL 8.2
system, running the helper script Advanced/RDQM/PreReqs/el8/kmod-drbd-9/modver
returns the following information, identifying the kernel module that you need to install:
kmod-drbd-9.0.23_4.18.0_193-1.x86_64.rpm
ii) Update the appropriate DRBD kernel module that you identified. For example, for RHEL 8.2
you run the following command:
iii) Update the DRBD utilities. For example, for RHEL 8.2 you run the following command:
e. If Pacemaker has been updated in the Fix Pack, update it in RDQM. For example, for RHEL 8.2,
run the following command:
g. If DRBD or Pacemaker have been updated in the Fix Pack, reboot the node, for example:
reboot
rdqmadm -r
Related tasks
“Installing RDQM (replicated data queue managers)” on page 255
Installation tasks associated with RDQM are grouped in this section. RDQM is available on x86-64 for
RHEL 8 (8.8 or later) and RHEL 9 (9.2 or later).
Procedure
• To remove maintenance level updates for HA RDQM:
a) Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
b) Suspend the HA group on the node, by entering the following command:
rdqmadm -s
c) Remove the Fix Pack using the procedure for removing maintenance level updates on Linux, see
“Removing maintenance on Linux using yum” on page 308. For example, to remove the 9.4.0.1 Fix
Pack:
rdqmadm -r
Proceed to the next node in the HA group and repeat the procedure.
• To remove maintenance level updates for DR RDQM:
a) Remove maintenance level updates to the DR secondary node:
a. Log in as root, or with sufficient authority to run the following commands.
b) On the DR primary node, either end the DR queue managers or perform a managed failover of the
DR queue managers to the DR secondary node.
c) Remove maintenance level updates to the DR primary node:
a. Log in as root, or with sufficient authority to run the following commands.
b. Remove the Fix Pack using the procedure for removing maintenance level updates on Linux, see
“Removing maintenance on Linux using yum” on page 308. For example, to remove the 9.4.0.1
Fix Pack:
d) On the DR primary node either start the DR queue managers or perform a managed failover of the
DR queue managers to the DR primary node.
• To remove maintenance level updates for DR/HA RDQM
a) Remove maintenance from the HA group on your recovery site. Complete the following steps on
each node in the group in turn:
a. Log in as root, or with sufficient authority to run the following commands.
b. Suspend the HA group on the node, by entering the following command:
rdqmadm -s
rdqmadm -r
Proceed to the next node in the HA group and repeat the procedure.
b) Remove maintenance from the HA group on your main site. Complete the following steps on each
node in the group in turn.
a. Log in as root, or with sufficient authority to run the following commands.
b. Suspend the HA group on the node, by entering the following command:
rdqmadm -s
rdqmadm -r
Proceed to the next node in the HA group and repeat the procedure.
Procedure
1. Complete the following tasks:
a) Stop all your IBM MQ applications.
If you use the Managed File Transfer (MFT) component, ensure that any file transfers that MFT
agents are engaged in are completed. The SYSTEM.FTE.STATE queues must contain no messages.
b) Stopped the mqweb server by using the endmqweb command.
c) Stopped your listeners by using the endmqlsr command.
d) Stopped all your queue managers by using the endmqm command.
e) Backed up your data.
For more information, see Backing up and restoring queue manager data.
2. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
3. Set your current directory to the location of the earlier level installation files. The location might be a
network location, or a local file system directory.
4. Optional: If there is more than one installation on the system, or if you want to remove maintenance
from an IBM MQ installation in a nondefault location, create a unique set of packages:
a) Run the crtmqpkg to create a unique set of packages:
./crtmqpkg suffix
where suffix specifies a name of your choosing that uniquely identifies the installation packages on
the system. suffix is not the same as an installation name, although the names can be identical.
suffix is limited to 16 characters in the ranges A-Z, a-z, and 0-9.
Note: This command creates a full copy of the installation packages in a temporary directory. By
default, the temporary directory is at /var/tmp. Ensure that the system has enough available
space before you run this command. To use a different location, you can set the TMPDIR
environment variable before you run the crtmqpkg command. For example:
where pathToInstallationFiles specifies the path where the earlier level IBM MQ rpm installation
files are located.
• To remove the maintenance level from all available components in a nondefault location, use the
following command:
where installationPath specifies the path where IBM MQ is installed and pathToInstallationFiles
specifies the path where the earlier level IBM MQ rpm installation files are located.
6. Use the dspmqver command to verify that the level is as expected:
dspmqver
Procedure
1. Complete the following tasks:
a) Stop all your IBM MQ applications.
If you use the Managed File Transfer (MFT) component, ensure that any file transfers that MFT
agents are engaged in are completed. The SYSTEM.FTE.STATE queues must contain no messages.
b) Stopped the mqweb server by using the endmqweb command.
c) Stopped your listeners by using the endmqlsr command.
d) Stopped all your queue managers by using the endmqm command.
e) Backed up your data.
For more information, see Backing up and restoring queue manager data.
2. Log in as root, or with sufficient authority to run the following commands.
./crtmqpkg suffix
where suffix specifies a name of your choosing that uniquely identifies the installation packages on
the system. suffix is not the same as an installation name, although the names can be identical.
suffix is limited to 16 characters in the ranges A-Z, a-z, and 0-9.
Note: This command creates a full copy of the installation packages in a temporary directory. By
default, the temporary directory is at /var/tmp. Ensure that the system has enough available
space before you run this command. To use a different location, you can set the TMPDIR
environment variable before you run the crtmqpkg command. For example:
b) Set your current directory to the location that is specified when the crtmqpkg command operation
completes successfully.
5. Clear the repository cache by entering the following command:
where pathToInstallationFiles specifies the path where the earlier level IBM MQ installation files are
located.
• To remove the maintenance level from all installed components in a nondefault location, use the
following command:
where pathToInstallationFiles specifies the path where the earlier level IBM MQ rpm installation
files are located, and suffix specifies the suffix that was chosen when you ran the crtmqpkg
command.
7. Use the dspmqver command to verify that the level is as expected:
dspmqver
Procedure
1. Complete the following tasks:
a) Stop all your IBM MQ applications.
If you use the Managed File Transfer (MFT) component, ensure that any file transfers that MFT
agents are engaged in are completed. The SYSTEM.FTE.STATE queues must contain no messages.
b) Stopped the mqweb server by using the endmqweb command.
c) Stopped your listeners by using the endmqlsr command.
d) Stopped all your queue managers by using the endmqm command.
e) Backed up your data.
For more information, see Backing up and restoring queue manager data.
2. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
3. Set your current directory to the location of the earlier level installation files. The location might be a
network location, or a local file system directory.
4. Remove maintenance from each IBM MQ package by using the following command for each package:
dpkg -i pathToInstallationFiles/packageName
where pathToInstallationFiles specifies the path where the earlier level IBM MQ installation files are
located, and packageName specifies the name of the package to remove maintenance from.
Important: You cannot specify multiple package files in the same command because of inter-package
dependencies. Change the packages individually in the order shown. If you use apt to remove
maintenance, the inter-package dependencies are handled for you. For more information, see
“Removing maintenance on Linux Ubuntu using apt” on page 311.
• ibmmq-runtime
• ibmmq-jre
• ibmmq-java
• ibmmq-gskit
• ibmmq-server
• ibmmq-web
• ibmmq-ftbase
• ibmmq-ftagent
• ibmmq-ftservice
• ibmmq-ftlogger
• ibmmq-fttools
• ibmmq-amqp
• ibmmq-ams
dspmqver
Procedure
1. Complete the following tasks:
a) Stop all your IBM MQ applications.
If you use the Managed File Transfer (MFT) component, ensure that any file transfers that MFT
agents are engaged in are completed. The SYSTEM.FTE.STATE queues must contain no messages.
b) Stopped the mqweb server by using the endmqweb command.
c) Stopped your listeners by using the endmqlsr command.
d) Stopped all your queue managers by using the endmqm command.
e) Backed up your data.
For more information, see Backing up and restoring queue manager data.
2. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
3. Set your current directory to the location of the earlier level installation files. The location might be a
network location, or a local file system directory.
4. Open the IBM_MQ.list file from the /etc/apt/sources.list.d directory.
5. Add the following line to the end of the IBM_MQ.list file:
where installationFileLocation is the directory where the earlier level IBM MQ installation files are
located.
6. Refresh the repository index by using the following command:
apt-get update
where version specifies the version of IBM MQ that matches the earlier level IBM MQ installation files
that are in the current directory.
8. Use the dspmqver command to verify that the level is as expected:
dspmqver
Procedure
• To apply maintenance level updates, see “Applying maintenance level updates on Windows” on page
312.
• To remove updates and revert to the previous maintenance level, see “Removing maintenance level
updates on Windows” on page 318.
• For information on how to use multiple installations of IBM MQ on the same server to control the
release of maintenance fixes, see “Staging maintenance level updates on Windows” on page 313.
• For information on how to use use multi-instance queue managers to reduce the outage caused by
applying maintenance updates, see “Applying maintenance level updates to multi-instance queue
managers on Windows” on page 316.
Related tasks
“Applying maintenance to IBM MQ” on page 278
Maintenance is the application of a reversible fix. Any changes to queue manager data are compatible
with the previous code level.
Procedure
• To upgrade a server installation by using the launchpad, follow the steps in “Upgrading an IBM MQ
server installation using the Launchpad” on page 332.
• To upgrade a server installation by using msiexec, follow the steps in “Upgrading an IBM MQ server
installation using msiexec” on page 333.
• To upgrade a client installation by using the GUI installer, follow the steps in “Upgrading an IBM MQ
client installation using the GUI installer” on page 334.
• To upgrade a client installation by using msiexec, follow the steps in “Upgrading an IBM MQ client
installation using msiexec” on page 335.
Procedure
Apply the first maintenance level update to Inst_2.
1. Download the first fix pack or cumulative security update (CSU) when it is released.
For more information, see “Where to find downloadable installation images” on page 9.
2. Upgrade IBM MQ to apply the fix pack or cumulative security update (CSU) that you downloaded to
Inst_2.
For more information, see “Upgrading an IBM MQ installation on Windows” on page 332.
3. Verify Inst_2.
4. Transfer the queue managers to Inst_2 one at a time.
a) Stop QM1 and the applications connected to it.
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
Note: “Applying maintenance level updates to multi-instance queue managers on Windows”
on page 316 describes how to apply maintenance to a multi-instance queue manager. A multi-
instance queue manager can continue to run on one server, while maintenance is applied to
another server.
b) Set up the local environment to the installation Inst_2 by using the setmqenv command
"Inst_2_INSTALLATION_PATH\bin\setmqenv" -s
strmqm QM1
"Inst_2_INSTALLATION_PATH\bin\setmqinst" -i -n Inst_2
"Inst_1_INSTALLATION_PATH\bin\setmqinst" -i -n Inst_1
Procedure
1. Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished all of
the file transfers that they were engaged in. There should be no incomplete transfers associated with
the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
2. Find out the current state of the queue managers and their associated listeners associated with the
IBM MQ installation.
a) From the installation that you are updating, use the dspmq command to list the state of the queue
managers:
• To display the status of active queue managers associated with the installation from which you
are running the command, run the following command:
dspmq -a
b) Use the MQSC command DISPLAY LSSTATUS to list the status of listeners associated with a
queue manager, as shown in the following example:
3. Use the endmqm command to stop each running queue manager associated with this installation.
• If the queue manager is running as standby, run the endmqm command to end the standby as
shown in the following example:
endmqm -x QMgrName
• If the queue manager is running as the active instance, run the endmqm command to end the active
instance and transfer control to the standby instance as shown in the following example:
where -shutdown_option is an optional parameter specifying the type of shutdown. For more
information about optional parameters for the endmqm command, see endmqm.
If there is no standby instance running, and the command fails, start a standby instance on a
different server.
• If a queue manager is running as a single instance queue manager, stop the queue manager. In
the case of a single queue manager you have no alternative but to stop the queue manager before
applying the maintenance update. For more information about how to stop a queue manager, see
Stopping a queue manager.
Stop any listeners associated with the queue managers by using the endmqlsr command as shown in
the following example:
endmqlsr -m QMgrName
After you complete this step, no queue manager instances are left running on the server that you
intend to update.
4. Upgrade IBM MQ to apply maintenance to the IBM MQ server.
Follow the instructions in “Upgrading an IBM MQ installation on Windows” on page 332.
5. When you have completed the maintenance update, use the strmqm command to restart all the queue
managers on the IBM MQ server, permitting standby instances, as shown in the following example:
strmqm -x QmgrName
6. Repeat the procedure on the standby server, to update its maintenance level.
7. If necessary, switch the active instances back to the primary servers:
a) Stop the instances by using the endmqm command as shown in the following example:
b) Restart the instances by using the strmqm command as shown in the following example:
Related tasks
Stopping a queue manager
Related reference
dspmq (display queue managers)
DISPLAYLSSTATUS
endmqm (end queue manager)
endmqlsr (end listener)
strmqm (start queue manager)
Procedure
• To uninstall IBM MQ on Windows, see “Uninstalling IBM MQ on Windows” on page 230.
• To install an IBM MQ server on Windows, see “Installing IBM MQ server on Windows” on page 176.
• To install an IBM MQ client on Windows, see “Installing an IBM MQ client on Windows” on page 203.
Related tasks
“Applying maintenance level updates on Windows” on page 312
From IBM MQ 9.4.0, you apply maintenance for server and client installations by upgrading IBM MQ.
“Applying maintenance level updates to multi-instance queue managers on Windows” on page 316
On Windows platforms, you can use multi-instance queue managers to reduce the outage caused by
applying maintenance updates.
Procedure
1. Check the Liberty version.
2. Use the security link or the information on the page for the Liberty APAR to locate the correct archive
interim fix (iFix) for the version that is installed.
Liberty archive interim fixes come in a JAR format, and have an associated readme file that you can
refer to for installation instructions. Download both files into a temporary directory.
3. After the interim fix has been downloaded, start a console and navigate to the directory that contains
the interim fix JAR file.
4. Stop the mqweb server by using the command:
<MQ_INSTALLATION_PATH>/bin/endmqweb
5.
As an administrative user, run the following command to set the umask for the user to 022:
umask 022
6. As an administrative user, run the following command to install the interim fix:
7. Run the following command and check the output to confirm that the interim fix has been installed
correctly:
<MQ_INSTALLATION_PATH>/bin/strmqweb
Results
When the mqweb server restarts, the interim fix should be loaded.
Example
The following example shows how to apply a WebSphere Liberty interim fix for APAR PH31442 to an IBM
MQ 9.1.0.8 installation on Linux.
1. Run the following command to check the version of Liberty installed with IBM MQ 9.1.0.8:
This command generates the following output, which indicates that the Liberty version is 21.0.0.3:
Product name: WebSphere Application Server
Product version: 21.0.0.3
Product edition: BASE
2. Go to the web page for APAR PH31442.
3. In the Download Package section of the web page, click the download link for the archive 21003-
wlp-archive-IFPH34122.
4. After you have been redirected to Fix Central, download the following files into a temporary directory:
• 21003-wlp-archive-IFPH34122-ReadMe.txt
• 21003-wlp-archive-ifph34122.jar
5. Start a console, and navigate to the temporary directory.
6. Stop the mqweb server by using the command:
/opt/mqm/bin/endmqweb
umask 022
8. Next, as the same root user, run the following command to install the interim fix:
/opt/mqm/bin/strmqweb
Related tasks
Contacting IBM Support
Related reference
endmqweb (end mqweb server)
strmqweb (start mqweb server)
Upgrading IBM MQ
Upgrading is the process of taking an existing IBM MQ installation and upgrading to a new level of code.
On Multiplatforms, after an upgrade has been applied, the only way to back out a VRM
change is by taking one of the following actions:
• Uninstalling the product code and reinstalling the code.
Procedure
1. Open Downloading IBM MQ 9.4.
2. To access the latest CD downloads, click the CD tab.
From this tab you can download the latest CD level and the latest CD CSU. If you are not running the
latest CD level, you must download and install it before you can apply the latest CSU.
The format of the download is platform-specific. For Multiplatforms you download one or more parts
from Passport Advantage or Fix Central. For IBM MQ Appliance you download firmware images from
Fix Central.
a) Find the download section for your platform. For example Downloading the CD release for
Multiplatforms.
b) To get the latest CD level, click Download the IBM MQ 9.4.x base install image. For example, for
Multiplatforms click Download the IBM MQ 9.4.x base install image from Passport Advantage.
c) To get the latest CSU, click Download the IBM MQ 9.4.x.x CSU from Fix Central.
3. To access the latest LTS downloads, click the LTS tab.
From this tab you can download the latest LTS base install level, and either an LTS fix pack or an LTS
CSU, whichever is the latest.
The format of the download is platform-specific. For Multiplatforms you download one or more parts
from Passport Advantage or Fix Central. For the Appliance you download firmware images from Fix
Central.
a) Find the download section for your platform. For example Downloading the LTS release for
Multiplatforms.
b) To get the latest LTS base install level, click Download the IBM MQ 9.4.0 LTS base install image.
For example, for Multiplatforms click Download the latest IBM MQ 9.4.0 LTS base install image
from Passport Advantage.
c) To get the latest fix pack or CSU, click Download the IBM MQ 9.4.0.xx fix pack/CSU.
Fix packs and CSUs are cumulative. Therefore you are only offered the latest fix, which might be
either a fix pack or a CSU.
Related tasks
“Applying maintenance to IBM MQ” on page 278
Maintenance is the application of a reversible fix. Any changes to queue manager data are compatible
with the previous code level.
If your current version is at IBM MQ 9.4.0 or higher, you can upgrade your installation with
fix packs installed. That is, the fix pack number in the version.release.modification.fixpack (V.R.M.F)
release identifier does not need to be 0.
1. The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
3. For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product
at IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix
Pack 15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
On Linux for x86-64 only, if you are migrating from an installation where the IBM MQ Bridge to
blockchain is present, you must remove it before you upgrade to IBM MQ 9.4.0 or later.
4. From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ install package. It remains
available as a separate download. For more information, see Installing and uninstalling IBM MQ
Explorer as a stand-alone application on Linux and Windows.
On Linux for x86-64 only, if you are migrating on an installation where the IBM MQ Explorer is present
as part of the IBM MQ installation, you must remove it before you upgrade to IBM MQ 9.3.0 or later.
Procedure
• To upgrade a server installation using rpm, see “Upgrading an IBM MQ installation on Linux using the
rpm command” on page 322
• To upgrade a server installation on Linux Red Hat using yum, see “Upgrading an IBM MQ installation on
Linux Red Hat using yum” on page 325
• To upgrade a server installation on Linux Ubuntu using a Debian installer, see “Upgrading an IBM MQ
installation on Linux Ubuntu using apt” on page 330
If your current version is at IBM MQ 9.4.0 or higher, you can upgrade your installation with
fix packs installed. That is, the fix pack number in the version.release.modification.fixpack (V.R.M.F)
release identifier does not need to be 0.
• The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
• For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product at
IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix Pack
15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
On Linux for x86-64 only, if you are migrating from an installation where the IBM MQ Bridge to
blockchain is present, you must remove it before you upgrade to IBM MQ 9.4.0 or later.
• From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ install package. On Linux for
x86-64 only, if you are migrating on an installation where the IBM MQ Explorer is present as part of the
IBM MQ installation, you must remove it before you upgrade to IBM MQ 9.3.0 or later.
For more information about modifying an IBM MQ installation using rpm, see “Uninstalling or modifying
IBM MQ on Linux using rpm” on page 150.
Procedure
1. Complete the following tasks:
a) Stop all your IBM MQ applications.
If you use the Managed File Transfer (MFT) component, ensure that any file transfers that MFT
agents are engaged in are completed. The SYSTEM.FTE.STATE queues must contain no messages.
b) Stopped the mqweb server by using the endmqweb command.
c) Stopped your listeners by using the endmqlsr command.
d) Stopped all your queue managers by using the endmqm command.
e) Backed up your data.
For more information, see Backing up and restoring queue manager data.
2. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
3. Optional: If your installation media is a downloadable installation image, obtained from Passport
Advantage, you must decompress the tar.gz file and extract the installation files from the file:
a) Decompress the file by using the following command:
gunzip partName.tar.gz
./crtmqpkg suffix
where suffix specifies a name of your choosing that uniquely identifies the installation packages on the
system. suffix is not the same as an installation name, although the names can be identical. suffix is
limited to 16 characters in the ranges A-Z, a-z, and 0-9.
Note: This command creates a full copy of the installation packages in a temporary directory. By
default, the temporary directory is located at /var/tmp. You must ensure that the system has
enough free space before you run this command. To use a different location, you can set the TMPDIR
environment variable before you run the crtmqpkg command. For example:
6. Set your current directory to the location of the installation packages. If you used the crtmqpkg
command, this directory is the location that is specified when the crtmqpkg command operation
completes successfully.
7. From IBM MQ 9.2.0, you have the option of accepting the license before or after you install the
product. To accept the license before installing, run the mqlicense.sh script. The license agreement
is displayed in a language appropriate to your environment and you are prompted to accept or decline
the terms of the license:
• To display the license agreement in the default manner, which uses an X-window where possible,
use the following command:
./mqlicense.sh
• To display the license agreement as text in the current shell, which can be read by a screen reader,
use the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
8. Upgrade IBM MQ:
• To upgrade all available components in the default location, use the following command:
• To upgrade specific components in the default location, use the following command:
where packageName.rpm is a list of one of more components to upgrade. For a full list of
components, see “IBM MQ rpm components for Linux systems” on page 107.
• To upgrade all available components in a non default location, use the following command:
where installationPath specifies the path where IBM MQ is installed, and packageName.rpm is
a list of one of more components to upgrade. For a full list of components, see “IBM MQ rpm
components for Linux systems” on page 107.
9. Use the dspmqver command to verify that the version is as expected:
dspmqver
Related tasks
“Upgrading an IBM MQ installation on Linux Red Hat using yum” on page 325
You can use yum to upgrade an IBM MQ installation on Linux Red Hat systems.
“Upgrading an IBM MQ installation on Linux Ubuntu using apt” on page 330
You can use apt to upgrade an IBM MQ installation on Linux Ubuntu systems.
If your current version is at IBM MQ 9.4.0 or higher, you can upgrade your installation with
fix packs installed. That is, the fix pack number in the version.release.modification.fixpack (V.R.M.F)
release identifier does not need to be 0.
If your current version is earlier than IBM MQ 9.4.0, you can upgrade only if no fix packs are installed.
That is, the fix pack number in the version.release.modification.fixpack (V.R.M.F) release identifier must
be 0.
Important:
• The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
• For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product at
IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix Pack
15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
On Linux for x86-64 only, if you are migrating from an installation where the IBM MQ Bridge to
blockchain is present, you must remove it before you upgrade to IBM MQ 9.4.0 or later.
• From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ installation package. On
Linux for x86-64 only, if you are migrating on an installation where the IBM MQ Explorer is present as
part of the IBM MQ installation, you must remove it before you upgrade to IBM MQ 9.3.0 or later.
Procedure
1. Complete the following tasks:
a) Stop all your IBM MQ applications.
If you use the Managed File Transfer (MFT) component, ensure that any file transfers that MFT
agents are engaged in are completed. The SYSTEM.FTE.STATE queues must contain no messages.
b) Stopped the mqweb server by using the endmqweb command.
c) Stopped your listeners by using the endmqlsr command.
d) Stopped all your queue managers by using the endmqm command.
e) Backed up your data.
For more information, see Backing up and restoring queue manager data.
2. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
3. Optional: If your installation media is a downloadable installation image, obtained from Passport
Advantage, you must decompress the tar.gz file and extract the installation files from the file:
a) Decompress the file by using the following command:
gunzip partName.tar.gz
where:
• suffix specifies a name of your choosing that uniquely identifies the installation packages on the
system. suffix is not the same as an installation name, although the names can be identical. suffix is
limited to 16 characters in the ranges A-Z, a-z, and 0-9.
• installationPath specifies the path where the installation that you want to upgrade is installed.
Note: This command creates a full copy of the installation packages in a temporary directory. By
default, the temporary directory is at /var/tmp. Ensure that the system has enough available space
before you run this command. To use a different location, you can set the TMPDIR environment
variable before you run the crtmqpkg command. For example:
[IBM-MQ-v.r.m-x86_64]
name=IBM MQ v.r.m x86_64
baseurl=file:///installationFilesLocation
enabled=1
gpgcheck=0
d) Check that the IBM MQ repository is available by using the following command:
yum repolist
8. From IBM MQ 9.2.0, you have the option of accepting the license before or after you install
the product. To accept the license before installing, run the mqlicense.sh script. The license
agreement is displayed in a language appropriate to your environment and you are prompted to
accept or decline the terms of the license:
• To display the license agreement in the default manner, which uses an X-window where possible,
use the following command:
./mqlicense.sh
• To display the license agreement as text in the current shell, which can be read by a screen reader,
use the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
9. Upgrade IBM MQ:
• To upgrade all installed components, use the following command:
• To upgrade all installed components in a non default location, use the following command:
where suffix specifies the suffix that was chosen when you ran crtmqpkg in step “5” on page 326.
10. Use the dspmqver command to verify that the version is as expected:
dspmqver
Related tasks
“Upgrading an IBM MQ installation on Linux using the rpm command” on page 322
You can use rpm to upgrade an IBM MQ installation on Linux systems.
“Upgrading an IBM MQ installation on Linux Ubuntu using apt” on page 330
If your current version is at IBM MQ 9.4.0 or higher, you can upgrade your installation with
fix packs installed. That is, the fix pack number in the version.release.modification.fixpack (V.R.M.F)
release identifier does not need to be 0.
If your current version is earlier than IBM MQ 9.4.0, you can upgrade only if no fix packs are installed.
That is, the fix pack number in the version.release.modification.fixpack (V.R.M.F) release identifier must
be 0.
Important:
1. The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
3. For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product
at IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix
Pack 15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
On Linux for x86-64 only, if you are migrating from an installation where the IBM MQ Bridge to
blockchain is present, you must remove it before you upgrade to IBM MQ 9.4.0 or later.
4. From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ install package. On Linux
for x86-64 only, if you are migrating on an installation where the IBM MQ Explorer is present as part of
the IBM MQ installation, you must remove it before you upgrade to IBM MQ 9.3.0 or later.
For more information about modifying an IBM MQ installation on Ubuntu, see “Uninstalling or modifying
IBM MQ on Linux Ubuntu using Debian packages” on page 154.
Procedure
1. Complete the following tasks:
a) Stop all your IBM MQ applications.
If you use the Managed File Transfer (MFT) component, ensure that any file transfers that MFT
agents are engaged in are completed. The SYSTEM.FTE.STATE queues must contain no messages.
b) Stopped the mqweb server by using the endmqweb command.
c) Stopped your listeners by using the endmqlsr command.
d) Stopped all your queue managers by using the endmqm command.
e) Backed up your data.
gunzip partName.tar.gz
./mqlicense.sh
• To display the license agreement as text in the current shell, which can be read by a screen reader,
use the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
6. Upgrade each IBM MQ package by using the following command for each package:
dpkg -i packageName
dspmqver
If your current version is at IBM MQ 9.4.0 or higher, you can upgrade your installation with
fix packs installed. That is, the fix pack number in the version.release.modification.fixpack (V.R.M.F)
release identifier does not need to be 0.
If your current version is earlier than IBM MQ 9.4.0, you can upgrade only if no fix packs are installed.
That is, the fix pack number in the version.release.modification.fixpack (V.R.M.F) release identifier must
be 0.
Important:
• The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
• For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product at
IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix Pack
15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
On Linux for x86-64 only, if you are migrating from an installation where the IBM MQ Bridge to
blockchain is present, you must remove it before you upgrade to IBM MQ 9.4.0 or later.
• From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ install package. On Linux for
x86-64 only, if you are migrating on an installation where the IBM MQ Explorer is present as part of the
IBM MQ installation, you must remove it before you upgrade to IBM MQ 9.3.0 or later.
Procedure
1. Complete the following tasks:
a) Stop all your IBM MQ applications.
If you use the Managed File Transfer (MFT) component, ensure that any file transfers that MFT
agents are engaged in are completed. The SYSTEM.FTE.STATE queues must contain no messages.
b) Stopped the mqweb server by using the endmqweb command.
c) Stopped your listeners by using the endmqlsr command.
d) Stopped all your queue managers by using the endmqm command.
e) Backed up your data.
For more information, see Backing up and restoring queue manager data.
2. Log in as root, or with sufficient authority to run the following commands.
You can do this by adding sudo before the commands, or by changing to the root user in the shell
with the su command. For more information, see Exploring the differences between sudo and su
commands in Linux.
3. Optional: If your installation media is a downloadable installation image, obtained from Passport
Advantage, you must decompress the tar.gz file and extract the installation files from the file:
a) Decompress the file by using the following command:
gunzip partName.tar.gz
./mqlicense.sh
• To display the license agreement as text in the current shell, which can be read by a screen reader,
use the following command:
./mqlicense.sh -text_only
See “Accepting the license on IBM MQ for Linux” on page 106 for more information about license
acceptance.
6. Open the IBM_MQ.list file from the /etc/apt/sources.list.d directory.
7. Add the following line to the end of the IBM_MQ.list file:
where installationFileLocation is the directory where the unpacked files are located.
apt-get update
10. Use the dspmqver command to verify that the version is as expected:
dspmqver
Related tasks
“Upgrading an IBM MQ installation on Linux using the rpm command” on page 322
You can use rpm to upgrade an IBM MQ installation on Linux systems.
“Upgrading an IBM MQ installation on Linux Red Hat using yum” on page 325
You can use yum to upgrade an IBM MQ installation on Linux Red Hat systems.
Procedure
• To upgrade a server installation, see “Upgrading an IBM MQ server installation using the Launchpad”
on page 332 or “Upgrading an IBM MQ server installation using msiexec” on page 333.
• To upgrade a client installation, see “Upgrading an IBM MQ client installation using the GUI installer”
on page 334 or “Upgrading an IBM MQ client installation using msiexec” on page 335.
Procedure
1. Access the IBM MQ installation image.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
2. Locate Setup.exe in the base directory of the IBM MQ installation image.
• From a network location, this location might be m:\instmqs\Setup.exe
• From a local file system directory, this location might be C:\instmqs\Setup.exe
Attention: If you do not see this screen, it means that there was no IBM MQ server installation
on the machine that could be upgraded by this installer.
7. Follow the installer prompts to upgrade your IBM MQ server installation.
Related tasks
“Upgrading an IBM MQ server installation using msiexec” on page 333
How you upgrade an IBM MQ server installation on Windows to a newer version, release, or modification,
using msiexec.
“Upgrading an IBM MQ client installation using the GUI installer” on page 334
How you upgrade an IBM MQ client installation on Windows to a newer version, release, or modification,
using the GUI installer.
“Upgrading an IBM MQ client installation using msiexec” on page 335
How you upgrade an IBM MQ client installation on Windows to a newer version, release, or modification,
using msiexec.
Procedure
1. Access the IBM MQ installation image.
The location might be a network location, or a local file system directory. See Where to find
downloadable installation images.
2. Locate IBM MQ.msi in the MSI directory of the IBM MQ installation image.
• From a network location, this location might be m:\instmqs\MSI\IBM MQ.msi
• From a local file system directory, this location might be C:\instmqs\MSI\IBM MQ.msi
4. Optional: If you are upgrading an installation on a machine that already has one or more IBM MQ
server installations of the level you are upgrading to, you must provide additional parameters to select
a free MSI instance ID.
See “Choosing MSI Instance IDs for multiple server installations” on page 180 for more information.
In this case, the command might look something like this:
Related tasks
“Upgrading an IBM MQ server installation using the Launchpad” on page 332
How you upgrade an IBM MQ server installation on Windows to a newer version, release, or modification,
using the Launchpad.
“Upgrading an IBM MQ client installation using the GUI installer” on page 334
How you upgrade an IBM MQ client installation on Windows to a newer version, release, or modification,
using the GUI installer.
“Upgrading an IBM MQ client installation using msiexec” on page 335
How you upgrade an IBM MQ client installation on Windows to a newer version, release, or modification,
using msiexec.
Procedure
1. Access the IBM MQ installation image.
See Where to find downloadable installation images.
2. Locate Setup.exe in the Windows directory of the IBM MQ installation image.
3. Start the installation process.
Either run Setup.exe from a command prompt, or double-click Setup.exe from Windows Explorer.
Note: If you are installing on a Windows system with UAC enabled, accept the Windows prompt to
allow the launchpad to run as elevated. During installation, you might also see Open File - Security
Warning dialog boxes that list International Business Machines Limited as the publisher. Click Run to
allow the installation to continue.
The IBM MQ Installation window is displayed.
Attention: If you do not see this screen, it means that there was no IBM MQ client installation
on the machine that could be upgraded by this installer.
6. Follow the installer prompts to upgrade your IBM MQ client installation.
Related tasks
“Upgrading an IBM MQ client installation using msiexec” on page 335
How you upgrade an IBM MQ client installation on Windows to a newer version, release, or modification,
using msiexec.
“Upgrading an IBM MQ server installation using the Launchpad” on page 332
How you upgrade an IBM MQ server installation on Windows to a newer version, release, or modification,
using the Launchpad.
“Upgrading an IBM MQ server installation using msiexec” on page 333
How you upgrade an IBM MQ server installation on Windows to a newer version, release, or modification,
using msiexec.
Procedure
1. Access the IBM MQ installation image.
See Where to find downloadable installation images.
2. Locate IBM MQ.msi in the Windows\MSI directory of the IBM MQ installation image.
3. Optional: If you are upgrading the only IBM MQ client installation, where the installation has the
default value Installation1 issue the following command:
4. Optional: If you are upgrading an installation on a machine that already has one or more IBM MQ client
installations of the level you are upgrading to, you must provide additional parameters to select a free
MSI instance ID.
See “Choosing MSI Instance IDs for multiple client installations” on page 205 for more information.
In this case, the command might look something like this:
Migrating IBM MQ
Migration is the conversion of programs and data to work with a new code level of IBM MQ. Some
types of migration are required, and some are optional. Queue manager migration is never required after
applying a maintenance level update, that does not change the command level. Some types of migration
are automatic, and some are manual. Queue manager migration is typically automatic and required after
releases and manual and optional after a maintenance level upgrade that introduces a new function.
Application migration is typically manual and optional.
On IBM MQ for Multiplatforms, you cannot easily revert to a previous level of IBM MQ after
installation. If you install a copy of IBM MQ obtained from Passport Advantage or from physical media,
the installer uninstalls IBM MQ, if it is present. It then installs the new level of IBM MQ. To revert to the
previous level of IBM MQ, you must keep the earlier installation image and any fixes you applied. Then
you must uninstall the new level, reinstall the previous release level, and reapply the required fixes. If
you have started any queue managers at the later level, they will not work with the restored level of
IBM MQ. (Unless you installed a later maintenance level upgrade, not a new release or version: then
you could revert to an earlier maintenance level by reinstalling the earlier maintenance level upgrade.
Queue manager data is compatible between maintenance levels.) To restore IBM MQ to its previous level,
after starting any queue managers, you must first back up the queue managers. You can then restore the
backup queue managers after restoring the previous level of IBM MQ.
Important: From IBM MQ 9.4.0, AMQP channels no longer support CMS key
repository files. If you are migrating a queue manager with an AMQP configuration to IBM MQ 9.4.0 or
later, and your queue manager is currently configured with a CMS keystore, you must convert it to PKCS12
format before proceeding with the migration. For more information on how to perform this conversion, see
SSL/TLS support in Securing AMQP Clients.
Related concepts
IBM MQ release types and versioning
“Multi-installation queue manager coexistence on AIX, Linux, and Windows” on page 357
You can install multiple copies of IBM MQ for AIX, Linux, and Windows on the same server. These IBM MQ
copies can be at the same or different version levels. This is called a multi-installation. Multi-installation is
Migration paths
An overview of the migration paths between different IBM MQ versions.
Note: Before each new version of the product is released, it is tested for migration from earlier versions
that are in support at that time. Direct migration from a version that is out of support might also work, but
is neither tested nor supported. Therefore, to migrate to the latest version from a version that is out of
support, you should first migrate to an interim version that was released before the earlier version went
out of support.
You can migrate from IBM MQ 9.0 or later direct to IBM MQ 9.4 or later.
Direct migration from IBM MQ 8.0 to IBM MQ 9.4 is not supported. You must first migrate to IBM MQ 9.0,
IBM MQ 9.1, IBM MQ 9.2 or IBM MQ 9.3.
Note: For IBM MQ 9.0 and later, the version covers both LTS and CD releases.
For IBM MQ for Multiplatforms, you cannot easily revert to a previous release of the product. However, if a
queue manager has not been started, you can uninstall the current version and reinstall a different version
of IBM MQ. It does not matter what versions of IBM MQ are installed between when a queue manager
was last started and when it is next started.
After you have moved to a CD modification of the product, you must move to a higher version and release
level to return to the LTS track. For example, you cannot go from IBM MQ 9.3.1 CD to IBM MQ 9.3.0.n LTS.
Your next opportunity to return to the LTS track is at IBM MQ 9.4.0.
This diagram shows two runtime operating system environments, each of which contains a number of
software components, such as databases, application servers, and the language or subsystem run time
environment. One environment is called Server, and contains an IBM MQ server and server application.
The other environment is called Client, and contains an IBM MQ MQI client application.
The language or subsystem run time environment contains an IBM MQ application, the IBM MQ MQI client
or server library, and IBM MQ channel and API exit programs.
The server environment has one or more queue managers, represented in the diagram by QM, that are
using the installation of IBM MQ installed on the server. The components of the language or subsystem
On Multiplatforms, the product loads the library from the installation the application is
connecting to. An application must initially load a library of at least the same level as the application
linked to. IBM MQ then loads the correct version of the library from the installation that the queue
manager is associated with. If you have two installations of the same version, but at different fix levels,
IBM MQ chooses which library to load. The choice is based on the queue manager the application is
connected to. If an application is connected to multiple queue managers, it is possible that multiple
libraries are loaded.
To help you write applications that can exchange messages with earlier versions of the product, IBM
MQ provides data type versioning. Data type versioning assists you in exchanging messages that are
compatible with target queue managers. A good programming practice is to set the version number of
a data structure explicitly. Do not assume that the default version is the one you require. By setting the
version explicitly, you are forced to look up what version to use. The description of the data type version
tells you what level of queue manager supports that version.
It is poor practice to set the data type version to the current version. If you recompile your program
against a new version of IBM MQ, the data type version might change with unexpected consequences.
Client applications are more likely to connect to different queue managers than applications written
for a specific server. Plan carefully when writing an application that is to connect to different versions
of a queue manager, and to queue managers on different platforms. The default values of some IBM
MQ constants, such as MQPMO_SYNCPOINT, MQPMO_NO_SYNCPOINT differ between platforms. Some
functions are not available on all platforms.
You must be aware of, and code to, the capabilities of all the queue managers the application interacts
with. It requires planning and design to write an application that works with different versions of a queue
manager. There is no API provided with IBM MQ to restrict an application to a function subset common
to the set of queue managers it interacts with. To improve interoperability, some developers choose to
provide an MQI wrapper layer, or use MQI API exits, to control the functions programs use.
Connection authentication
For a new IBM MQ 8.0, or later, installation, the CONNAUTH CHCKLOCL attribute will be set to OPTIONAL.
This means that user IDs and passwords are not required, but if they are provided they must be a valid
pair, or they will be rejected.
When you are migrating between a previous version of IBM MQ and the latest version, the CONNAUTH
CHCKLOCL attribute on each queue manager is set to NONE, ensuring version to version continuity, but
switching connection authentication off.
For more information see Connection authentication: Configuration.
Related concepts
“Application compatibility and interoperability with earlier versions of IBM MQ” on page 366
Single-stage migration
Single-stage migration is the term that is used to describe replacing the only installation of IBM MQ on a
server, with a later release.
The advantage of single-stage migration is that it changes the configuration of a queue manager on the
earlier version as little as possible. Existing applications switch from loading the libraries from the earlier
version, to loading the libraries of the later version, automatically. Queue managers are automatically
associated with the installation on the later version. Administrative scripts and procedures are affected as
little as possible by setting the installation to be the primary installation. If you set the installation of the
later version to be the primary installation, commands such as strmqm work without providing an explicit
path to the command.
Of the three approaches, single-stage migration preserves the greatest number of existing scripts and
procedures for running IBM MQ. However, the other migration approaches support a gentler transition to
the new version, which can reduce the overall impact on users.
Figure 3. Single_stage migration: later version installed but queue managers not yet connected and
applications not yet associated
• “Installation methods on IBM i” on page 432 (on IBM i, a single-stage migration is called a
slip installation)
Side-by-side migration
On AIX, Linux, and Windows, side-by-side migration is the term that is used to describe installing a later
version of IBM MQ alongside an older version on the same server. The side-by-side migration scenario
sits half-way between the single-stage and multi-stage migration scenarios and is based on the following
premise:
• Install additional IBM MQ code alongside existing installation while queue managers are still running.
• Move queue managers one at a time to the new installation.
• Migrate and test applications one at a time.
During the installation and verification of the later version of IBM MQ, queue managers continue running,
and remain associated with the older version of IBM MQ.
When you decide to migrate queue managers to the later version of IBM MQ, you stop all queue
managers, migrate them all to the later version, and uninstall the earlier version of IBM MQ.
Figure 6. Side-by-side migration: migrated queue managers connected to and applications associated with
later version
The advantage that the side-by-side migration has over the single-stage migration is that you can install
and verify the later IBM MQ installation on the server before you switch over to it.
Although side-by-side migration is less flexible than multi-stage migration, it does have some advantages
over the multi-stage approach. With the side-by-side approach, you can assign a later version of IBM
MQ to be the primary installation. With the multistage approach, and one version of IBM MQ set as the
Multi-stage migration
Multi-stage migration is the term that is used to describe running a later version of IBM MQ alongside an
older version on the same server. Multi-stage migration is the most flexible approach.
After you install the later version alongside the earlier version, you can create new queue managers
to verify the installation of the later version, and develop new applications. At the same time, you can
migrate queue managers and their associated applications from the earlier version to the later version. By
migrating queue managers and applications one by one, you can reduce the peak workload on your staff
who are managing the migration.
Figure 7. Multi-stage migration: one queue manager and application migrated to later version, and another
queue manager and application still at earlier version
Overview
You can select between:
• Simplicity of maintaining a single IBM MQ installation.
• Flexibility, by allowing up to a maximum of 128 IBM MQ installations on a system.
You can install multiple copies of the same code level; this is especially convenient for maintenance
purposes.
For example, if you want to upgrade IBM MQ 9.0.0.0 to IBM MQ 9.0.0 Fix Pack 1, you can
install a second copy of IBM MQ 9.0.0.0, apply the maintenance to bring it to IBM MQ 9.0.0 Fix Pack 1,
and then move the queue managers across to the new installation. You still have the original installation,
so it is a simple matter to move the queue managers back if you encounter any problems.
Note that you can only move the queue manager to an installation at the same or a higher version. That is,
you can move a queue manager in the following ways:
• From an earlier version to a later version, but not back. For example, from IBM MQ 9.0.0 to IBM MQ
9.1.0, but not from IBM MQ 9.1.0 to IBM MQ 9.0.0.
• From one fix pack level to another fix pack level at the same version, and back. For example, from IBM
MQ 9.0.0.0 to IBM MQ 9.0.0 Fix Pack 1, and back to IBM MQ 9.0.0.0.
• On AIX and Linux, use the following command to list the installations:
cat /etc/opt/mqm/mqinst.ini
To work with a queue manager, you have to use the control commands from its associated installation.
You have a choice of:
• Using the full path to the control commands, for example:
$ MQ_INSTALLATION_PATH\bin\strmqm MYQM
or
• Setting the environment variables for an installation with one of:
$ MQ_INSTALLATION_PATH/bin/setmqenv 's
$ setmqenv -m MYQM
$ setmqenv -n InstallationName
$ setmqenv -p MQ_INSTALLATION_PATH
You might consider using a shell script or batch file to set up the environment for each IBM MQ
installation. You can use the setmqenv or crtmqenv commands to help with this.
• setmqenv sets the values of the environment variables, such as PATH, CLASSPATH and
LD_LIBRARY_PATH, for use with an IBM MQ installation.
• crtmqenv creates a list of the environment variables and their values for use with a particular IBM MQ
installation. You can then use this list to incorporate into a shell script or batch file.
Commands
To run a command, the operating system must find the command in an IBM MQ installation. In general,
you must run a command from the installation that is associated with the correct queue manager. IBM MQ
does not switch commands to the correct installation. However, there are some exceptions, such as the
setmqinst command, where you can run the command from any installation that has the latest version
of the product installed.
Commands that work across installations
• dspmq (display queue managers)
• dspmqinst (display IBM MQ installation)
• dspmqver (display version information)
• setmqinst (set IBM MQ installation)
Other control commands for multiple installations
• crtmqenv (create IBM MQ environment)
• dspmqinst (display IBM MQ installation)
• setmqenv (set IBM MQ environment)
• setmqinst (set IBM MQ installation)
• setmqm (set queue manager)
Coexistence
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations. In addition to queue managers coexisting on a server, objects,
and commands must work correctly with different queue managers running at different command levels.
The coexistence section lists restrictions in the use of objects and commands when they are used with
queue managers at multiple command levels. The queue managers might be running on a single server, or
in a cluster.
Related concepts
“Queue manager coexistence” on page 355
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations.
“Multi-installation queue manager coexistence on AIX, Linux, and Windows” on page 357
1 Do not confuse multi-installation queue manager coexistence with multi-instance queue managers. They
are completely different, though they sound similar in English.
When the installation is complete, and verified, migrate queue managers and applications to the new
installation; see Figure 9 on page 356. When migration is complete, uninstall the old installation.
Think of multi-installation as being the basis for a range of migration strategies. At one end is single-stage,
in which you only have one installation on a server at a time. At the other end is multi-stage migration, in
which you continue to run multiple installations at the same time. In the middle is side-by-side migration.
Each of the three strategies is explained in the following tasks:
Another similar use of multi-installation is to support the updating of queue managers to a new
maintenance level. You maintain two installations, one of which has the latest maintenance level
update applied, and the other has the previous maintenance levels. When you have moved all queue
managers to the latest maintenance level, you can replace the previous maintenance level update with
the next maintenance level update to be released. The configuration allows you to stage the updating of
applications and queue managers to the latest maintenance level. You can switch the primary installation
designation to the latest maintenance level.
Related concepts
“Multi-installation queue manager coexistence on AIX, Linux, and Windows” on page 357
You can install multiple copies of IBM MQ for AIX, Linux, and Windows on the same server. These IBM MQ
copies can be at the same or different version levels. This is called a multi-installation. Multi-installation is
particularly useful when you upgrade from one IBM MQ version to a later version, because it allows you to
run the earlier version alongside the later version.
Related tasks
“Migrating IBM MQ library loading to a later version on AIX and Linux” on page 424
On AIX and Linux, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to a later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
scenarios, you might have to configure the runtime environment differently, for the operating system to
load the later version of the IBM MQ library.
“Staging maintenance level updates on AIX” on page 287
On AIX, you can use multiple installations of IBM MQ on the same server to control the release of
maintenance level updates.
“Staging maintenance level updates on Linux” on page 297
On Linux, you can use multiple installations of IBM MQ on the same server to control the release of
maintenance level updates.
“Staging maintenance level updates on Windows” on page 313
On Windows systems, you can use multiple installations of IBM MQ on the same server to control the
release of maintenance level updates.
“Migrating IBM MQ library loading to a later version on Windows” on page 396
On Windows, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to the later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
scenarios, you might have to configure the runtime environment differently, for the operating system to
load the later version of the IBM MQ library.
IBM MQ 9.4
QM1
Installation
(9.4)
“Inst1"
IBM MQ 9.1
Installation QM2
“Inst2" (9.1)
Application Application
2 3
Figure 10. Coexistence of two queue managers running at different IBM MQ versions
Installing and migrating 359
If you run multiple installations of IBM MQ on a server you must consider three questions:
1. Which installation is a queue manager associated with? See “Queue manager association” on page
360.
2. Which installation does an application load? See “Loading IBM MQ libraries” on page 360.
3. Which installation is an IBM MQ command run from? See “Command association” on page 362.
Application Application
2 3
QM2 QM1
Command association
Examples of commands are dspmqver, setmqinst, runmqsc, and strmqm. The operating system
must find a command in an IBM MQ installation. Many commands also require a queue manager as
an argument, and assume the default queue manager if a queue manager name is not provided as a
parameter.
Unlike loading libraries, if a command includes a queue manager as a parameter, the command is not
switched to the installation that is associated with the queue manager. You must use the setmqenv
command to set up your environment correctly, so that any commands that you issue are run from
the correct installation. You can provide a queue manager as a parameter to setmqenv, to set up the
command environment for that queue manager. For more information, see Running setmqenv.
On Windows, the setmqinst command sets global environment variables, and setmqenv local
environment variables, including the PATH variable to find commands.
On AIX and Linux, the setmqinst command copies symbolic links for a subset of the commands
into /usr/bin. For more information, see “External library and control command links to primary
installation on AIX and Linux” on page 22. The setmqenv command sets up local environment variables,
including the search path to the binary folder in the installation directory.
The following code shows two examples of running setmqenv to set up the command environment for
the copy of IBM MQ that is associated with queue manager QM1.
"%MQ_INSTALLATION_PATH%\bin\setmqenv" -m QM1
. $MQ_INSTALLATION_PATH/bin/setmqenv -m QM1
Related concepts
Connecting applications in a multiple installation environment
“External library and control command links to primary installation on AIX and Linux” on page 22
On AIX and Linux platforms the primary installation is the one to which links from the /usr file system are
made. However, only a subset of those links created with previous releases are now made.
“Features that can be used only with the primary installation on Windows” on page 25
Some Windows operating-system features can be used only with the primary installation. This restriction
is due to the central registration of interface libraries, which might conflict as a result of multiple versions
of IBM MQ being installed.
Installation configuration file, mqinst.ini
Related tasks
“Migrating on AIX and Linux: single-stage” on page 407
Single-stage migration is the term used to describe replacing the only installation of IBM MQ on a server,
with a later release. Single stage migration is also known as upgrading in place or in place upgrade.
Single-stage migration preserves existing scripts and procedures for running IBM MQ the most. With other
migration scenarios you might change some scripts and procedures, but you can reduce the effect queue
manager migration has on users.
“Migrating on Windows: single stage” on page 381
Single-stage migration is the term used to describe replacing the only installation of IBM MQ on a server,
with a later version of the product. Single stage migration is also known as upgrading in place or in place
upgrade. Single-stage migration preserves existing scripts and procedures for running IBM MQ the most.
With other migration scenarios you might change some scripts and procedures, but you can reduce the
effect queue manager migration has on users.
Changing the primary installation
“Staging maintenance level updates on AIX” on page 287
On AIX, you can use multiple installations of IBM MQ on the same server to control the release of
maintenance level updates.
“Staging maintenance level updates on Linux” on page 297
On Linux, you can use multiple installations of IBM MQ on the same server to control the release of
maintenance level updates.
“Staging maintenance level updates on Windows” on page 313
On Windows systems, you can use multiple installations of IBM MQ on the same server to control the
release of maintenance level updates.
“Migrating IBM MQ library loading to a later version on AIX and Linux” on page 424
On AIX and Linux, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to a later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
scenarios, you might have to configure the runtime environment differently, for the operating system to
load the later version of the IBM MQ library.
“Migrating IBM MQ library loading to a later version on Windows” on page 396
All Set the primary installation No changes to existing AIX and Linux: Relies
to IBM WebSphere MQ 7.1 applications on /usr/lib in the default
or later search path
Easy to change the primary
installation
Similar behavior to previous
versions of IBM MQ
Related concepts
“Multiple installations on AIX, Linux, and Windows” on page 17
On AIX, Linux, and Windows, it is possible to have more than one copy of IBM MQ on a system.
TCP:
KeepAlive = Yes
ClientExitPath:
ExitsDefaultPath=/var/mqm/exits
ExitsDefaultPath64=/var/mqm/exits64
An existing setting in mqs.ini is moved to the client configuration file when you upgrade the client. If
you add values to mqs.ini, they are ignored.
• Set JavaExitsClasspath in mqclient.ini.
Heartbeats
Heartbeats can flow across the channel at any time in either direction. If you use SHARECNV(0),
heartbeats flow only when an MQGET call is waiting.
Channel exits
The behavior of a client or server connection channel exit changes when the channel is sharing
conversations (that is, when you set SHARECNV to a value greater than 1). It is unlikely, but possible,
that the change affects the behavior of existing exits. The change is as follows:
• Send or receive exits can alter the MQCD structure on an MQXR_INIT call. The effect of these exits
differs, depending on whether the conversation is shared with other conversations on the same
channel:
– If the MQCXP SharingConversations field passed to the exit instance is set to FALSE, this exit
instance is the first, or only, conversation on the channel instance. No other exit can be changing the
MQCD at the same time, and changes that are made to the MQCD can affect the way that the channel
runs.
– If the MQCXP SharingConversations field passed to the exit instance is set to TRUE, this exit
instance is a subsequent conversation. It is sharing the channel instance with other conversations.
Changes made to the MQCD in the exit instance are retained in the MQCD but do not affect the way the
channel runs.
• Send, receive, and security exit instances can alter the MQCD, when the MQCXP
SharingConversations field is set to TRUE. Exit instances on other conversations might be changing
the MQCD at the same time. Updates written by one exit instance can be overwritten by another
instance. It might be necessary to serialize access to the MQCD across these different exit instances to
maintain the consistency of fields in MQCD.
Procedure
1. Stop all of the IBM MQ processes for the installation being migrated.
2. Upgrade the existing CD installation by using one of the following methods:
• On Linux, if your existing CD installation is at IBM MQ 9.2.1 or later, you can upgrade
IBM MQ by installing the new CD installation in the same location as the existing installation.
For more information about upgrading your CD installation on Linux, see “Upgrading an IBM MQ
installation on Linux” on page 321.
• Uninstall the existing CD installation and then install the new CD modification level onto the same
system.
Note that uninstalling the existing installation does not remove the object definitions from the
system. The object definitions remain in place.
3. Start the queue manager.
strmqm QmgrName
When you first start a queue manager after migration to the new CD level:
• Any new attributes for existing objects are set to their default values.
• Any new default objects are created.
• Queue manager objects are migrated to the new modification level.
Note: If you have saved your current configuration details in a text file, that file can be used to
duplicate these objects in the newly created queue manager after it has been created, if you installed
the new version onto a different system.
See the runmqsc command for instructions on how you can do this.
Related concepts
IBM MQ release types and versioning
Important: From IBM MQ 9.4.0, AMQP channels no longer support CMS key
repository files. If you are migrating a queue manager with an AMQP configuration to IBM MQ 9.4.0 or
later, and your queue manager is currently configured with a CMS keystore, you must convert it to PKCS12
format before proceeding with the migration. For more information on how to perform this conversion, see
SSL/TLS support in Securing AMQP Clients.
Procedure
• For information about creating a migration plan, see “Planning to migrate IBM MQ to a later version on
Windows” on page 373.
• For information about migrating a queue manager from an earlier version to the latest version, see
“Migrating a queue manager to a later version on Windows” on page 378.
• For information about reverting a queue manager to an earlier version, see “Reverting a queue
manager to an earlier version on Windows” on page 393.
• For information about migrating an IBM MQ MQI client to the latest version, see “Migrating an IBM MQ
MQI client to a later version on Windows” on page 395.
• For information about converting a single instance queue manager to a multi-instance queue manager,
see Converting a single instance to a multi-instance queue manager on Windows.
• For information about reverting a multi-instance queue manager to a single instance queue manager,
see Reverting to a single-instance queue manager on Windows.
• For information about migrating IBM MQ library loading to the latest version, see “Migrating IBM MQ
library loading to a later version on Windows” on page 396.
• For information about migrating MQ Telemetry to the latest version, see “Migrating MQ Telemetry on
Windows” on page 400.
• For information about migrating an MSCS configuration to the latest version, see “Migrating an MSCS
configuration on Windows” on page 401.
• For information about Migrating logs to an Advanced Format disk, see “Migrating logs to an Advanced
Format disk on Windows” on page 403.
Related concepts
“Migration concepts and methods” on page 340
An overview of the various concepts and methods for migrating from one release of the product to
another.
Related tasks
“Migrating IBM MQ on AIX and Linux” on page 404
Migration tasks associated with AIX and Linux platforms are grouped in this section.
“Migrating IBM MQ on IBM i” on page 429
IBM MQ migration tasks associated with IBM i are grouped in this section.
Related reference
“Changes that affect migration” on page 337
Procedure
1. Review the IBM MQ system requirements for the later version of the product.
See System Requirements for IBM MQ.See “IBM MQ components and features” on page 6 and
“Where to find downloadable installation images” on page 9.
2. Decide whether to run the earlier version and the later version of the product on the same server, and
also which migration method you want to use.
Choices are single-stage migration, side-by-side migration, or multi-stage migration. See “Migration
methods on IBM MQ for Multiplatforms” on page 347.
3. Review all the changes in IBM MQ that affect you.
See “Changes that affect migration” on page 337.
4. Review performance changes.
See MQ Performance documents.
5. Review the readme file for the later version of IBM MQ.
See IBM MQ, WebSphere MQ, and MQSeries product readmes.
6. Plan the sequence and timing of queue manager migrations.
• If the queue manager is part of a queue manager cluster, you must migrate the queue managers
that are full repositories first.
• If the queue manager is part of a high availability cluster, plan the migration to minimize downtime
and maximize availability; see “Migrating a queue manager in a high-availability configuration” on
page 457.
7. Plan to migrate your queue manager to the later version.
See “Migrating a queue manager to a later version on Windows” on page 378.
Backing up queue manager data is part of the queue manager migration task. An alternative approach
is to install and configure a new server, then test the later version with a new queue manager on the
new server. When you are ready to go into production on the later version, copy the queue manager
configuration and data to the new server.
8. Plan to update any manual or automated procedures you have written with changes to messages and
codes.
A suffix letter, indicating the severity of a message (I, W, E, S or T) is appended to IBM MQ diagnostic
(AMQ) messages. Existing scripts looking for error codes without the severity will fail. For example,
existing scripts looking for error matching to AMQ7468 will fail. You must update the scripts to look
for error codes with the severity suffix added (for example, AMQ7468I). For more information, see
IBM MQ messages on Multiplatforms.
9. Decide on what regression tests to perform before putting the queue manager into production on
the later version. Include in your regression tests the procedures and applications you identified in
previous steps.
10. Plan to migrate your IBM MQ MQI client installations to the later version.
11. Plan to migrate your client and server applications to use new functions in the later version.
12. Decide which downloadable images you require for the migration.
For more information, see “Where to find downloadable installation images” on page 9.
Existing applications
All applications that were built with previous versions of the product continue to work in IBM MQ 8.0 or
later with a 64 bit queue manager.
All applications using the C++ object interface need to be rebuilt; applications using the C interface are
not affected.
Clients
32-bit client applications can connect transparently to queue managers from all supported versions of the
product. This includes 64-bit IBM MQ 8.0 or later.
Samples
From IBM MQ 8.0, the samples for the C and C++ languages are compiled as 64-bit.
Related concepts
“Hardware and software requirements on Windows systems” on page 168
Check that the server environment meets the prerequisites for installing IBM MQ for Windows and install
any prerequisite software that is missing from your system.
Related reference
Windows: changes from IBM MQ 8.0
Directory structure on Windows systems
From IBM MQ 9.1.0 Fix Pack 2 and IBM MQ 9.1.2, the IBM MQ installer on Windows sets additional
permission restrictions as part of the security configuration of the MQ installation directories. The logic
that does this is run at installation, upgrade, modification, and fix pack installation time.
You might find that, due to the increased security, you are unable to do certain things exactly the same
way you used to do them. For example:
• An MQ Administrator (who is not also a member of the Administrators group) can no longer edit or
recompile the sample programs in the Tools subdirectory. If you wish to do this, take a copy of the
directory (or the portions you are interested in) and change your copies of the build scripts to reflect the
new location.
In normal use, however, you should be unaware of the change, except for the little extra time required by
the installer to make the changes. During this period the message Initializing security... will be
displayed. A similar short pause will occur when installing the fix pack files or applying a patch.
The update of the security writes a log (amqidsec-<Installationname>.txt) to the TEMP directory
on the machine. If you see the main install failing in custom action 'iwiLaunchAmqidsec', you should
consult this file.
First-time installations
When you install IBM MQ for the first time, you can accept default installation locations. You can also
select the custom installation option by choosing the location for the IBM MQ binary files, and the location
for the IBM MQ data and logs.
From IBM MQ 8.0, the default location for the program binary files is different from the default location for
the data files.
Procedure
1. Log in as a user in group mqm.
2. Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished all of
the file transfers that they were engaged in. There should be no incomplete transfers associated with
the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
3. End all the activity of queue managers associated with the IBM MQ installation.
a) Run the dspmq command to list the state of all the queue managers on the system.
Run either of the following commands from the installation that you are updating:
dspmq -o installation -o status displays the installation name and status of queue
managers associated with all installations of IBM MQ.
dspmq -a displays the status of active queue managers associated with the installation from
which the command is run.
b) Use the MQSC command DISPLAY LSSTATUS to list the status of listeners associated with a
queue manager, as shown in the following example:
c) Run the endmqm command to stop each running queue manager associated with this installation.
-c
endmqm -w QmgrName
-i
-p
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
For the maintenance to proceed, applications must respond to an endmqm command by
disconnecting from the queue manager and releasing any IBM MQ libraries they have loaded. If
endmqlsr -m QMgrName
strmqm QmgrName
• Windows
If you have added any of your own CCSID information into your existing ccsid.tbl file, you
should copy this information into the new ccsid_part2.tbl file, if you want to take advantage of
the new formats in your customizations
You should copy the required information, rather than move the information, so that your existing
version of IBM MQ continues to work.
Procedure
1. Log in as a user in group mqm.
2. Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished all
of the file transfers that they were engaged in. There should be no incomplete transfers associated
with the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
3. End all the activity of queue managers associated with the IBM MQ installation.
a) Run the dspmq command to list the state of all the queue managers on the system.
Run either of the following commands from the installation that you are updating:
dspmq -o installation -o status displays the installation name and status of queue
managers associated with all installations of IBM MQ.
dspmq -a displays the status of active queue managers associated with the installation from
which the command is run.
b) Use the MQSC command DISPLAY LSSTATUS to list the status of listeners associated with a
queue manager, as shown in the following example:
c) Run the endmqm command to stop each running queue manager associated with this installation.
-c
endmqm -w QmgrName
-i
-p
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
For the maintenance to proceed, applications must respond to an endmqm command by
disconnecting from the queue manager and releasing any IBM MQ libraries they have loaded.
If they do not, you must find another way to force applications to release IBM MQ resources, such
as by stopping the applications.
You must also stop applications that are using the client libraries that are part of the installation.
Client applications might be connected to a different queue manager, running a different
installation of IBM MQ. The application is not informed about queue managers in the current
installation being shut down.
Any applications that continue to have IBM MQ shared libraries from the installation loaded
prevent you applying IBM MQ maintenance. An application might disconnect from a queue
manager, or be forcibly disconnected, but keep an IBM MQ shared library loaded.
Note: “Applying maintenance level updates to multi-instance queue managers on Windows”
on page 316 describes how to apply maintenance to a multi-instance queue manager. A multi-
instance queue manager can continue to run on one server, while maintenance is applied to
another server.
d) Stop any listeners associated with the queue managers, using the command:
"Inst_1_INSTALLATION_PATH\bin\setmqinst" -i -n Inst_1
Make the installation primary to avoid specifying a search path to run IBM MQ commands
10. Start the queue managers and applications.
a) Run the setmqm command to associate the queue managers with Inst_1.
If you are migrating between any releases of the product, you must use setmqm to associate the
queue managers with the new installation manually.
b) Run the strmqm command to start the queue managers and migrate them to the later version of
the product.
What to do next
You cannot reinstall an earlier version of the product on a system that has the latest, or any other, version
of IBM MQ installed.
Related concepts
“Migrating a queue manager to a later version on AIX and Linux” on page 406
On AIX and Linux, you can migrate a queue manager from an earlier version to a later version of IBM MQ
in one of three ways: single-stage, side-by-side, or multi-stage.
“Installation name on AIX, Linux, and Windows” on page 14
Each installation of IBM MQ on AIX, Linux, and Windows, has a unique identifier known as an installation
name. The installation name is used to associate things such as queue managers and configuration files
with an installation.
“Queue manager coexistence” on page 355
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations.
“Multi-installation queue manager coexistence on AIX, Linux, and Windows” on page 357
You can install multiple copies of IBM MQ for AIX, Linux, and Windows on the same server. These IBM MQ
copies can be at the same or different version levels. This is called a multi-installation. Multi-installation is
particularly useful when you upgrade from one IBM MQ version to a later version, because it allows you to
run the earlier version alongside the later version.
Related tasks
Migrating on Windows: side-by-side
Migrating on Windows: multi-stage
“Planning to migrate IBM MQ to a later version on Windows” on page 373
“Migrating a queue manager to a later version on Windows” on page 378
On Windows platforms, follow these instructions to migrate a queue manager from an earlier version to a
later version of IBM MQ.
“Configuring IBM MQ with the Prepare IBM MQ Wizard” on page 194
2 On Windows, the IBM MQ library is a DLL. A DLL is sometimes called a load library or a shared library. The
entry points to a DLL are defined in a link library, with the file extension .lib32 or .lib. The .lib library
is linked at build-time and the DLL loaded at runtime.
• Windows
If you have added any of your own CCSID information into your existing ccsid.tbl file, you
should copy this information into the new ccsid_part2.tbl file, if you want to take advantage of
the new formats in your customizations
Copy the required information, rather than move the information, so that your existing version of
IBM MQ continues to work.
Procedure
1. Install the later version in a different installation directory from the earlier version.
a) Decide on an installation naming convention. Give the installation a name of your choosing, or
accept the default installation name.
For the first installation, the default name is Installation1. For the second installation, the name is
Installation2, and so on.
b) Verify the installation.
Run the installation verification procedures and your own tests.
2. Uninstall the earlier version of the product.
When uninstalling the earlier product, you must stop all queue managers and applications that
have loaded an IBM MQ library on the server. For this reason, you might choose to postpone
uninstalling the earlier version of the product until a convenient maintenance window. When
an earlier version of the product is not installed on a server, it is sufficient to stop the queue
managers and applications that have loaded libraries from the installation that you are uninstalling
or updating. It is not necessary to stop applications and queue managers associated with other
installations.
a) Stop all applications that have loaded IBM MQ libraries on the server.
b) Stop the queue managers and listeners on the server.
c) Uninstall the earlier version of the product.
• Stop all local IBM MQ applications
• You do not need to stop all the queue managers at this point.
3. Make the later version of the installation the primary installation.
a) Run the setmqinst command
"Inst_1_INSTALLATION_PATH\bin\setmqinst" -i -n Inst_1
Make the installation primary to avoid specifying a search path to run IBM MQ commands
Use the dspmqinst command to discover the Installation name, or use the default value
Installation 1.
Doing this means that you do not have to specify a search path on IBM MQ commands.
4. Start the queue managers and applications.
• When an application connects to a queue manager, the operating system searches its load path to
load the IBM MQ library 3 . An IBM WebSphere MQ 7.1, or later, library contains code that checks
that the queue manager is associated with an installation. If a queue manager is associated with
3 On Windows, the IBM MQ library is a DLL. A DLL is sometimes called a load library or a shared library. The
entry points to a DLL are defined in a link library, with the file extension .lib32 or .lib. The .lib library
is linked at build-time and the DLL loaded at runtime.
What to do next
You cannot reinstall an earlier version of the product on a system that has the latest, or any other, version
of IBM MQ installed.
Related tasks
Migrating on Windows: single stage
Single-stage migration is the term used to describe replacing the only installation of IBM MQ on a server,
with a later version of the product. Single stage migration is also known as upgrading in place or in place
upgrade. Single-stage migration preserves existing scripts and procedures for running IBM MQ the most.
With other migration scenarios you might change some scripts and procedures, but you can reduce the
effect queue manager migration has on users.
Migrating on Windows: multi-stage
“Planning to migrate IBM MQ to a later version on Windows” on page 373
“Uninstalling IBM MQ on Windows” on page 230
You can uninstall the IBM MQ MQI clients and servers on Windows systems by using the control panel,
the command line ( msiexec ), MQParms, or by using the installation media, in which case you can
optionally remove queue managers as well.
“Installing IBM MQ server on Windows” on page 176
On Windows, IBM MQ is installed by using the Microsoft Installer (MSI). You can either use the
Installation Launchpad to invoke MSI or alternatively, you can invoke MSI directly.
Associating a queue manager with an installation
Changing the primary installation
“Installation name on AIX, Linux, and Windows” on page 14
Each installation of IBM MQ on AIX, Linux, and Windows, has a unique identifier known as an installation
name. The installation name is used to associate things such as queue managers and configuration files
with an installation.
“Queue manager coexistence” on page 355
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations.
“Migrating IBM MQ library loading to a later version on AIX and Linux” on page 424
On AIX and Linux, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to a later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
scenarios, you might have to configure the runtime environment differently, for the operating system to
load the later version of the IBM MQ library.
“Migrating IBM MQ library loading to a later version on Windows” on page 396
On Windows, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to the later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
scenarios, you might have to configure the runtime environment differently, for the operating system to
load the later version of the IBM MQ library.
“Multi-installation queue manager coexistence on AIX, Linux, and Windows” on page 357
• Windows
If you have added any of your own CCSID information into your existing ccsid.tbl file, you
should copy this information into the new ccsid_part2.tbl file, if you want to take advantage of
the new formats in your customizations
Copy the required information, rather than move the information, so that your existing version of
IBM MQ continues to work.
Note: If you are running the IBM MQ.NET monitor in transactional mode, the queue manager it connects
to must be the primary installation.
"Inst_1_INSTALLATION_PATH\bin\setmqenv" -s
The -s option sets up the environment for the installation that runs the setmqenv command.
4. Restart the queue manager and the applications that connect to it.
a) Set up the local environment to the installation Inst_1.
"Inst_1_INSTALLATION_PATH\bin\setmqenv" -s
The -s option sets up the environment for the installation that runs the setmqenv command.
b) Run the setmqm command to associate QM1 with Inst_1.
c) Run the strmqm command to start QM1 and migrate it to the later version.
strmqm QM1
strmqm QM2
d) Restart application 1
The application loads the later version library and connects to QM1, which is associated with the
later version of the product.
5. Migrate all queue managers and applications to the later version.
Repeat steps “2” on page 390 and “4” on page 390, when required, until all the queue managers
and applications are migrated to the later version of the product.
6. Uninstall the earlier version of the product.
When uninstalling the earlier product, you must stop all queue managers and applications that
have loaded an IBM MQ library on the server. For this reason, you might choose to postpone
uninstalling the earlier version of the product until a convenient maintenance window. When
an earlier version of the product is not installed on a server, it is sufficient to stop the queue
managers and applications that have loaded libraries from the installation that you are uninstalling
or updating. It is not necessary to stop applications and queue managers associated with other
installations.
a) Log in as a user in group mqm.
b) Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished
all of the file transfers that they were engaged in. There should be no incomplete transfers
associated with the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
c) Stop the mqweb server that is associated with the IBM MQ installation by entering the following
command:
endmqweb
d) List the state of all the queue managers on the system by using the dspmq command:
dspmq -a
e) List the status of listeners associated with a queue manager by using the DISPLAY LSSTATUS
MQSC command:
f) Stop any listeners associated with the queue managers, using the endmqlsr command:
endmqlsr -m QMgrName
g) Stop each running queue manager that is associated with this installation by using the endmqm
command:
endmqm QMgrName
h) Uninstall the earlier version of the product. For more information, see “Uninstalling or modifying
IBM MQ on Linux” on page 150
7. Make Inst_1 the primary installation.
"Inst_1_INSTALLATION_PATH\bin\setmqinst" -i -n Inst_1
Note: Use the dspmqinst command to discover the Installation name, or use the default value
Installation 1.
You do not have to set up a search path to run IBM MQ commands from the primary installation.
What to do next
You cannot reinstall an earlier version of the product on a system that has the latest, or any other, version
of IBM MQ installed.
Now that you have uninstalled the earlier version of the product, and made the later installation primary,
you can review how the application runtime environment is set. It is no longer necessary to run setmqenv
to set up the search path to load libraries for the later version. If you have only one installation of the later
version of the product installed, it is not necessary to run setmqenv to run commands.
Related concepts
“Installation name on AIX, Linux, and Windows” on page 14
Each installation of IBM MQ on AIX, Linux, and Windows, has a unique identifier known as an installation
name. The installation name is used to associate things such as queue managers and configuration files
with an installation.
“Queue manager coexistence” on page 355
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations.
“Multi-installation queue manager coexistence on AIX, Linux, and Windows” on page 357
You can install multiple copies of IBM MQ for AIX, Linux, and Windows on the same server. These IBM MQ
copies can be at the same or different version levels. This is called a multi-installation. Multi-installation is
particularly useful when you upgrade from one IBM MQ version to a later version, because it allows you to
run the earlier version alongside the later version.
Related tasks
Migrating on Windows: single stage
Single-stage migration is the term used to describe replacing the only installation of IBM MQ on a server,
with a later version of the product. Single stage migration is also known as upgrading in place or in place
upgrade. Single-stage migration preserves existing scripts and procedures for running IBM MQ the most.
With other migration scenarios you might change some scripts and procedures, but you can reduce the
effect queue manager migration has on users.
Migrating on Windows: side-by-side
“Planning to migrate IBM MQ to a later version on Windows” on page 373
“Installing IBM MQ server on Windows” on page 176
On Windows, IBM MQ is installed by using the Microsoft Installer (MSI). You can either use the
Installation Launchpad to invoke MSI or alternatively, you can invoke MSI directly.
Associating a queue manager with an installation
Changing the primary installation
“Migrating IBM MQ library loading to a later version on AIX and Linux” on page 424
On AIX and Linux, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to a later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
scenarios, you might have to configure the runtime environment differently, for the operating system to
load the later version of the IBM MQ library.
“Migrating IBM MQ library loading to a later version on Windows” on page 396
Procedure
1. Log in as a user in group mqm.
2. Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished all of
the file transfers that they were engaged in. There should be no incomplete transfers associated with
the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
3. End all the activity of queue managers associated with the IBM MQ installation.
a) Run the dspmq command to list the state of all the queue managers on the system.
Run either of the following commands from the installation that you are updating:
dspmq -o installation -o status displays the installation name and status of queue
managers associated with all installations of IBM MQ.
c) Run the endmqm command to stop each running queue manager associated with this installation.
-c
endmqm -w QmgrName
-i
-p
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
For the maintenance to proceed, applications must respond to an endmqm command by
disconnecting from the queue manager and releasing any IBM MQ libraries they have loaded. If
they do not, you must find another way to force applications to release IBM MQ resources, such as
by stopping the applications.
You must also stop applications that are using the client libraries that are part of the installation.
Client applications might be connected to a different queue manager, running a different
installation of IBM MQ. The application is not informed about queue managers in the current
installation being shut down.
Any applications that continue to have IBM MQ shared libraries from the installation loaded prevent
you applying IBM MQ maintenance. An application might disconnect from a queue manager, or be
forcibly disconnected, but keep an IBM MQ shared library loaded.
Note: “Applying maintenance level updates to multi-instance queue managers on Windows” on
page 316 describes how to apply maintenance to a multi-instance queue manager. A multi-instance
queue manager can continue to run on one server, while maintenance is applied to another server.
d) Stop any listeners associated with the queue managers, using the command:
endmqlsr -m QMgrName
What to do next
You might be reverting to a earlier version on a server with multiple IBM MQ installations. If one of
the installations is primary, after reverting the earlier version that installation, by default, becomes the
primary installation.
You must review how applications connect to an installation. After reverting to the earlier version, some
applications might connect to the wrong installation.
Related concepts
Backing up and restoring a queue manager
Procedure
1. Review the IBM MQ system requirements for the later version of the product.
See System Requirements for IBM MQ.See “IBM MQ components and features” on page 6 and “Where
to find downloadable installation images” on page 9.
2. Review all the changes in IBM MQ that affect you.
See “Changes that affect migration” on page 337.
3. End all IBM MQ activity on the workstation.
4. Upgrade the client.
Select the appropriate option for your enterprise.
• For a client installation on a workstation, see “Installing an IBM MQ client on Windows” on page 203.
What to do next
After upgrading the IBM MQ MQI client, you must check the client channel configuration, and verify that
your IBM MQ MQI client applications work correctly with the later version of the product.
Related concepts
“IBM MQ MQI client migration” on page 344
IBM MQ MQI client migration is the process of converting IBM MQ MQI client configurations, and client
and server channels from one version to another. Client migration can take place after upgrading the IBM
MQ MQI client, and is reversible.
Related tasks
“Planning to migrate IBM MQ to a later version on Windows” on page 373
Procedure
1. End all IBM MQ activity on the workstation.
2. Uninstall the later version of the IBM MQ MQI client code.
3. Follow the client installation procedure for the platform to install the earlier version of the IBM MQ MQI
client code.
4. If you configured a Client Connection Definition Table (CCDT) for a queue manager on a later version of
the product, revert to using a table created by a queue manager on the earlier version.
The CCDT must always be created by a queue manager on the same, or earlier, release to the client.
Scenari Latest version replaces Latest version replaces Latest version alongside
Actio o earlier version in the same earlier version in a earlier version
n location different location
Multi-stage
Single-stage Side-by-side
setmqinst makes the later version installation primary. No. The later version
The global PATH is changed to point to the later version installation can be primary,
setmqinst
library and all Windows features work with the later because an earlier version is
version. installed.
Scenari Latest version replaces Latest version replaces Latest version alongside
Actio o earlier version in the same earlier version in a earlier version
n location different location
Multi-stage
Single-stage Side-by-side
No other Library loading works Library loading probably The library loading continues to
configuration correctly. works correctly. work with the earlier version
actions correctly, nothing works with
The global PATH contains the The library loading might
the later version.
location of the later version not work, if the application
libraries. process locally modified
the PATH to reference
Even if the later version
the location of the earlier
installation is not primary,
version libraries. A local
library loading works
setting of PATH might
correctly. The later version
override the global PATH
libraries are in the same
that is set by setmqinst.
location as the earlier
version libraries were.
Procedure
1. Consider which of the following questions apply to your configuration.
• Did you follow the build procedure documented in the product documentation for the earlier version
of the product? You might be following a different build procedure tailored to your development
environment, or adapted from a development tool such as Microsoft Visual Studio.
• How did you specify the load path for the earlier version?
• Is the application is loaded by another environment, such as Eclipse, or an application server? You
must modify the parameters that govern how the parent environment loads applications, not the way
the parent environment is loaded.
• Do the functions performed by an application require that the queue manager it connects to is
associated with the primary installation?
• What constraints and requirements do you have on how the load path is specified in the later
version? Security rules might restrict the use of LD_LIBRARY_PATH.
• Is the later version of the product installed alongside the earlier version?
What to do next
If you add further installations of the later version of the product, you must decide which installation to
make primary, if you have chosen to make any primary. As long as applications load IBM MQ libraries
from one of the later version installations, such as the primary installation, they can connect to queue
managers associated with any other later version installation.
On Windows, you might build applications with different development tools. You must identify the
property of the development tool that sets the PATH of the application that is being built, and not the
properties of the tool itself. For example, if you are debugging with Microsoft Visual Studio, you can
insert a call to setmqenv in the Environment property of the debugging section of the Configuration
properties of a project.
A Windows application might call LoadLibrary and specify an explicit load path. You might build a side-
by-side assembly and configure an explicit load path. If an application uses either of these mechanisms,
and the later version IBM MQ library is not on the same path as the earlier release, you must recompile, or
configure and relink your application to load the later version libraries.
Related concepts
“Features that can be used only with the primary installation on Windows” on page 25
Some Windows operating-system features can be used only with the primary installation. This restriction
is due to the central registration of interface libraries, which might conflict as a result of multiple versions
of IBM MQ being installed.
Related tasks
Changing the primary installation
Connecting applications in a multiple installation environment
“Migrating IBM MQ library loading to a later version on AIX and Linux” on page 424
On AIX and Linux, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to a later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
scenarios, you might have to configure the runtime environment differently, for the operating system to
load the later version of the IBM MQ library.
Related reference
“Coexistence” on page 354
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations. In addition to queue managers coexisting on a server, objects,
and commands must work correctly with different queue managers running at different command levels.
Procedure
1. Create a migration plan.
See “Planning to migrate IBM MQ to a later version on Windows” on page 373.
2. Migrate your queue managers to the later release.
3. “Installation considerations for MQ Telemetry” on page 250.
4. Verify that the MQ Telemetry installation was successful. See “Verifying the installation of MQ
Telemetry” on page 251.
5. If the passphrases for your MQTT TLS channels are stored in plain text, you should encrypt the
passphrases.
Before IBM MQ 9.3.0, passphrases for MQTT TLS channels were stored in plain text. From IBM MQ
9.3.0, support for the encryption of passphrases for MQTT TLS channels is provided.
Existing plain text passphrase are not changed to an encrypted form automatically. You must update
your plain text passphrases to an encrypted form. For more information on how to encrypt your
passphrases, see Encryption of passphrases for MQTT TLS channels.
Results
Message AMQ4616 indicates completion of the task. The existing MQTT channels and previous
subscriptions are still present.
Related concepts
“IBM MQ installation overview” on page 6
An overview of concepts and considerations for installing IBM MQ, with links to instructions on how to
install, verify, and uninstall IBM MQ on each of the supported platforms.
“Installation considerations for MQ Telemetry” on page 250
Procedure
1. Modify the possible owners of the IBM MQ resource to encompass only the Active node or nodes. With
no owners assigned to Passive nodes, the IBM MQ resource that is being migrated cannot be activated.
2. Ensure that the group containing the IBM MQ resource is currently on one of the nodes defined as a
possible owner. The group must include any applications connecting to the queue manager resource.
3. Stop the cluster service on the node being migrated. The MSCS cache is cleared of any IBM MQ DLLs
that have been registered.
4. Migrate the selected node by following the standard instructions in “Migrating a queue manager to a
later version on Windows” on page 378. Apply the required maintenance level.
5. Start the cluster service on the selected node.
6. On the next node to be migrated, ensure that the IBM MQ resources are offline.
7. Remove this node from the list of possible owners. For clusters with more than two nodes, see the
Additional considerations later in this topic.
8. Move the group containing the IBM MQ resource to one of the possible owners and bring it online.
9. Repeat steps 3-8 as necessary for any remaining nodes.
Migrating a four-node MSCS cluster from an earlier version of the product to the latest version
The example in Table 41 on page 402 illustrates the steps involved in migrating a four-node MSCS cluster.
In the example IBM MQ resources include queue managers, applications, and dependant MSCS
resources, such as an IP address defined an as MSCS resource. In each step, the changes are italicized.
Step 1
Select the node to migrate and prepare it for upgrading from an earlier version of the product to the
latest version.
1. Select node 1 to be migrated and convert it into a Passive node with no running IBM MQ resources.
2. Modify the possible owners of the group containing the IBM MQ resources, to encompass only the
required online nodes. Failover does not attempt to switch IBM MQ resources to the node that is
not a possible owner. It is safe to migrate that node.
What to do next
Additional considerations in an MSCS setup with more than 2 nodes: A cluster might contain enough
nodes for you to form a group of migrated queue managers and a group of unmigrated nodes. Switch to
the migrated group when it contains half the number of queue managers. Before you have reached the
half way point, the unmigrated group are possible owners. When you reach the half way point, switch the
possible owners to the migrated group.
Related concepts
Windows: MSCS restriction with multiple installations
Related tasks
“Migrating a queue manager in a high-availability configuration” on page 457
High-availability configurations of queue managers can increase the availability of IBM MQ applications. If
a queue manager, or server fails, it is restarted automatically on another server. You can arrange for IBM
MQ MQI client applications to automatically reconnect to the queue manager. Server applications can be
configured to start when the queue manager starts.
• The IBM MQ Bridge to Salesforce is deprecated across all releases from November 22
2022 (see US Announcement letter 222-341).
• For Continuous Delivery, the IBM MQ Bridge to blockchain is removed from the product at
IBM MQ 9.3.2.
For Long Term Support, IBM MQ Bridge to blockchain is removed at IBM MQ 9.3.0 Fix Pack
15.
Blockchain connectivity can be achieved with IBM App Connect or through App Connect capabilities
available with IBM Cloud Pak for Integration.
On Linux for x86-64 only, if you are migrating from an installation where the IBM MQ Bridge to
blockchain is present, you must remove it before you upgrade to IBM MQ 9.4.0 or later.
• From IBM MQ 9.3.0, IBM MQ Explorer has been removed from the IBM MQ installation package. It
remains available as a separate download, and can be installed from the stand-alone IBM MQ Explorer
download available from Fix Central. On Linux for x86-64 only, if you are migrating from an installation
where the IBM MQ Explorer is present as part of the IBM MQ installation, you must remove it before you
upgrade to IBM MQ 9.3.0 or later.
Important: From IBM MQ 9.4.0, AMQP channels no longer support CMS key
repository files. If you are migrating a queue manager with an AMQP configuration to IBM MQ 9.4.0 or
later, and your queue manager is currently configured with a CMS keystore, you must convert it to PKCS12
format before proceeding with the migration. For more information on how to perform this conversion, see
SSL/TLS support in Securing AMQP Clients.
Procedure
1. Review the IBM MQ system requirements for the later version of the product.
See System Requirements for IBM MQ.
2. Decide whether to run the earlier version and the later version of the product on the same server, and
also which migration method you want to use.
Choices are single-stage migration, side-by-side migration, or multi-stage migration. See “Migration
methods on IBM MQ for Multiplatforms” on page 347.
3. Review all the changes in IBM MQ that affect you.
See “Changes that affect migration” on page 337.
4. Review performance changes.
See MQ Performance documents.
5. Review the readme file for the later version of IBM MQ.
See IBM MQ, WebSphere MQ, and MQSeries product readmes.
Single-stage migration
Single-stage migration is the term used to describe replacing the only installation of IBM MQ on a server,
with a later release. Single stage migration is also known as upgrading in place or in place upgrade.
Single-stage migration preserves existing scripts and procedures for running IBM MQ the most. With other
migration scenarios you might change some scripts and procedures, but you can reduce the effect queue
manager migration has on users.
Side-by-side migration
Side-by-side migration is the term used to describe installing a later version of IBM MQ alongside
an earlier version on the same server. Queue managers remain running during the installation and
verification of the later version of IBM MQ. They remain associated with the earlier version of IBM
MQ. When you decide to migrate queue managers to the later version of IBM MQ, you stop all queue
managers, uninstall the earlier version, and migrate them all to the later version of IBM MQ.
The advantage the side-by-side scenario has over the single-stage scenario is that you can install and
verify the installation of the later version of the product on the server before switching over to it.
The side-by-side migration scenario is less flexible than multi-stage migration, and might not seem to
have any advantages over it. However, side-by-side migration does have advantages over the multi-stage
and single-stage approaches. With the side-by-side approach, because you uninstall the earlier version
before starting any queue managers, you can assign an installation on the later version to be the primary
installation. In the multi-stage approach, you cannot set an installation of the later version to be the
primary installation while you continue to run the earlier version. With the later version having the primary
installation, many applications restart without reconfiguring their environment, making the migration
process simpler.
For more information about performing a side-by-side migration, see “Migrating on AIX and Linux: side-
by-side” on page 411.
Multi-stage migration
Multi-stage migration is the term used to describe running a later version of IBM MQ alongside an earlier
version on the same server. After installing the later version alongside the earlier version, you can create
new queue managers to verify the installation of the later version, and develop new applications. At the
same time, you can migrate queue managers and their associated applications from the earlier version
to the later version. By migrating queue managers and applications one-by-one, you can reduce the peak
workload on staff managing the migration. When migration to the later version is complete, you can
uninstall the earlier version, and make the later version installation the primary installation.
For more information about performing a multi-stage migration, see “Migrating on AIX and Linux: multi-
stage” on page 415.
Backing up and restoring a queue manager
IBM MQ release types and versioning
Attention:
The ccsid_part2.tbl file takes precedence over the ccsid.tbl file and:
• Allows you to add or modify CCSID entries
• Specify default data conversion
• Specify data for different command levels
The ccsid_part2.tbl is applicable to the following platforms only:
• Windows
If you have added any of your own CCSID information into your existing ccsid.tbl file,
you should copy this information into the new ccsid_part2.tbl file, if you want to take
advantage of the new formats in your customizations
Copy the required information, rather than move the information, so that your existing version
of IBM MQ continues to work.
Procedure
1. Log in as a user in group mqm.
2. Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished all
of the file transfers that they were engaged in. There should be no incomplete transfers associated
with the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
3. Stop the mqweb server that is associated with the IBM MQ installation by entering the following
command:
endmqweb
dspmq -a
b) List the status of listeners associated with a queue manager by using the DISPLAY LSSTATUS
MQSC command:
c) Stop any listeners associated with the queue managers, using the endmqlsr command:
endmqlsr -m QMgrName
d) Stop each running queue manager that is associated with this installation by using the endmqm
command:
endmqm QMgrName
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
For the migration to proceed, applications must respond to an endmqm command by disconnecting
from the queue manager and releasing any IBM MQ libraries they have loaded. If they do not, you
must find another way to force applications to release IBM MQ resources, such as by stopping the
applications.
You must also stop applications that are using the client libraries that are part of the installation.
Client applications might be connected to a different queue manager, running a different
installation of IBM MQ. The application is not informed about queue managers in the current
installation being shut down.
Any applications that continue to have IBM MQ shared libraries from the installation loaded
prevent you upgrading IBM MQ. An application might disconnect from a queue manager, or be
forcibly disconnected, but keep an IBM MQ shared library loaded.
5. Back up the queue manager.
Take copies of all the queue manager's data and log file directories, including all subdirectories, and
also the qm.ini file. For more information, see Backing up and restoring IBM MQ queue manager
data.
6. Based on the version of IBM MQ that you want to migrate from, uninstall any fix packs:
• If you are migrating to IBM MQ 9.4, you must uninstall any fix packs that are installed on the
earlier IBM MQ version before you upgrade your installation.
• If you are migrating from IBM MQ 9.4 to a later version, you do not need to uninstall
fix packs before upgrading your installation.
7. Upgrade the earlier version of the product to the later version in the same installation directory.
• On AIX, upgrade to the later version in place. For more information, see “Installing IBM MQ server
on AIX” on page 42.
• On Linux, if the version that you are upgrading from is later than IBM MQ 9.2.1, upgrade to the
later version in place. For more information, see “Upgrading an IBM MQ installation on Linux” on
page 321.
• On Linux, if the version that you are upgrading from is earlier than IBM MQ 9.2.1, you must
uninstall the previous version before you install the later version. For more information, see
“Installing and uninstalling IBM MQ on Linux” on page 93.
8. Optional: Set the primary installation to avoid specifying a search path to run IBM MQ commands by
using the setmqinst command:
10. Start the queue managers and migrate them to the later version of the product by using the strmqm
command:
strmqm qmgrName
What to do next
You cannot reinstall an earlier version of the product on a system that has the latest, or any other, version
of IBM MQ installed.
Related concepts
“Migrating a queue manager to a later version on AIX and Linux” on page 406
On AIX and Linux, you can migrate a queue manager from an earlier version to a later version of IBM MQ
in one of three ways: single-stage, side-by-side, or multi-stage.
“Installation name on AIX, Linux, and Windows” on page 14
Each installation of IBM MQ on AIX, Linux, and Windows, has a unique identifier known as an installation
name. The installation name is used to associate things such as queue managers and configuration files
with an installation.
“Queue manager coexistence” on page 355
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations.
“Multi-installation queue manager coexistence on AIX, Linux, and Windows” on page 357
You can install multiple copies of IBM MQ for AIX, Linux, and Windows on the same server. These IBM MQ
copies can be at the same or different version levels. This is called a multi-installation. Multi-installation is
Attention:
The ccsid_part2.tbl file takes precedence over the ccsid.tbl file and:
• Allows you to add or modify CCSID entries
• Specify default data conversion
• Specify data for different command levels
The ccsid_part2.tbl is applicable to the following platforms only:
• Windows
If you have added any of your own CCSID information into your existing ccsid.tbl file,
you should copy this information into the new ccsid_part2.tbl file, if you want to take
advantage of the new formats in your customizations
Copy the required information, rather than move the information, so that your existing version
of IBM MQ continues to work.
Procedure
1. Install the later version in a different installation directory from the earlier version.
a) Decide on an installation naming convention. Give the installation a name of your choosing, or
accept the default installation name.
For the first installation, the default name is Installation1. For the second installation, the name is
Installation2, and so on.
On AIX there is no option to set the installation name, Installation1 is set by default.
b) Install the later version. For more information see, “Installing IBM MQ server on AIX” on page 42 or
“Installing additional IBM MQ installations on Linux using the rpm command” on page 115.
c) Verify the installation.
Run the installation verification procedures and your own tests.
2. Uninstall the earlier version of the product.
When uninstalling the earlier product, you must stop all queue managers and applications that
have loaded an IBM MQ library on the server. For this reason, you might choose to postpone
uninstalling the earlier version of the product until a convenient maintenance window. When
an earlier version of the product is not installed on a server, it is sufficient to stop the queue
managers and applications that have loaded libraries from the installation that you are uninstalling
endmqweb
d) List the state of all the queue managers on the system by using the dspmq command:
dspmq -a
e) List the status of listeners associated with a queue manager by using the DISPLAY LSSTATUS
MQSC command:
f) Stop any listeners associated with the queue managers, using the endmqlsr command:
endmqlsr -m QMgrName
g) Stop each running queue manager that is associated with this installation by using the endmqm
command:
endmqm QMgrName
h) Uninstall the earlier version of the product. For more information, see “Uninstalling or modifying
IBM MQ on Linux” on page 150
3. Set the primary installation to avoid specifying a search path to run IBM MQ commands by using the
setmqinst command:
INSTALLATION_PATH/bin/setmqinst -i -n installationName
5. Start the queue managers and migrate them to the later version of the product by using the strmqm
command:
strmqm qmgrName
What to do next
You cannot reinstall an earlier version of the product on a system that has the latest, or any other, version
of IBM MQ installed.
Related tasks
Migrating on AIX and Linux: single-stage
Single-stage migration is the term used to describe replacing the only installation of IBM MQ on a server,
with a later release. Single stage migration is also known as upgrading in place or in place upgrade.
Single-stage migration preserves existing scripts and procedures for running IBM MQ the most. With other
migration scenarios you might change some scripts and procedures, but you can reduce the effect queue
manager migration has on users.
Migrating on AIX and Linux: multi-stage
“Planning to migrate IBM MQ to a later version on Windows” on page 373
“Installing IBM MQ server on AIX” on page 42
You can install an IBM MQ server on AIX either interactively or silently.
“Uninstalling or modifying IBM MQ on AIX” on page 59
On AIX, you can uninstall the IBM MQ server or client using the System Management Interface Tool
(SMIT) or the installp command. You can also modify an installation by uninstalling a subset of the file
sets.
“Installing the first IBM MQ installation on Linux using the rpm command” on page 111
You can install an IBM MQ server on a 64-bit Linux system using rpm. The instructions in this topic are for
the first installation of IBM MQ on a Linux system.
“Uninstalling or modifying IBM MQ on Linux using rpm” on page 150
On Linux, you can uninstall the IBM MQ server or client by using the rpm command. You can also modify
an installation by removing selected packages (components) currently installed on your system.
Associating a queue manager with an installation
Changing the primary installation
“Installation name on AIX, Linux, and Windows” on page 14
Each installation of IBM MQ on AIX, Linux, and Windows, has a unique identifier known as an installation
name. The installation name is used to associate things such as queue managers and configuration files
with an installation.
“Queue manager coexistence” on page 355
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations.
“Migrating IBM MQ library loading to a later version on AIX and Linux” on page 424
On AIX and Linux, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to a later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
Attention:
The ccsid_part2.tbl file takes precedence over the ccsid.tbl file and:
• Allows you to add or modify CCSID entries
• Specify default data conversion
• Specify data for different command levels
The ccsid_part2.tbl is applicable to the following platforms only:
Procedure
1. Install the later version in a different installation directory from the earlier version and verify the
installation.
a) Decide on an installation naming convention. Give the installation a name of your choosing, or
accept the default installation name.
For the first installation, the default name is Installation1. For the second installation, the name is
Installation2, and so on.
On AIX there is no option to set the installation name, Installation1 is set by default.
b) Install the later version. For more information see, “Installing IBM MQ server on AIX” on page 42 or
“Installing additional IBM MQ installations on Linux using the rpm command” on page 115.
c) Verify the installation.
Run the installation verification procedures and your own tests.
2. Configure the operating system so that applications load the libraries for the later version of the
product.
a) Migrate queue managers one at a time.
The first set of applications to load the libraries for the later version of the product are the
applications that connect to the first queue manager you are going to migrate.
It does not matter if those applications also connect to other queue managers on the server. If the
applications load the later version libraries, IBM MQ automatically loads the libraries for the earlier
version for those applications that connect to that version.
You can either migrate the operating system environment of all applications, or just the applications
that connect to the first queue manager you are going to migrate.
b) Migrate IBM MQ MQI client applications
Some of the applications might be running as IBM MQ MQI client applications on another
workstation. When you migrate a queue manager, clients connected to it continue to run without
loading a client library for the later version.
You can migrate these clients later, when you need to do so.
.Inst_1_INSTALLATION_PATH/bin/setmqenv -s -k
The -s option sets up the environment for the installation that runs the setmqenv command.
The -k option inserts the path to the IBM MQ load libraries at the start of the LD_LIBRARY_PATH
environment variable, and adds the variable to the local environment; see “Loading IBM MQ libraries”
on page 360.
Note: On AIX the leading "." is critical. The dot followed by a space instructs the command shell run
setmqenv in the same command shell and inherit the environment set by setmqenv.
4. Restart the queue manager and the applications that connect to it.
a) Set up the local environment to the installation Inst_1.
.Inst_1_INSTALLATION_PATH/bin/setmqenv -s
The -s option sets up the environment for the installation that runs the setmqenv command.
b) Run the setmqm command to associate QM1 with Inst_1.
c) Run the strmqm command to start QM1 and migrate it to the later version.
strmqm QM1
strmqm QM2
d) Restart application 1
The application loads the later version library and connects to QM1, which is associated with the
later version of the product.
5. Migrate all queue managers and applications to the later version.
Repeat steps “2” on page 416 and “4” on page 417, when required, until all the queue managers
and applications are migrated to the later version of the product.
6. Uninstall the earlier version of the product.
When uninstalling the earlier product, you must stop all queue managers and applications that
have loaded an IBM MQ library on the server. For this reason, you might choose to postpone
uninstalling the earlier version of the product until a convenient maintenance window. When
an earlier version of the product is not installed on a server, it is sufficient to stop the queue
managers and applications that have loaded libraries from the installation that you are uninstalling
or updating. It is not necessary to stop applications and queue managers associated with other
installations.
a) Log in as a user in group mqm.
endmqweb
d) List the state of all the queue managers on the system by using the dspmq command:
dspmq -a
e) List the status of listeners associated with a queue manager by using the DISPLAY LSSTATUS
MQSC command:
f) Stop any listeners associated with the queue managers, using the endmqlsr command:
endmqlsr -m QMgrName
g) Stop each running queue manager that is associated with this installation by using the endmqm
command:
endmqm QMgrName
h) Uninstall the earlier version of the product. For more information, see “Uninstalling or modifying
IBM MQ on Linux” on page 150
7. Set the primary installation to avoid specifying a search path to run IBM MQ commands by using the
setmqinst command:
INSTALLATION_PATH/bin/setmqinst -i -n installationName
If you set an installation of the later version of the product as primary on AIX and Linux, you do
not have to set up LD_LIBRARY_PATH in most cases. You can remove calls to setmqenv to set
LD_LIBRARY_PATH.
What to do next
You cannot reinstall an earlier version of the product on a system that has the latest, or any other, version
of IBM MQ installed.
Now that you have uninstalled the earlier version of the product, and made the later installation primary,
you can review how the application runtime environment is set. It is no longer necessary to run setmqenv
to set up the search path to load libraries for the later version. If you have only one installation of the later
version of the product installed, it is not necessary to run setmqenv to run commands.
Related concepts
“Installation name on AIX, Linux, and Windows” on page 14
Each installation of IBM MQ on AIX, Linux, and Windows, has a unique identifier known as an installation
name. The installation name is used to associate things such as queue managers and configuration files
with an installation.
“Queue manager coexistence” on page 355
Procedure
1. Log in as a user in group mqm.
2. Stop all applications using the IBM MQ installation.
If you use the Managed File Transfer (MFT) component, ensure that any MFT agents have finished all of
the file transfers that they were engaged in. There should be no incomplete transfers associated with
the agents, and their SYSTEM.FTE.STATE queues should contain no messages.
3. End all the activity of queue managers associated with the IBM MQ installation.
a) Run the dspmq command to list the state of all the queue managers on the system.
Run either of the following commands from the installation that you are updating:
dspmq -o installation -o status displays the installation name and status of queue
managers associated with all installations of IBM MQ.
dspmq -a displays the status of active queue managers associated with the installation from
which the command is run.
b) Use the MQSC command DISPLAY LSSTATUS to list the status of listeners associated with a
queue manager, as shown in the following example:
c) Run the endmqm command to stop each running queue manager associated with this installation.
-c
endmqm -w QmgrName
-i
-p
The endmqm command informs an application that the queue manager it is connected to is
stopping; see Stopping a queue manager.
For the maintenance to proceed, applications must respond to an endmqm command by
disconnecting from the queue manager and releasing any IBM MQ libraries they have loaded. If
they do not, you must find another way to force applications to release IBM MQ resources, such as
by stopping the applications.
endmqlsr -m QMgrName
What to do next
You might be reverting to a earlier version on a server with multiple IBM MQ installations. If one of
the installations is primary, after reverting the earlier version that installation, by default, becomes the
primary installation.
You must review how applications connect to an installation. After reverting to the earlier version, some
applications might connect to the wrong installation.
Related concepts
Backing up and restoring a queue manager
Related reference
Avoiding BFGSS0023E errors when removing fix packs
Procedure
1. Review the IBM MQ system requirements for the later version of the product.
See System Requirements for IBM MQ.See “IBM MQ components and features” on page 6 and “Where
to find downloadable installation images” on page 9.
2. Review all the changes in IBM MQ that affect you.
See “Changes that affect migration” on page 337.
3. End all IBM MQ activity on the workstation.
You are now ready to upgrade the client. Follow the instructions for the appropriate platform that your
enterprise uses.
4.
To upgrade the client on AIX:
a) Uninstall your existing IBM MQ client installation.
For more information, see “Uninstalling or modifying IBM MQ on AIX” on page 59.
b) Follow the client installation procedure to install the upgraded version of the IBM MQ client:
• For a client installation on a workstation, see “Installing an IBM MQ client on AIX” on page 47
• For a client installation on an IBM MQ server, see Installing IBM MQ clients and servers on the
same system.
5.
To upgrade the client on Linux:
a) Uninstall your existing IBM MQ client installation.
For more information, see “Uninstalling or modifying IBM MQ on Linux” on page 150.
b) Follow the client installation procedure to install the upgraded version of the IBM MQ client:
• For a client installation on a workstation, see “Installing an IBM MQ client on Linux using rpm” on
page 118.
What to do next
After upgrading the IBM MQ MQI client, you must check the client channel configuration, and verify that
your IBM MQ MQI client applications work correctly with the later version of the product.
Related concepts
“IBM MQ MQI client migration” on page 344
IBM MQ MQI client migration is the process of converting IBM MQ MQI client configurations, and client
and server channels from one version to another. Client migration can take place after upgrading the IBM
MQ MQI client, and is reversible.
Related tasks
“Planning to migrate IBM MQ to a later version on AIX and Linux” on page 405
Procedure
1. End all IBM MQ activity on the workstation.
You are now ready to restore the client to the earlier version. Follow the instructions for the
appropriate platform that your enterprise uses.
2.
To revert the client to the earlier version on AIX:
a) Uninstall the IBM MQ MQI client code for the later version.
For more information, see “Uninstalling or modifying IBM MQ on AIX” on page 59.
b) Follow the client installation procedure to install the IBM MQ MQI client for the earlier version.
For more information, see the client installation procedure for the earlier version that you want to
install.
3.
To revert the client to the earlier version on Linux:
a) Uninstall the IBM MQ MQI client code for the later version.
For more information, see “Uninstalling or modifying IBM MQ on Linux” on page 150.
b) Follow the client installation procedure to install the IBM MQ MQI client for the earlier version:
For more information, see the client installation procedure for the earlier version that you want to
install.
4. If you configured a Client Connection Definition Table (CCDT) for a queue manager using the later
version, revert to using a table created by a queue manager for the earlier version.
If a client uses CCDT to connect to a queue manager, the CCDT can be at a version greater than, less
than, or equal to that of the client. For more information, see MQI client: Client Channel Definition
Table (CCDT).
Figure 13. Linux C server application, 32 bit, threaded compile and link
The example shown in Figure 13 on page 424 is for Linux, but the build step for AIX is similar.
If you have followed this build procedure in the earlier release, then the effect of installing the later
version of the product on the libraries that are loaded depends on which migration scenario that you are
following:
Single-stage scenario
If you are replacing an earlier version of the product with the later version, based on the single stage
scenario described in “Migrating on AIX and Linux: single-stage” on page 407, you do not, in most
cases, need to make any changes to the way IBM MQ libraries are loaded. The possible exception to
this is if you changed the location of the libraries from the earlier version, or created symbolic links to
the libraries.
Side-by-side and Multi-stage scenarios
If you have chosen a multi-installation approach to installing the later version of the product, based
either on the side-by-side scenario described in “Migrating on AIX and Linux: side-by-side” on page
411, or the multi-stage migration scenario described in “Migrating on AIX and Linux: multi-stage” on
page 415, you must investigate whether applications connecting to the later version of the product
are linked to, and load libraries from, the correct installation and then modify the environment for the
operating system to resolve IBM MQ dependencies for an application as appropriate. Typically, you
Scenario Latest version replaces Latest version replaces Latest version alongside
Actio earlier version in the same earlier version in a earlier version
n location different location
Multi-stage
Single-stage Side-by-side
setmqinst makes the later version installation primary. No. The later version
Symbolic links to the IBM MQ link libraries are inserted installation can be primary,
setmqinst
into /usr/lib. because an earlier version is
installed.
No other Library loading works Library loading works The library loading continues
configuration correctly. correctly. to work with the earlier version
actions correctly, nothing works with
Library loading works, Library loading works,
the later version.
even without the later because the installation is
version installation being primary, and the application
made primary, because was built with the link
the libraries are installed option, -rpath=/usr/lib.
in /opt/mqm/lib and
the application was built
with the link option,
-rpath=/opt/mqm/lib
setmqenv, Library loading works Library loading works The library loading continues
without setting correctly. correctly. to work with the earlier version
the -k or -l correctly, nothing works with
setmqenv is unnecessary. setmqenv is unnecessary.
options. the later version.
Library loading works, Library loading works,
because the libraries are because the installation is
installed in /opt/mqm/lib primary, and the application
and the application was was built with the link
built with the link option, option, -rpath=/usr/lib.
-rpath=/opt/mqm/lib.
Scenario Latest version replaces Latest version replaces Latest version alongside
Actio earlier version in the same earlier version in a earlier version
n location different location
Multi-stage
Single-stage Side-by-side
setmqenv, with Library loading works correctly. Library loading works correctly,
the -k or -l both for the earlier version and
options set. the later version.
The correct earlier version
is loaded, because the later
version library loads the earlier
version library for queue
managers that have not been
migrated from the earlier
version.
The operating system finds the IBM MQ library location set by setmqenv. setmqenv adds
the location to LD_LIBRARY_PATH.
Procedure
1. Consider which of the following questions apply to your configuration.
• Did you follow the build procedure documented in the product documentation for the earlier version
of the product? You might be following a different build procedure tailored to your development
environment, or adapted from a development tool.
• How did you specify the load path for the earlier version?
• Is the application is loaded by another environment, such as Eclipse, or an application server? You
must modify the parameters that govern how the parent environment loads applications, not the way
the parent environment is loaded.
• What constraints and requirements do you have on how the load path is specified in the later
version? Security rules might restrict the use of LD_LIBRARY_PATH.
• Is the later version of the product installed alongside the earlier version?
2. Identify the installation of the later version of the product, from which the operating system is going to
load IBM MQ libraries:
• If you have a multiple installations of the later versions to load from a server, IBM MQ checks that
the installation the library was loaded from is the installation that is associated with any queue
manager the application calls. IBM MQ loads the correct library if the wrong library is loaded. It is
necessary to configure only one runtime environment for all IBM MQ applications.
• A typical choice is to set the primary installation. Setting an installation to be primary places
symbolic links to the IBM MQ libraries in /usr/lib. Applications built have an explicit link
to /usr/lib,and /usr/lib is also normally in the default library search path.
• If you upgraded an earlier version installation to the later version, a link path to the earlier version
installation now points to an installation containing the later version. Applications that have a fixed
linkage path to the earlier version installation now load the libraries for the later installation. They
are then switched to the installation that is associated with any queue manager they connect to.
• If you set LD_LIBRARY_PATH, or LIBPATH on AIX, you must check that the
application is able to use LD_LIBRARY_PATH. setuid or setgid, applications, or applications
built in other ways, might ignore LD_LIBRARY_PATH for security reasons.
What to do next
If you add further installations of the later version of the product, you must decide which installation to
make primary, if you have chosen to make any primary. As long as applications load IBM MQ libraries
from one of the later version installations, such as the primary installation, they can connect to queue
managers associated with any other later version installation.
Related concepts
“External library and control command links to primary installation on AIX and Linux” on page 22
On AIX and Linux platforms the primary installation is the one to which links from the /usr file system are
made. However, only a subset of those links created with previous releases are now made.
Related tasks
Connecting applications in a multiple installation environment
Changing the primary installation
Loading IBM MQ libraries
“Migrating IBM MQ library loading to a later version on Windows” on page 396
On Windows, no change in the way IBM MQ libraries are loaded is normally required if you upgrade
from an earlier version of the product to the later version by replacing an earlier version of the product
with the later version, based on the single stage scenario. However, if you choose to take advantage of
multi-installation in the later version of the product, based on the side-by-side or multi-stage migration
scenarios, you might have to configure the runtime environment differently, for the operating system to
load the later version of the IBM MQ library.
Related reference
“Coexistence” on page 354
Queue managers, with different names, can coexist on any server as long as they use the same IBM MQ
installation. On AIX, Linux, and Windows, different queue managers can coexist on the same server and
be associated with different installations. In addition to queue managers coexisting on a server, objects,
and commands must work correctly with different queue managers running at different command levels.
setmqenv
setmqinst
setmqm
ldd ApplicationPath
Procedure
1. Check that the required GCC library is installed correctly.
Run one of the following commands:
• Check the 32 bit library on an x86 Linux system:
ls -l /usr/lib/libstdc++.so.6
ls -l /usr/lib64/libstdc++.so.6
gcc -v
What to do next
When you deploy your Linux C++ application, ensure that the same GCC runtime library is correctly
installed on the run time system.
Procedure
1. Create a migration plan.
See “Planning to migrate IBM MQ to a later version on AIX and Linux” on page 405.
2. Migrate your queue managers to the latest release.
3. “Installation considerations for MQ Telemetry” on page 250.
4. Verify that the MQ Telemetry installation was successful. See “Verifying the installation of MQ
Telemetry” on page 251.
5. If the passphrases for your MQTT TLS channels are stored in plain text, you should encrypt the
passphrases.
Before IBM MQ 9.3.0, passphrases for MQTT TLS channels were stored in plain text. From IBM MQ
9.3.0, support for the encryption of passphrases for MQTT TLS channels is provided.
Existing plain text passphrase are not changed to an encrypted form automatically. You must update
your plain text passphrases to an encrypted form. For more information on how to encrypt your
passphrases, see Encryption of passphrases for MQTT TLS channels.
Results
Message AMQ4616 indicates completion of the task. The existing MQTT channels and previous
subscriptions are still present.
Related concepts
“Installation considerations for MQ Telemetry” on page 250
MQ Telemetry is a component of the main IBM MQ product. You can choose to install MQ Telemetry when
you first install IBM MQ, or when you modify an existing IBM MQ installation.
Related tasks
“Verifying the installation of MQ Telemetry” on page 251
There are three ways to verify the installation of MQ Telemetry. Any can be used, regardless of whether
MQ Telemetry was installed as a custom installation of IBM MQ, or added to an existing installation of IBM
MQ.
“Verifying the installation of MQ Telemetry by using IBM MQ Explorer” on page 251
Use the Define sample configuration wizard and the MQTT client utility in IBM MQ Explorer to verify that
the MQ Telemetry components have installed. Also check that publish/subscribe works correctly.
Procedure
• For information about creating a migration plan, see “Planning to migrate IBM MQ to a later version on
IBM i” on page 430.
• For information about migrating an IBM MQ classes for JMS and IBM MQ classes for Java client, see
“Migrating an IBM MQ classes for JMS and Java client on IBM i” on page 431.
• For information about migrating a queue manager from a previous release, see “Migrating a queue
manager to the latest version on IBM i” on page 432 and “Migrating a queue manager to a later version
on IBM i - alternative method” on page 443.
Procedure
1. Review the IBM MQ system requirements for the later version of the product.
See System Requirements for IBM MQ.
2. Review all the changes in IBM MQ that affect you.
See “Changes that affect migration” on page 337.
3. Review performance changes.
See MQ Performance documents.
4. Review the readme file for the later version of IBM MQ.
See IBM MQ, WebSphere MQ, and MQSeries product readmes.
5. Plan the sequence and timing of queue manager migrations.
• If the queue manager is part of a queue manager cluster, you must migrate the queue managers
that are full repositories first.
Procedure
To uninstall the previous IBM MQ Java client:
1. Delete the QMQMJAVA library and the /QIBM/ProdData/mqm/java directory, by issuing the
command:
2. If the previous step failed to delete the IFS directory /QIBM/ProdData/mqm/java and its
subdirectories, use the EDTF command, for example:
Procedure
1. Sign on to the system with a user profile that has *ALLOBJ special authority, for example QSECOFR.
2. Stop all applications that are using the existing version of IBM MQ.
To identify applications using the queue manager, use the command WRKMQM, option 22, Work with
queue manager jobs, to help find them. Ignore jobs starting with AMQ* or RUN* and focus on your
application job names.
3. End all channels for all queue managers on the system. To do so, use the WRKMQMCHL command and
select option 15.
4. On each queue manager, end the command server. To do so, enter the command:
Procedure
Prepare to quiesce queue managers:
1. Sign on to a new interactive IBM i session, ensuring that you are not accessing any IBM MQ objects.
2. Ensure that you have the following authorities:
• *ALLOBJ authority, or object management authority for the QMQM library.
• Sufficient authority to use the ENDSBS command.
3. Warn all users that you are going to stop IBM MQ.
4. Stop the mqweb server by entering the following command:
ENDMQWEB
If the commands in the previous step do not complete, end the subsystem immediately:
6. Run the following command:
If the command in the previous step also does not complete, use the operating system command
ENDJOB to end all jobs in the subsystem QMQM:
Note: Do not use ENDJOBABN unless you intend to perform an IPL on the machine before starting IBM
MQ. Ending IBM MQ jobs using ENDJOBABN can lead to damaged semaphores, which in turn can prevent
your queue manager from starting.
7. If a QMGR must be shut down manually, end the jobs (ENDJOB) in the following order. Wait a few
minutes for AMQA* or AMQZ* jobs to tidy up.
a. RUNMQLSR - TCP listener (multi-threaded)
b. AMQCLMAA - TCP listener (single-threaded)
c. AMQRMPPA - Channel process pooling job
d. RUNMQCHI - channel initiator
e. AMQCRSTA - receiving MCA jobs
f. RUNMQCHL - sending MCA jobs
g. AMQCRS6B - LU62 receiver channel
h. AMQPCSEA - command server
i. RUNMQTRM - Application trigger monitor
j. RUNMQDLQ - Dead letter queue handler
k. AMQFCXBA - IBM Integration Bus Worker Job
l. AMQFQPUB - Queued Publish/Subscribe Daemon
m. RUNMQBRK - IBM Integration Bus Control Job
n. AMQZMUC0 ('0' is a zero) - Utility Manager
o. AMQZMUF0 ('0' is a zero) - Utility Manager
p. AMQZMUR0 ('0' is a zero) - Utility Manager
q. AMQZMGR0 ('0' is a zero) - Process Controller
r. AMQRRMFA - cluster repository manager
s. AMQZDMAA - deferred message manager
t. AMQZFUMA - object authority manager
EDTF '/QIBM/UserData/mqm/qmgrs'
then:
a. Take option 5 for &SYSTEM and check that the following directories are empty: isem, esem,
msem, ssem, and shmem.
b. Take option 5 for QMGRNAME and check that the following directories are empty:- isem, esem,
msem, ssem, and shmem.
c. Take option 5 for &ipcc in the QMGRNAME directory and check that the following directories are
empty:- isem, esem, msem, ssem, and shmem.
d. Take option 5 for &qmpersist in the QMGRNAME directory and check that the following
directories are empty:- isem, esem, msem, ssem, and shmem.
e. Take option 5 for &app and check that the following directories are empty: isem, esem, msem,
ssem, and shmem.
Procedure
1. Create a save file for every queue manager library on your system. To do so, issue the command:
where the queue_manager_library name consists of the name of the queue manager preceded
by QM.
2. Save your queue manager libraries into the save files. To do so, issue the commands:
RMVLNK OBJLNK('/QIBM/UserData/mqm/errors/*.FDC')
This command cleans up all files with an extension of 'FDC' in the IFS.
5. Remove old JOB files with the command:
RMVLNK OBJLNK('/QIBM/UserData/mqm/errors/*.JOB')
This command cleans up all files with an extension of 'JOB' in the IFS.
6. Remove all unwanted trace data from directory, or remove the whole directory:
QIBM/UserData/mqm/trace
RMVLNK OBJLNK('/qibm/userdata/mqm/trace/*')
8. Create a save file for IBM MQ IFS data. To do so, issue the command:
CRTSAVF FILE(QGPL/QMUSERDATA)
10. If you are going to run IBM MQ on a new machine, transfer the save files to the new machine.
Procedure
1. Sign on to the system with a user profile that has *ALLOBJ special authority, for example QSECOFR.
2. Optionally pre-agree the license terms and conditions by running the command,
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (*BASE) OUTPUT (*PRINT)
What to do next
Install any Progam Temporary Fixes (PTF) that have been issued.
Procedure
1. Optionally pre-agree the license terms and conditions by running the command,
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (1) OUTPUT (*PRINT)
IBM MQ for IBM i is installed in the language that is the primary language on your system.
You can install additional versions of the product in any of the languages shown in Table 43 on page 438.
To do so complete the following steps:
Procedure
1. Sign on to the system with a user profile that has *ALLOBJ special authority
2. Issue the following command specifying the appropriate language ID:
This installs the commands, message file, and panel groups into the relevant QSYS library for the
language. For example, library QSYS2928 is used for French. If this QSYS29nn library does not exist, it
is created by the RSTLICPGM command.
Results
Note:
1. To run the Japanese language version of IBM MQ for IBM i, the CCSID of the job must be 939 (5035)
rather than 930 (5026) because IBM MQ uses lowercase English characters.
2. If you are installing IBM MQ for IBM i onto a machine for which the primary language is not on the CD,
the installation program prompts you to load a CD containing the product in that language. If, however,
you have only one product CD, this means that the IBM MQ product has not been translated into your
language. To get around this issue, proceed as follows:
• Install the product in one of the supplied languages, and then add the corresponding QSYS29nn
library into the system library list (for example using command CHGSYSLIBL). At the same time,
check that there are no IBM MQ *CMD, *MENU, or *MSGF objects in libraries higher up the library list.
If some exist, then either delete these objects (because they refer to an earlier version of IBM MQ)
or reorder the System Library list (because the product has been installed in more than one of the
supplied languages).
Procedure
1. To ensure that the product has loaded correctly, issue the Display Software Resources (DSPSFWRSC)
command and check that the licensed program 5724H72 is listed. If you have installed the base and
the optional samples, you see:
Resource
ID Option Feature Description
5724H72 *BASE 5050 IBM MQ for IBM i
5724H72 *BASE 2924 IBM MQ for IBM i
5724H72 1 5050 IBM MQ for IBM i - Samples
Resource Feature
ID Option Feature Type Library Release
5724H72 *BASE 5050 *CODE QMQM V9R4M0 5724H72 *BASE 2924 *LNG QMQM V9R4M0
5724H72 1 5050 *CODE QMQMSAMP V9R4M0
3. If you have installed additional language versions, you also see entries for these versions. For example,
if you have installed the French version, for which the language ID is 2928, you see:
a)
Resource
ID Option Feature Description
5724H72 *BASE 2928 IBM MQ for IBM i
Resource Feature
ID Option Feature Type Library Release
5724H72 *BASE 2928 *LNG QSYS2928 V9R4M0
4. Use the command DSPMQMVER to check exactly what version you have installed. For example, for
V9R4M0, it reports:
Version: 9.2.0.0
Procedure
1. Make QMQMADM either the primary or a secondary group profile for your user profile. To do so, issue
one of the following commands:
STRSBS SBSD(QMQM/QMQM)
(If it is already running, you get error message CPF1010 which you can safely ignore).
3. Check that your queue managers are accessible by issuing the command:
WRKMQM
Procedure
1. Restore the queue manager libraries for every queue manager, using the command:
where the queue_manager_library name consists of the name of the queue manager preceded by
QM.
2. Restore the IBM MQ IFS data, using the command:
3. To associate the journal receivers, issue the command WRKJRN on the journal AMQAJRN in each queue
manager library, by pressing PF4 and selecting option 9.
4. If you want to set up your work management environment, job descriptions, and pools, see the
Administering IBMi for guidance. Otherwise, use the default setup.
Procedure
Delete the saved data in the save files in QGPL. This data was saved in “Save IBM MQ data on IBM i” on
page 435.
STRSBS SBSD(QMQM/QMQM)
Note: The subsystem must be started after each IPL of the system, so you might choose to start it
as part of your system startup process.
5. Create the system-default objects. The system-default objects are created automatically
when you issue the CRTMQM command to create a queue manager. For example: CRTMQM
MQMNAME(QMGRNAME) ASP(*SYSTEM). You can refresh them using the STRMQM command
(Warning: this command will replace any existing default objects). For example: STRMQM
MQMNAME(QMGRNAME) RDEFSYS(*YES). Refer to the onscreen help for information about using this
command.
Note: on the command STRMQM MQMNAME(QMGRNAME) RDEFSYS(*YES):
• The command does not re-create the objects, it performs a CRTxxxx REPLACE(*YES) for all of the
SYSTEM.* objects.
• This means that it refreshes the parameters on the objects back to their defaults. So if, for example,
on the SYSTEM.DEFAULT.LOCAL.QUEUE object, TRGENBL had previously been changed to *YES,
then, when the command is run, it is changed back to TRGENBL(*NO).
• If any messages exist on a queue, they are left intact, because the queues are not physically deleted.
• The contents of the SYSTEM.AUTH.DATA.QUEUE are untouched when this command is run.
• So, if the contents of this (or any other significant queue) become corrupt, it must be physically
deleted and re-created either from scratch, or from a backup.
Results
You are now ready to start using IBM MQ for IBM i.
Note: When you install IBM MQ for IBM i, two user profiles are created:
• QMQM
• QMQMADM
These two objects are central to the correct running of IBM MQ for IBM i. Do not alter or delete them. If
you do, IBM cannot guarantee correct behavior of your product.
If you uninstall IBM MQ and data, these profiles are deleted. If you uninstall IBM MQ only, these profiles
are retained.
Procedure
1. Stop the IBM MQ queue managers by issuing the following command:
Ensure that the user profile issuing this command has *ALLOBJ authority.
2. Create a save file for every queue manager library on your system. To do so, issue the command:
where the queue_manager_library name consists of the name of the queue manager preceded by
QM.
3. Save your queue manager libraries into the save files. To do so, issue the commands:
4. Create a save file for IBM MQ IFS data. To do so, issue the command:
CRTSAVF FILE(QGPL/QMUSERDATA)
6. If you are going to run IBM MQ on a new machine, transfer the save files to the new machine.
7. Issue the following command before you upgrade your IBM MQ product, only if the upgrade is required
on the same machine.
a) DLTMQM QMgrName
b) ENDSBS SBS(QMQM) OPTION(*IMMED)
Procedure
1. Sign on to the system with a user profile that has *ALLOBJ special authority, for example QSECOFR.
2. Optionally pre-agree the license terms and conditions by running the command,
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (*BASE) OUTPUT (*PRINT)
What to do next
Install any Progam Temporary Fixes (PTF) that have been issued.
To install the IBM MQ samples, see: “Install samples on IBM i” on page 437.
Procedure
1. Issue the following commands:
a) STRSBS SBSD(QMQM/QMQM)
b) CRTMQM MQMNAME(QMgrName) DFTQMGR(*YES)
You receive the message " IBM MQ queue manager created."
c) STRMQM MQMNAME(QMgrName)
You receive the message " IBM MQ queue manager 'QMgrName' started."
2. Issue the following command:
Procedure
1. Review the IBM MQ system requirements for the later version of the product.
See System Requirements for IBM MQ.See “IBM MQ components and features” on page 6 and “Where
to find downloadable installation images” on page 9.
2. Review all the changes in IBM MQ that affect you.
See “Changes that affect migration” on page 337.
3. End all IBM MQ activity on the workstation.
4. Upgrade the client.
To upgrade an IBM MQ MQI client for IBM i installation on a workstation; see “Installing an IBM MQ
client on IBM i” on page 78.
What to do next
Complete the tasks in your migration plan, such as verifying IBM MQ MQI client applications work
correctly with the latest version.
Related concepts
“IBM MQ MQI client migration” on page 344
IBM MQ MQI client migration is the process of converting IBM MQ MQI client configurations, and client
and server channels from one version to another. Client migration can take place after upgrading the IBM
MQ MQI client, and is reversible.
Related tasks
“Installing an IBM MQ client on IBM i” on page 78
The IBM MQ client for IBM i is a part of the IBM MQ product.
“Migrating an IBM MQ MQI client on AIX and Linux” on page 421
Before migrating an IBM MQ MQI client, create a migration plan. Stop all IBM MQ activity on the
client workstation. Upgrade the IBM MQ MQI client installation. Make any essential configuration and
application changes.
“Migrating an IBM MQ MQI client on Windows” on page 395
Before migrating an IBM MQ MQI client, create a migration plan. Stop all IBM MQ activity on the
client workstation. Upgrade the IBM MQ MQI client installation. Make any essential configuration and
application changes.
Installing IBM MQ MQI clients on the same machine as the server
Procedure
1. Check the operating system that you are going to run the queue manager on, and the file system
on which the queue manager data and logs are stored on. Check that they can run a multi-instance
queue manager.
a) Consult Testing statement for IBM MQ multi-instance queue manager file systems. See whether
the combination of operating system and file system is tested and capable of running a multi-
instance queue manager.
A shared file system must provide lease-based locking to be adequate to run multi-instance
queue managers. Lease-based locking is a recent feature of some shared file systems, and
in some case fixes are required. The support statement provides you with the essential
information.
b) Run amqmfsck to verify that the file system is configured correctly.
File systems are sometimes configured with performance at a premium over data integrity. It
is important to check the file system configuration. A negative report from the amqmfsck tool
tells you the settings are not adequate. A positive result is an indication that the file system is
adequate, but the result is not a definitive statement that the file system is adequate. It is a
good indication.
c) Run the integrity checking application provided in the technote, Testing a shared file system for
compatibility with IBM MQ Multi-instance Queue Managers.
The checking application tests that the queue manager is restarting correctly.
2. Configure a user and group to be able to access a share on the networked file system from each
server that is running a queue manager instance.
On IBM i, QMQM, QMQMADM, and any other user profiles that are granted access to the share must have
the same passwords on all the servers
3. Set up a directory for the share on the networked file system with the correct access permissions.
A typical configuration is to set up a single shared directory that contains all data and log
directories for all queue managers that use the shared disk; see Share named qmgrs and log
directories .
Where share is to be the location of the data and logs that you created in step “3” on page 447.
5. Update the queue manager configuration information stored on the current queue manager server.
If you moved the queue manager data and logs by running the hamvmqm command, the command
has already modified the configuration information correctly for you.
If you moved the queue manager data and logs manually, you must complete the following steps.
• On IBM i,
a. Modify the Log: stanza in the queue manager qm.ini file, which is on the share:
LogPath= share/logs/QMgrName
b. Modify the QueueManager: stanza in the IBM MQ mqs.ini file, which is typically in the /
QIBM/UserData/mqm directory on IBM i:
DataPath= share/data/QMgrName
Where, QMgrName is the Directory name in the QueueManager: stanza in the mqs.ini file on
IBM i. share is share where the data and logs are moved to.
6. Add the queue manager configuration information to the new queue manager server.
a) Run the dspmqinf command to display the queue manager information on the server that ran the
queue manager in the previous release.
5724-H72 (C) Copyright IBM Corp. 1994, 2024. ALL RIGHTS RESERVED.
CHANNEL(ENGLAND) CHLTYPE(SDR)
CONNAME(LONDON)
Into:
8. Update your monitoring and management procedures to detect the queue manager restarting.
9. Update client applications to be automatically reconnectable, if appropriate.
10. Update the start procedure for your IBM MQ applications to be started as queue manager services.
11. Start each instance of the queue manager, permitting them to be highly available.
The first instance of the queue manager that is started becomes the active instance.
Issue the command twice, once on each server.
strmqm -x QMgrName
What to do next
To get the highest availability out of multi-instance queue managers, you must design client applications
to be reconnectable and server applications to be restartable; see Application recovery.
Related concepts
Application recovery
Automatic client reconnection
Channel and client reconnection
Multi-instance queue managers
Multi-instance queue managers on IBM i
Shared file system
Related tasks
Backing up queue manager data
Verifying shared file system locking
Related reference
amqmfsck (file system check)
Changing IBM MQ configuration information on Multiplatforms
Procedure
1. Stop the standby queue manager instance.
On the server running the standby instance:
What to do next
You might want to run the queue manager as a single instance on the same server as the queue manager
data.
When the queue manager is stopped move the queue manager data back to the server that is running the
queue manager. Alternatively install IBM MQ, and then move the queue manager configuration definition
onto the server with the queue manager data. Both tasks are variations of steps in “Migrating from a
single instance to a multi-instance queue manager on IBM i” on page 446 to create a multi-instance
queue manager.
Procedure
• For information about creating a migration plan for a queue manager cluster, see “Creating a migration
plan for a queue manager cluster” on page 453.
• For information about creating a backout plan for the migration of a queue manager cluster, see
“Creating a backout plan for queue manager cluster migration” on page 454.
• For information about how to migrate one queue manager in a queue manager cluster, see “Migrating
one cluster queue manager” on page 455.
Procedure
• What queue manager and application migration issues must be dealt with between the old and new
versions?
• What system architecture and change control procedures must you consider?
• Consider migration questions specific to clusters, such as migrating full repositories first, and
migrating overlapping clusters.
• Are any of the queue managers in a queue sharing group, or part of a high-availability solution?
• Is the cluster a publish/subscribe cluster? Which queue manager is a cluster topic host?
• Decide whether to carry out a staged migration, or migrate all queue managers at the same time.
• Do you have a test system to migrate , and a production system?
• Document and test the plan before migrating production queue managers.
Related concepts
“Application migration and interoperation” on page 345
IBM MQ supports running applications compiled and linked against previous versions of IBM MQ, with
later levels of IBM MQ. Use the new version of the libraries to build the applications, once the queue
managers have been upgraded.
Availability of cluster topic host queue managers
“How mixed version cluster repositories are updated” on page 452
Procedure
The backout plan must describe the following points:
• What constitutes a successful migration.
• The conditions that trigger the backout procedure.
• Alternative backout actions, such as:
a) Suspending a queue manager from the cluster.
b) Backward migration
c) Keeping a queue manager offline until an external issue is resolved.
Related concepts
“Queue manager migration” on page 343
After upgrading an installation, queue manager migration might be required. Migration takes place when
you start a queue manager. You can remove an upgrade before you have started a queue manager.
Procedure
1. Suspend the queue manager that you want to migrate from the cluster:
a) Issue the MQSC command:
DISPLAY CLUSQMGR(*)
DISPLAY QC(*)
DISPLAY TCLUSTER(*)
3. Save a record from the full repository of its view of the cluster objects owned by this queue manager.
The record is used after migration to check that objects have been migrated successfully.
a) Issue the command on the full repositories to display this queue manager.
b) Issue the command on the full repositories to display the cluster queues for this queue manager
c) Issue the command on the full repositories to display the cluster topics for this queue manager.
DISPLAY CLUSQMGR(*)
b) Issue the command to view cluster queues and check the output against the data saved before
migration.
DISPLAY QC(*)
c) Issue the command to view cluster topics and check the output against the data saved before
migration.
DISPLAY TCLUSTER(*)
6. Check that the queue manager is communicating with the full repositories correctly.
7. Check that cluster channels to full repositories can start.
8. Check that the full repositories still have information about the migrated cluster queue manager, its
cluster queues, and its cluster topics.
a) Issue the command on the full repositories and check the output against the data saved before
migration.
DISPLAY CLUSQMGR(migrated_queue_manager_name)
b) Issue the command on the full repositories and check the output against the data saved before
migration.
c) Issue the command on the full repositories and check the output against the data saved before
migration.
9. Test that applications on other queue managers can put messages to queues owned by the migrated
cluster queue manager.
10. Test that applications on the migrated queue manager can put messages to the queues owned by
other cluster queue managers.
11. Resume the queue manager by issuing the following command:
12. Closely monitor the queue manager and applications in the cluster for a while.
What to do next
When you have completed the migration of one queue manager in a cluster, on your test system, complete
the migration of the other queue managers in each cluster on the test system.
When you have competed the migration of all of the queue managers on your test system, migrate each of
the queue managers on your production system.
For Linux platforms, you can implement high availability by using replicated data queue
managers (RDQMs). For migrating RDQMs, see “Migrating replicated data queue managers” on page 460.
Another solution is to configure a high availability group on a pair of IBM MQ Appliances. See
the Appliance documentation for details of migrating HA queue managers.
The overall principles involved in queue manager migration in a high availability configuration based
on multi-instance queue managers or on a high-availability cluster are the same. In either case, the
principles are as follows:
1. You must not restart a queue manager at a lower command level than the one it was previously
running.
2. You cannot upgrade the code if an active queue manager is running.
3. You cannot back up an active queue manager.
Procedure
• To migrate a multi-instance queue manager, see “Migrating a multi-instance queue manager” on page
458.
• To migrate a high availability cluster queue manager, see “Migrating a high-availability cluster queue
manager” on page 459.
Related tasks
“Migrating an MSCS configuration on Windows” on page 401
Procedure
Base your migration procedure on the following steps:
1. Before you start the migration process, create a different queue manager on a server, on which you
have installed the upgrade.
2. Test the upgrade by performing whatever verification checks that your organization requires.
3. If you have a pool of servers that you pick from, when starting a queue manager instance, upgrade
IBM MQ on the servers that are in the pool and are neither active or acting as a standby.
4. Stop the standby queue manager instance.
Ensure that you have no system management procedure running that restarts the instance
automatically.
5. If you do not have a pool of servers, upgrade IBM MQ on the server that was running the standby
instance
6. Decide whether downtime or recoverability is more important in the migration.
7. Optional: Follow this procedure if recoverability is more important, and you must take a backup:
a) Stop the active queue manager instance, without switching to any standby.
b) Back up the queue manager
c) Start a queue manager instance, permitting standbys, on one of the upgraded servers.
d) If you have a pool of upgraded servers, start another one, permitting standbys.
8. Optional: Follow this procedure if availability is more important. You do not need to take a backup.
a) Start a queue manager instance as a standby on one of the upgraded servers.
b) Stop the active queue manager instance, switching to the standby.
c) If you have a pool of upgraded servers, start another one, permitting standbys.
9. Upgrade the IBM MQ code on the server that was the active queue manager instance.
10. Start the server as the standby instance if you have not already started a standby.
“Migrating a queue manager in a high-availability configuration” on page 457
High-availability configurations of queue managers can increase the availability of IBM MQ applications. If
a queue manager, or server fails, it is restarted automatically on another server. You can arrange for IBM
MQ MQI client applications to automatically reconnect to the queue manager. Server applications can be
configured to start when the queue manager starts.
“Migrating a high-availability cluster queue manager” on page 459
Procedure
Base your migration procedure on the following steps. The details depend on the specific commands in
the cluster concerned.
1. Before you start the migration process, create a different queue manager on a server on which you
have installed the upgrade.
2. Test the upgrade by performing whatever verification checks that your enterprise requires.
3. Form two cluster pairs if you have four servers available.
With two pairs, the queue manager can continue to run in a cluster-pair at the old command level.
When you are ready, you can transfer the queue manager to the pair of servers at the new command
level.
4. Remove a passive server from the cluster.
Ensure that the cluster cannot automatically restart the server. The server is made inactive.
5. Create a second location for the upgraded code, if a high-availability cluster is using a common
location for IBM MQ code.
6. Install, or upgrade, IBM MQ code using the server that is not now running the queue manager.
7. Verify the upgrade by creating a different queue manager on the server, and performing whatever
verification checks that your organization requires.
8. If more than half the servers remain in the cluster, remove a server, upgrade IBM MQ, and verify the
upgrade.
Each server is made inactive as part of the process. Continue until half the servers are upgraded.
9. If your active server is part of a remaining cluster, deactivate the passive servers so that the cluster
cannot reactivate them automatically.
10. Decide whether downtime or recoverability is more important in the migration.
11. Optional: Follow this procedure if recoverability is more important:
a) Stop the queue manager and remove the server from the cluster.
b) Back up the queue manager.
12. Optional: Follow this procedure if downtime is more important:
a) Add the migrated servers back into the cluster, as passive servers.
b) Switch the remaining server in the high-availability server cluster over to one of the passive
servers.
The switch causes the running queue manager to stop, and restarts it on one of the passive
servers.
13. Upgrade any remaining high-availability servers, and add them back into the cluster.
Procedure
1. Configure three RHEL 9 nodes.
2. Install IBM MQ Advanced on each of them, see “Installing IBM MQ Advanced for Multiplatforms” on
page 236.
3. Configure a new Pacemaker cluster to create a new HA group, see Defining the Pacemaker cluster (HA
group).
4. Recreate each queue manager that you want to from the existing RHEL 8 HA Group, see Creating an HA
RDQM.
5. For each RDQM queue manager to be moved, complete the following actions:
a) End the RDQM queue manager on the RHEL 9 node.
b) End the RDQM queue manager on the RHEL 8 node.
c) Take a backup of the RDQM queue manager, its config and its data as required, on the RHEL 8 node,
see Backing up and restoring IBM MQ queue manager data.
d) Restore the backup on the RHEL 9 node.
6. Start the RDQM queue manager on the RHEL 9 node.
7. If required, configure the floating IP address on the RHEL 9 HA group, see Creating and deleting a
floating IP address.
8. After you confirm that the RDQM queue manager is working correctly on the RHEL 9 HA group, delete
the queue manager from the RHEL 8 HA group, see Deleting an HA RDQM.
Migrating HA RDQMs
Follow this sequence of steps to upgrade all the RDQM nodes in an HA group and so migrate the
replicated data queue managers (RDQMs).
Procedure
• Uninstall HA RDQM support and upgrade RDQM and IBM MQ.
a) Suspend the HA group on the node, by entering the following command:
rdqmadm -s
d) Uninstall Pacemaker:
e) Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded with
the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
rdqmadm -r
Migrating DR RDQMs
Follow this sequence of steps to upgrade the primary and recovery nodes in a disaster recover replicated
data queue manager (DR RDQM) configuration.
Procedure
• Uninstall DR RDQM and IBM MQ and upgrade RDQM and IBM MQ.
a) Upgrade the DR secondary node:
a. Log in as root or switch to superuser using the su command.
b. Uninstall IBM MQ (this step also uninstalls RDQM):
d. Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded
with the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
c. Uninstall Pacemaker:
d. Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded
with the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
Procedure
• Uninstall DR/HA RDQM and IBM MQ and upgrade RDQM and IBM MQ.
a) Upgrade the HA group on your recovery site (presuming that the DR/HA RDQMs are running on the
main site). Complete the following steps on each node in the group in turn.
a. Log in as root or switch to superuser using the su command.
b. Suspend the HA group on the node, by entering the following command:
rdqmadm -s
d. Uninstall Pacemaker:
e. Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded
with the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
rdqmadm -r
rdqmadm -s
d. Uninstall Pacemaker:
e. Uninstall DRBD:
If either the drbd or drbd_transport_tcp kernel modules are still loaded, they can be unloaded
with the following commands:
modprobe -r drbd_transport_tcp
modprobe -r drbd
rdqmadm -r
• AIX
• IBM i
• Linux
• Windows
For more information about IPv6, see IPv6.
The IPv6 protocol can only be used by IBM WebSphere MQ 6.0 or later. In order to make use of the IPv6
protocol, IBM MQ must be installed on a system that is IPv6 capable.
The preferred IP version that two systems use for communicating (if both IPv4 and IPv6 are available)
is determined by a new queue manager attribute IPADDRV. This parameter only has an effect if the host
name resolves ambiguously to both an IPv4 address and an IPv6 address.
To migrate a queue manager to use the IPv6 protocol:
1. Configure dual IPv4 and IPv6 protocols on the system where the queue manager to be migrated
resides.
2. Install IBM MQ.
3. Add an entry to the DNS to resolve the host name of the system that is to be migrated, to both an IPv4
address and an IPv6 address.
CAUTION: Not all IPv6 software can interpret an IPv4 mapped IPv6 address. If the
combination of CONNAME and LOCLADDR results in an IPv4 mapped IPv6 address, ensure
that the system hosting the target queue manager is capable of handling this.
Using mapped addresses can require protocol translators in the IP network.
Note: There are both IPv4 and IPv6 definitions connecting the full repositories so that definitions
for both new and existing cluster definitions are replicated between them. Also be aware that the
queue managers QM1 and QM4 cannot communicate directly because they do not share a common
IPv4DNS DNS returns an IPv4 address only for host name of system holding the responding queue
manager
IPv6DNS DNS returns an IPv6 address only for host name of system holding the responding queue
manager
DualDNS DNS returns an IPv4 and IPv6 address for host name of system holding the responding
queue manager
v71 + IPv4 or Both Not v71 + IPv4 or IPv4DNS or IPv4 connection can be
v71 + Dual LOCLADDR4 applicable v71 + Dual DualDNS established
&
LOCLADDR6
v71 + IPv4 or Blank or Not v71 + IPv4 or IPv4DNS or IPv4 connection can be
v71 + Dual LOCLADDR4 applicable v71 + Dual DualDNS established
v71 + IPv4 or Blank or Not v71 + Dual or IPv4DNS or IPv4 connection can be
v71 + Dual LOCLADDR4 applicable v8 + Dual DualDNS established
v8 + IPv4
v8 + IPv4 Blank or Not specified v71 + IPv4 or IPv4DNS or IPv4 connection can be
LOCLADDR4 v71 + Dual or DualDNS established
v8 + IPv4
v8 + IPv6 Blank or Not specified v71 + Dual DualDNS Attempts to start IPv6
LOCLADDR6 channel and fails as there
will be no IPv6 listener
available
v8 + IPv6 Blank or Not specified v71 + IPv4 IPv4DNS Attempts to start IPv6
LOCLADDR6 channel and fails as there
will be no IPv6 listener
available
Procedure
1. Create the SYSTEM.FTE.HA.<agent name> queue in the agent queue manager using the following
sample definition:
DEFINE QLOCAL(SYSTEM.FTE.HA.SRC) +
DEFPRTY(0) +
DEFSOPT(SHARED) +
GET(ENABLED) +
MAXDEPTH(0) +
MAXMSGL(0) +
MSGDLVSQ(PRIORITY) +
PUT(ENABLED) +
RETINTVL(999999999) +
SHARE +
NOTRIGGER +
USAGE(NORMAL) +
REPLACE
2. Provide the required authorities on the queue for the agent to open the queue for GET.
3. Create a replica of the agent configuration on another machine
4. Add the highlyAvailable property, and set the property to true, in the agent.properties file for both
agent configurations.
Related concepts
Maintenance in highly available agents
Attention: The following procedure explains only how to backup and restore MFT configurations.
If you are migrating MFT to a new machine with the same operating system, queue manager data
and log files can be backed up and restored by copying all the data files from the old system to the
appropriate directories on the new system.
However, if the new machine has a different operating system, it is not possible to migrate the data
files, because they are created platform specific.
Procedure
1. Backup procedure
b) Back up the configuration files for the agent that are stored under the IBM MQ data directory /
MQ_DATA_PATH/mqft
The mqft directory normally has three sub-directories, which are config, installation, and
logs. These contain agent installation data, configuration, and database logger files respectively.
If the agent is Protocol Bridge Agent, the ProtocolBridgeCredentials.xml file in the agent
configuration directory also needs to backed up. This file defines the user names and credential
information that the protocol bridge agent uses to authorize itself with the protocol server.
c) Export the configuration of the resource monitor to an XML file using the MFT ftelistMonitors
command with the -ox option.
For example:
d) Export transfer templates to XML files using the MFT fteListTemplates command with the -x
and -o options.
For example, the following command creates TransferTemplate1.xml in the current directory:
fteListTemplates -x -o . TransferTemplate1
c) Recreate the sender and receiver channels that connect to QMB on System two.
d) On the QMB queue manager side, update the connections details, such as host name and port
number of the sender channel that connects to QMA.
e) Recreate Agent1 by copying all of the backed up agent configuration files to the new system, and
start the agent.
f) Import the XML file for Monitor1 using the MFT fteCreateMonitor command with the -ix and -f
options.
For example:
g) Publish a message containing the contents of TransferTemplate1.xml in the message body to the
SYSTEM.FTE topic on the coordination queue manager.
Use a stand-alone application, and specify the topic string:
SYSTEM.FTE/Templates/<template_id>
where <template_id> is the transfer template ID that can be found inside the
TransferTemplate1.xml file.
For example, if the xml contains:
SYSTEM.FTE/Templates/a7838085-0f2a-4980-b958-2dbbdfb22702
h) Recreate the scheduled transfers manually using the MFT fteCreateTransfers command.
Procedure
1. Make backups of your data.
See Making backups for details.
2. Install the new version of MQIPT.
You can install the new version of MQIPT before uninstalling any versions of MQIPT that are currently
installed. See “Installing MQIPT” on page 272 for details.
3. Restore the backed-up data files to the MQIPT home directory to be used by the new installation.
If the MQIPT installation directory is used as the home directory, then overwrite any newly installed
copies of data files with the backed-up files.
4. Ensure that any properties that contain file names in the new mqipt.conf configuration file, refer to
files to be used by the new installation of MQIPT.
5. Review the list of changes and new features in the new version or fix pack of MQIPT.
If you need to make any changes to the MQIPT configuration for the new version, make the necessary
changes to the new copies of the data files.
6. Stop the current version of MQIPT by issuing the following command:
mqiptAdmin -stop
MQIPT_INSTALLATION_PATH/bin/mqipt MQIPT_HOME_DIR
• On Windows systems:
MQIPT_INSTALLATION_PATH\bin\mqipt MQIPT_HOME_DIR
where
• MQIPT_INSTALLATION_PATH is the directory where that latest version of MQIPT is installed.
• MQIPT_HOME_DIR is the MQIPT home directory containing the data files to be used by the latest
installation of MQIPT.
8. Test that MQIPT works correctly at the latest version.
After you confirm that the latest version of MQIPT is configured correctly, you can uninstall the
previous version. See “Uninstalling MQIPT” on page 274 for details.
For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property
Department in your country or send inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other country where such
provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION
PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of
express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically
made to the information herein; these changes will be incorporated in new editions of the publication.
IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this
publication at any time without notice.
Any references in this information to non-IBM websites are provided for convenience only and do not in
any manner serve as an endorsement of those websites. The materials at those websites are not part of
the materials for this IBM product and use of those websites is at your own risk.
IBM may use or distribute any of the information you supply in any way it believes appropriate without
incurring any obligation to you.
Licensees of this program who wish to have information about it for the purpose of enabling: (i) the
exchange of information between independently created programs and other programs (including this
one) and (ii) the mutual use of the information which has been exchanged, should contact:
IBM Corporation
Software Interoperability Coordinator, Department 49XA
3605 Highway 52 N
Rochester, MN 55901
U.S.A.
Trademarks
IBM, the IBM logo, ibm.com®, are trademarks of IBM Corporation, registered in many jurisdictions
worldwide. A current list of IBM trademarks is available on the Web at "Copyright and trademark
information"www.ibm.com/legal/copytrade.shtml. Other product and service names might be trademarks
of IBM or other companies.
Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other countries, or
both.
482 Notices
UNIX is a registered trademark of The Open Group in the United States and other countries.
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
This product includes software developed by the Eclipse Project (https://www.eclipse.org/).
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or
its affiliates.
Notices 483
484 Installing and migrating IBM MQ
IBM®
Part Number:
(1P) P/N: