Mq92 Install
Mq92 Install
Installing IBM MQ
IBM
Note
Before using this information and the product it supports, read the information in “Notices” on page
299.
This edition applies to version 9 release 2 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, 2023.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
IBM Corp.
Contents
iii
Displaying messages in your national language on Windows systems............................................ 223
Redistributable clients on Windows.................................................................................................. 224
Verifying an IBM MQ installation on Windows.................................................................................. 226
Uninstalling IBM MQ on Windows..................................................................................................... 239
Installing IBM MQ Advanced for Multiplatforms.................................................................................... 245
Installing and uninstalling AMS on Multiplatforms........................................................................... 246
Installing Managed File Transfer ...................................................................................................... 253
Installing MQ Telemetry.....................................................................................................................259
Installing RDQM (replicated data queue managers).........................................................................265
Installing IBM MQ for z/OS......................................................................................................................278
z/OS installation overview................................................................................................................. 279
Checking requirements on z/OS........................................................................................................ 281
Planning to install IBM MQ for z/OS.................................................................................................. 281
Delivery media....................................................................................................................................284
Customizing IBM MQ and its adapters.............................................................................................. 284
Verifying your installation of IBM MQ for z/OS.................................................................................. 285
Macros intended for customer use.................................................................................................... 285
Product usage recording with IBM MQ for z/OS products................................................................ 286
Installing and enabling IBM MQ for z/OS Value Unit Edition............................................................ 288
Installing IBM MQ Advanced for z/OS............................................................................................... 289
Installing IBM MQ Advanced for z/OS Value Unit Edition................................................................. 291
Installing and uninstalling IBM MQ Explorer as a stand-alone application on Linux and Windows..... 292
Installing the stand-alone IBM MQ Explorer on Linux...................................................................... 292
Uninstalling the stand-alone IBM MQ Explorer on Linux.................................................................. 294
Installing the stand-alone IBM MQ Explorer on Windows................................................................294
Uninstalling the stand-alone IBM MQ Explorer on Windows............................................................295
Installing and uninstalling IBM MQ Internet Pass-Thru......................................................................... 296
Installing MQIPT................................................................................................................................ 296
Uninstalling MQIPT............................................................................................................................ 298
Notices..............................................................................................................299
Programming interface information........................................................................................................ 300
Trademarks.............................................................................................................................................. 300
iv
Installing and uninstalling IBM MQ
Before you start installing IBM MQ, consider how you want to use it. Use these topics to help you to
prepare for installation, install the product, and verify the installation. There is also information to help
you to uninstall the product.
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 259
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), or IBM MQ can be installed from a DVD.
From IBM MQ 9.1, separate client eImages are no longer available for downloading from Passport
Advantage. A separate client DVD is also no longer available. Instead, you can either obtain the client
eImage from inside the main IBM MQ server eImage, or server DVD, which include the server and client.
Alternatively, 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:
6 Installing IBM MQ
Table 1. Where to find IBM MQ installation information for each platform
Platform IBM MQ server IBM MQ client
“Installing IBM MQ server on “Installing an IBM MQ client on
AIX
AIX” on page 42 AIX” on page 47
“Installing IBM MQ server on IBM “Installing an IBM MQ client on
IBM i
i” on page 66 IBM i” on page 79
“Installing the first IBM MQ “Installing an IBM MQ client on
Linux
installation on Linux using the Linux using rpm” on page 120
rpm command” on page 113
“Installing an IBM MQ server “Installing an IBM MQ client
Linux
on Linux Ubuntu using Debian on Linux Ubuntu using Debian
packages” on page 131 packages ” on page 137
“Installing IBM MQ server on “Installing an IBM MQ client on
Windows
Windows” on page 182 Windows” on page 209
For more information about installing IBM MQ Advanced for Multiplatforms, see “Installing
IBM MQ Advanced for Multiplatforms” on page 245.
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 DVD or eImage downloaded from Passport Advantage (see “Where to find
downloadable installation images” on page 9).
From IBM MQ 9.1, separate client eImages are no longer available for downloading from Passport
Advantage. A separate client DVD is also no longer available. Instead, you can either obtain the client
eImage from inside the main IBM MQ server eImage, or server DVD, which include the server and client.
Alternatively, 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.
For information on installation options for IBM MQ Advanced for z/OS Value Unit Edition,
see “Installing IBM MQ Advanced for z/OS Value Unit Edition” on page 291.
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.
“Where to find downloadable installation images” on page 9
You download installation images for IBM MQ from Passport Advantage, Fix Central, or (for z/OSsystems)
the ShopZ website. A number of IBM MQ components including fix packs, CSUs, clients, and the resource
adapter are also available for downloading from Fix Central and elsewhere.
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 95
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 63
Check that the server environment meets the prerequisites for installing IBM MQ for IBM i.
“Hardware and software requirements on Windows systems” on page 173
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 from the server DVD.
Related tasks
“Checking requirements on Windows” on page 173
8 Installing IBM MQ
Before you install IBM MQ on Windows, you must check for the latest information and system
requirements.
You download IBM MQ for Multiplatforms Fix Packs and Cumulative security updates (CSUs) from Fix
Central. For more information and download links, go to Downloading IBM MQ 9.2, then select the tab for
the release, fix pack or CSU that you require.
10 Installing IBM MQ
Resource adapter, clients and other resources
A number of IBM MQ resources are also made available on Fix Central and elsewhere.
Clients:
• IBM MQ C and .NET clients
• IBM MQ Java / JMS client
• IBM MQ Java client components (on Maven)
• IBM MQ redistributable clients
• IBM MQ Resource Adapter - For use with any Java EE 7 compliant application server
• IBM MQ redistributable Managed File Transfer Agents
• IBM MQ classes for .NET Standard (on NuGet)
• IBM MQ classes for XMS .NET Standard (on NuGet)
Components:
• IBM MQ Internet Pass-Thru
• IBM MQ Explorer - This stand-alone install image is not currently supported on Windows Server 2019.
For Windows Server 2019, install from the main IBM MQ install image from Passport Advantage.
• IBM MQ Appliance firmware update - Entitlement needed.
• IBM MQ on AWS Quick Start
Containers:
• Prebuilt: IBM MQ Advanced container (subject to entitlement)
• Build your own: https://github.com/ibm-messaging/mq-container. This works in conjunction with the
non-install (unzippable) IBM MQ images to build an IBM MQ container image that can run under the Red
Hat® OpenShift® anyuid security context constraint (SCC)
– For production environments the three non-install images for Linux (subject to entitlement) are
available here:
- IBM MQ Advanced non-install images for Linux
Note that any version of the certified container is supported for one year only when used as part of an
IBM MQ CD release, or two years (with an optional extension for another year) when used as part of
an IBM Cloud Pak® for Integration LTS release.
– For development environments the non-install packages can be found at the following locations:
- IBM MQ Advanced for Developers non-install image for Linux x86-64
- IBM MQ Advanced for Developers non-install image for Linux PPCLE
- IBM MQ Advanced for Developers non-install image for Linux systemZ
– A sample helm chart is also available here: https://github.com/ibm-messaging/mq-helm
Development:
• IBM MQ Advanced for Developers - Windows / Linux / Ubuntu / Raspberry Pi (as-is, see the readme)
• IBM MQ Mac Toolkit for Development - For those who want to develop MQ applications on macOS. The
client is also used in the Get started with IBM MQ tutorials.
• IBM MQ Advanced for Developers container (on Docker Hub). Or build your own.
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
*.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.2.4.0-IBM-MQC-Redist-LinuxX64.tar.gz:
12 Installing IBM MQ
*.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.2.4-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>
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 113
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 120
Installing an IBM MQ client on a 64 bit Linux system.
“Installing IBM MQ on Linux Red Hat using yum” on page 123
From IBM MQ 9.2.0 you can install IBM MQ on Linux Red Hat by using the yum installer.
Note: This information is about planning an installation on IBM MQ for Multiplatforms. For
information about planning an installation on z/OS, see “Planning to install IBM MQ for z/OS” on page
281.
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.
14 Installing IBM MQ
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
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.
“IBM MQ components and features” on page 6
You can select the components or features that you require when you install IBM MQ.
Related reference
dspmqinst
setmqinst
crtmqinst
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 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
a custom location is specified, the product location is the path specified during installation, plus /usr/
mqm.
For example, the path specified is /usr/custom_location. The MQ_INSTALLATION_PATH is /usr/
custom_location/usr/mqm.
Access permissions for the USIL directory should be set to rwx for user and r-x for group and others
(755).
• On the following platforms, the product location is the same path as specified during installation:
– Linux
– Windows
For example, on Linux, the path specified is /opt/custom_location. The MQ_INSTALLATION_PATH
is /opt/custom_location.
• 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.
16 Installing IBM MQ
• In a path that is a subdirectory of the default location, for example:
– /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.
You must not install to any directory located under /opt/IBM/db2 where /opt/IBM/db2 is an
example.
• In a directory or subdirectory that the mqm user or mqm group does not have authority to write to.
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 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.
“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.
“IBM MQ components and features” on page 6
You can select the components or features that you require when you install IBM MQ.
The IBM message service client for .NET support pack and multiple installations
For multiple version support, on IBM WebSphere MQ 7.1 or later, 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
Migrating on AIX and Linux: multi-stage
“Choosing MSI Instance IDs for multiple server installations” on page 186
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 212
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.
18 Installing IBM MQ
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 23.
On Windows systems, the global environmental variables point to the directories into which
the primary installation was 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 details about some of the features that are limited to use with the
primary installation, see “Features that can be used only with the primary installation on Windows” on
page 25.
If all the installations on the system are at IBM WebSphere MQ 7.1, or later, you can choose whether to
have a primary installation. Consider the options in Table 3 on page 19.
Multiple IBM IBM If you want to have multiple installations of IBM MQ, you can
installations: WebSp WebSphere choose whether to make one of the installations primary. For
here MQ 7.1, or information about this option, see “Multiple installations of
IBM WebSphere MQ later. IBM MQ” on page 22
MQ 7.1, or later. 7.1, or
later.
None IBM
WebSphere
MQ 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 21
On AIX and Linux, the first installation onto a system must be manually
configured to be the primary installation.
20 Installing IBM MQ
Single installation of IBM MQ configured as non-primary
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.
setmqinst -x -p MQ_INSTALLATION_PATH
Windows systems
22 Installing IBM MQ
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
• libmqmcb
• libmqmcb_r
• libmqic
• libmqic_r
• libmqcxa
• libmqcxa_r
• libmqicb
• libmqicb_r
• libimqb23ia
• libimqb23ia_r
• libimqc23ia
• libimqc23ia_r
• libimqs23ia
• libimqs23ia_r
• libmqmzf
• libmqmzf_r
The following 64-bit only libraries are also linked to:
• libmqmxa64
• libmqmxa64_r
• libmqcxa64
• libmqcxa64_r
24 Installing IBM MQ
• setmqprd
• strmqcsv
• strmqikm
• 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
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.
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.
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.
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.
Related tasks
Changing the primary installation
Applying maintenance to IBM MQ
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 142
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 226
26 Installing IBM MQ
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.2.0 IBM MQ C redistributable client for Linux x86-64
9.2.0.0-IBM-MQC-Redist-LinuxX64.tar.gz
Long Term Support: 9.2.0 IBM MQ C and .NET redistributable client for Windows x64
9.2.0.0-IBM-MQC-Redist-Win64.zip
Long Term Support: 9.2.0 IBM MQ JMS and Java redistributable client
9.2.0.0-IBM-MQC-Redist-Java.zip
For IBM MQ 9.2.0, the downloadable packages for the Redistributable Managed File Transfer Agent are
available under the following file names:
Long Term Support: 9.2.0 Redistributable IBM MQ Managed File Transfer Agent for
Linux X86-64
9.2.0.0-IBM-MQFA-Redist-LinuxX64
Long Term Support: 9.2.0 Redistributable IBM MQ Managed File Transfer Agent for
Linux on z Systems
9.2.0.0-IBM-MQFA-Redist-LinuxS390X
Long Term Support: 9.2.0 Redistributable IBM MQ Managed File Transfer Agent for
Linux PPC (Little Endian)
9.2.0.0-IBM-MQFA-Redist-LinuxPPC64LE
Long Term Support: 9.2.0 Redistributable IBM MQ Managed File Transfer Agent for
Windows x64
9.2.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.
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 139
The Linux x86-64 image is shipped in a LinuxX64.tar.gz file.
“Redistributable clients on Windows” on page 224
The Windows 64-bit image is shipped in a Win64.zip file.
“.NET application runtime - Windows only” on page 225
Considerations when using the .NET application.
Related tasks
Configuring the Redistributable Managed File Transfer Agent
28 Installing IBM MQ
Limitations and other considerations for redistributable
clients
There are a number of points to consider when installing the IBM MQ C redistributable client for Linux
x86-64 and the IBM MQ C and .NET redistributable client for Windows x64 packages.
Limitations
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.
If you want to run Java/JMS applications, you must provide your own runtime environment. Your
JRE, that applications run under, must meet the current SOE requirements and are bound by any
restrictions or limitations that apply.
Developing applications
Before IBM MQ 9.2.0, all other files that support the development and distribution of applications
(including copybooks, header files, and sample source code) are not available in any of the
redistributable client packages, including the IBM MQ C redistributable client packages, and are not
licensed for redistribution. If you need to develop IBM MQ applications, you still need to perform a
traditional installation so that you obtain the SDK files that are required to build client applications.
From IBM MQ 9.2.0, this limitation no longer applies to the IBM MQ C redistributable
client packages. From IBM MQ 9.2.0, the IBM MQ C redistributable client packages include the
elements required to build the application, that is the header files and copybooks. However, the
sample source code is still not included in these packages.
From IBM MQ 9.2.0 Fix Pack 2 for Long Term Support and and IBM
MQ 9.2.2 for Continuous Delivery, the self-extracting JAR file version-IBM-MQ-Install-Java-
All.jar includes all of the files related to the JMSAdmin tool. For more information, see Obtaining
the IBM MQ classes for JMS separately.
From IBM MQ 9.2.0, the genmqpkg script that is shipped with the IBM MQ C redistributable
client packages includes an additional question asking whether the runtime requires the SDK to compile
applications. Also from IBM MQ 9.2.0, for the IBM MQ C redistributable client packages, responses can be
given programmatically. All the interactive prompts can be bypassed by setting environment variables and
executing the command with a -b flag to indicate a batch mode.
Important: IBM support is only able to provide assistance with the full, unmodified set of files contained
within the redistributable client packages.
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.
Home directory
A ${HOME}/.mqm directory is created when using an unregistered or non-installed version of IBM MQ,
such as the redistributable client.
The directory is created so that IBM MQ has a reliable way of accessing its socket files using a path that
fits within the sun_path length. If IBM MQ cannot write to the HOME directory you receive an error
message.
Classpath changes
The classpath used by dspmqver, setmqenv, and crtmqenv commands adds the
com.ibm.mq.allclient.jar to the environment, immediately following the com.ibm.mq.jar and
com.ibm.mqjms.jar.
Name: IBM MQ
Version: 8.0.0.4
30 Installing IBM MQ
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 27
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, which 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 225
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 33.
• 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.
32 Installing IBM MQ
IBM MQ components for AIX systems
You can select the components that you require when you install IBM MQ.
Important: See IBM MQ license information for details of what each purchase of IBM MQ entitles you to
install.
On AIX each component of IBM MQ is represented by a fileset. Table 4 on page 33 shows the filesets
that are available when installing an IBM MQ server or client on an AIX system:
control commands
MQI calls
MQSC commands
34 Installing IBM MQ
Table 4. IBM MQ filesets for AIX systems (continued)
Component Description Serve Client Fileset name
r medi
medi a
a
REST API and Adds HTTP based administration for IBM MQ mqm.web.rte
Console through the REST API and IBM MQ Console.
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.
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 AIX” on page 37.
Related concepts
“IBM MQ installation overview” on page 5
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
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
36 Installing IBM MQ
bos.iconv.ucs.com Unicode converters for AIX sets
bos.iconv.ucs.ebcdic Unicode converters for EBCDIC sets
bos.iconv.ucs.pc Unicode converters for PC sets
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
Applying maintenance to IBM MQ
38 Installing IBM MQ
Adding existing user IDs to the group
If you want to run administration commands, for example crtmqm (create queue manager) or strmqm
(start queue manager), your user ID must be a member of the mqm group. This user ID must not be longer
than 12 characters.
Users do not need mqm group authority to run applications that use the queue manager; it is needed only
for the administration commands.
You can use smit to add an existing user ID to the mqm group. Display the required menu using this
sequence:
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.
40 Installing IBM MQ
When installing IBM MQ on AIX systems, there are some additional settings that must be configured.
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
On AIX 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 AIX” on page 39
uncompress IBM_MQ_9.2.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.
42 Installing IBM MQ
If you want to carry out a side-by-side installation, alongside an existing installation of IBM MQ in the
default location, you must install the second version of the product in a location that is not the default. To
create the non-default installation location you must use the mkusil command, which is available only
from the command line.
You can then use installp (see “Installing the IBM MQ server silently on AIX” on page 44), or SMIT if
you select the Relocatable Software Installation menu item.
If you want to carry out a single stage migration, refer to Migrating on AIX and Linux: single-stage.
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 the mount point of a DVD, 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.
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.
44 Installing IBM MQ
2. Set your current directory to the location of the installation packages.
The location might be the mount point of a DVD, 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 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
46 Installing IBM MQ
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
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 the mount point of a DVD, 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 59.
Related tasks
“Uninstalling or modifying IBM MQ on AIX” on page 60
48 Installing IBM MQ
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.
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 the mount point of a DVD, 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.
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 59.
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.
50 Installing IBM MQ
About this task
Use the following steps to configure your default queue manager from the command line. After the queue
manager is configured, use the amqsput sample program to put a message on the queue. You then use
the amqsget sample program to get the message back from the queue.
IBM MQ object definitions are case-sensitive. Any text entered as an MQSC command in lowercase is
converted automatically to uppercase unless you enclose it in single quotation marks. Make sure that you
type the examples exactly as shown.
Procedure
1. On an AIX 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 one 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 AIX, log in as a user in the mqm group.
52 Installing IBM MQ
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:
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
54 Installing IBM MQ
k) If the sender server is a Linux or AIX system, change into the MQ_INSTALLATION_PATH/
samp/bin directory. This directory contains the sample programs. MQ_INSTALLATION_PATH
represents the high-level directory in which IBM MQ is installed.
l) If both the sender server and receiver server are installations on the same system, check that the
queue managers have been created on different installations by entering the following command:
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 56.
2. Set up the client, using the instructions in “Connecting to a queue manager, using the MQSERVER
environment variable on AIX” on page 58.
3. Test the communications between client and server, using the instructions in “Testing communication
between a client and a server on AIX” on page 59.
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:
56 Installing IBM MQ
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 58.
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.
58 Installing IBM MQ
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 59.
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
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
60 Installing IBM MQ
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:
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 63.
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 63.
• You must also make some platform-specific choices. See “Planning to install IBM MQ on IBM i” on
page 64.
3. Prepare your system for installation of IBM MQ.
See “Preparing the system on IBM i” on page 65.
4. Install IBM MQ server.
See “Installing IBM MQ server on IBM i” on page 66.
5. Optional: Install an IBM MQ client.
See “Installing an IBM MQ client on IBM i” on page 79.
6. Verify your installation. See “Verifying an IBM MQ installation on IBM i” on page 84.
62 Installing IBM MQ
IBM MQ components for IBM i
The IBM MQ components that are available for IBM i.
Important: See IBM MQ license information for details of what each purchase of IBM MQ entitles you to
install.
The components are as follows:
Server (Base)
Support to enable you to create and support your own applications. This includes the runtime
component that provides support for external applications. It also includes support for client
connections from IBM MQ installations on other computers.
Samples (Option 1)
Sample application programs. The source is supplied in the QMQMSAMP library and executable files
are supplied in the QMQM library.
AMS (Option 2)
The AMS component.
Web Console and REST API (Option 3)
Adds HTTP based administration for IBM MQ through the REST API and IBM MQ Console.
To use this feature, you must install the following prerequisites:
• 5724L26 IBM MQ Java Messaging and Web Services
• 5770JV1 Java SE 8
Managed File Transfer (MFT) components
*BASE
Support to enable you to create and support your own MFT applications. It also includes support
for client connections from IBM MQ MFT installations on other computers.
2
Tools support
3
Agent
4
Services
You must install *BASE first because the other three options depend on *BASE. Note that option 4
requires that option 3 is installed.
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.
Procedure
1. As part of your planning activities, make sure that you review the information on hardware and
software requirements for the platform on which you are planning to install IBM MQ.
For more information, see “Hardware and software requirements on IBM i systems” on page 63.
2. 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.
64 Installing IBM MQ
Preparing the system on IBM i
On IBM i systems, you might have to complete several tasks before you install IBM MQ. You might also
want to complete other tasks, depending on your installation intentions.
Procedure
Configure any additional settings needed for your IBM i system.
See “Configuring and tuning the operating system on IBM i” on page 65.
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 66. To install a client, see “Installing an
IBM MQ client on IBM i” on page 79.
Related tasks
Planning
Maintaining and migrating
Applying maintenance to IBM MQ
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)
66 Installing IBM MQ
OPTION (*BASE)
Install the IBM MQ for IBM i base product.
Unspecified parameters
Unspecified parameters, such as RSTOBJ (*ALL), revert to defaults. The command installs both
IBM MQ and the language files for the primary language of your system. For installing additional
languages, see step 4.
3. Optional: Install the samples using the command:
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (1) OUTPUT (*PRINT)
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (2) OUTPUT (*PRINT)
RSTLICPGM LICPGM (5724H72) DEV (installation device) OPTION (3) 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.
68 Installing IBM MQ
• 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 V9R2M0
5724H72 *BASE 2924 *LNG QMQM V9R2M0
5724H72 1 5050 *CODE QMQMSAMP V9R2M0
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 V9R2M0
10. Use the command DSPMQMVER to check exactly what version you have installed. For V9R2M0, it
reports:
Version: 9.2.0.0
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 77.
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 78.
Related concepts
“Uninstalling IBM MQ for IBM i” on page 89
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)
70 Installing IBM MQ
OPTION (*BASE)
Install the IBM MQ for IBM i base product.
Unspecified parameters
Unspecified parameters, such as RSTOBJ (*ALL), revert to defaults. The command installs both
IBM MQ and the language files for the primary language of your system. For installing additional
languages, see step 4.
4. Optional: Install the samples using the command:
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:
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
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 V9R2M0
5724H72 *BASE 2924 *LNG QMQM V9R2M0
5724H72 1 5050 *CODE QMQMSAMP V9R2M0
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
72 Installing IBM MQ
b) and when you press F11:
Resource Feature
ID Option Feature Type Library Release
5724H72 *BASE 2928 *LNG QSYS2928 V9R2M0
9. Use the command DSPMQMVER to check exactly what version you have installed. For V9R2M0, it
reports:
Version: 9.2.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 77.
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 78.
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
5. Press F11, while viewing the Display Software Resources screen, and you see the library and version
number of the products installed:
Resource
ID Option Feature Type Library Release
5725M50 *BASE 5050 *CODE QMQMMFT V9R2M0
5725M50 *BASE 2924 *LNG QMQMMFT V9R2M0
5725M50 2 5050 *CODE MFTTOOL V9R2M0
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 78.
74 Installing IBM MQ
Installing IBM MQ for IBM i from an Electronic Software Download
You can perform an installation of IBM MQ for IBM i from an installation image downloaded from IBM.
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:
CRTLIB LIB(MQ92PROD)
CRTSAVF FILE(MQ92PROD/MQ92BASE) /* Server and Client */
CRTSAVF FILE(MQ92PROD/MQ92SAMP) /* Server and Client Samples */
CRTSAVF FILE(MQ92PROD/MQ92EN24) /* 2924 English */
CRTSAVF FILE(MQ92PROD/MQ92CBASE) /* Standalone Client */
CRTSAVF FILE(MQ92PROD/MQ92CSAMP) /* Standalone Client Samples */
CRTSAVF FILE(MQ92PROD/MQ92JBASE) /* Java and JMS Classes */
CRTSAVF FILE(MQ92PROD/MQ92JSAMP) /* Java and JMS Samples */
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 65.
5. Enter the RSTLICPGM commands, specifying the installation device as *SAVF and naming the save file
containing the options that you want to install.
The IBM MQ Java licensed program can be installed stand-alone or can coexist with any of the other
licensed programs.
The IBM MQ client can be installed standalone, but it can only coexist with the IBM MQ Java on the
same system.
Attempting to install the IBM MQ server on a system where the IBM MQ client is already installed
performs a slip installation upgrade, replacing the client with the server licensed program.
Attempting to install the IBM MQ client stand-alone over the top of an existing server licensed program
is not possible, and the installation fails.
76 Installing IBM MQ
For example:
/* 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 77.
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 78.
Procedure
1. See the IBM MQ website at IBM MQ product page for the latest product information.
2. Install and apply all fix packs.
3. Where you have more than one system and a mixture of releases of OS/400 or IBM i, and IBM MQ, you
must take care when compiling CL programs. You must compile CL programs either on the system they
are to run on, or on one with an identical combination of releases of OS/400 or IBM i, and IBM MQ.
When you install later versions of IBM MQ, delete all IBM MQ commands from previous releases in any
QSYSVvRrMm libraries using the QSYS/DLTCMD command.
4. If you have not installed IBM MQ on your system before, you must add user profiles to the QMQMADM
group profile. Make all user profiles that are to be used for creating and administering queue managers
members of the QMQMADM group profile, using the command CHGUSRPRF.
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).
2. Delete partially installed options by deleting the QMQM library (and the QMQMSAMP libraries if
necessary).
3. Delete the IFS directory /QIBM/ProdData/mqm and its subdirectories using the EDTF command, for
example: EDTF STMF('/QIBM/ProdData') and select option 9 for the mqm directory.
If the installation of IBM MQ Java fails, remove the partly installed objects before attempting
reinstallation:
78 Installing IBM MQ
a. Delete the QMQMJAVA library.
b. Delete the IFS directory /QIBM/ProdData/mqm/java and its subdirectories using the EDTF
command, for example:
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)
80 Installing IBM MQ
OPTION (*BASE)
The level of IBM MQ client for IBM i product installed
OUTPUT (*PRINT)
Whether the spooled output of the job is printed
b) Install the samples by issuing the following command:
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 V9R2M0
5725A49 1 5050 *CODE QMQMSAMP V9R2M0
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
78
Related concepts
“Uninstalling IBM MQ for IBM i” on page 89
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:
82 Installing IBM MQ
5724L26
The product identifier for IBM MQ Java messaging and web services for IBM i
V9R2M0
The version, release, and modification level
0000
The option number for the base IBM MQ Java messaging and web services product.
0
Unused error structure
b) For the samples:
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 V9R2M0
5724L26 1 5050 *CODE QMQMJAVA V9R2M0
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.mqjms.jar
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
84 Installing IBM MQ
It shows how to create the client-connection channel on the IBM MQ MQI client workstation. It then
shows how to use the sample programs to put a message onto a queue, and get the message from the
queue.
The example does not address any client security issues. See Setting up IBM MQ MQI client security for
details if you are concerned with IBM MQ MQI client security issues.
The verification procedure assumes that:
• The full IBM MQ server product has been installed on a server.
• The server installation is accessible on your network.
• The IBM MQ MQI client software has been installed on a client system.
• The IBM MQ sample programs have been installed.
• TCP/IP has been configured on the server and client systems. For more information, see Configuring
connections between the server and client.
First, set up the server using the command line, using the instructions in “Setting up the server using the
command line IBM i” on page 85.
Once you have set up the server, you must set up the client, using the instructions in “Connecting to a
queue manager, using the MQSERVER environment variable on IBM i” on page 87.
Finally, you can test the communications between client and server, using the instructions in “Testing
communication between a client and a server on IBM i” on page 88.
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 79.
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 87.
86 Installing IBM MQ
Connecting to a queue manager, using the MQSERVER environment variable
on IBM i
When an IBM MQ application is run on the IBM MQ MQI client, it requires the name of the MQI channel,
the communication type, and the address of the server to be used. Provide these parameters by defining
the MQSERVER environment variable.
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 85.
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 88.
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.
88 Installing IBM MQ
What to do next
1. On the server, stop the queue manager by entering the following command:
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:
90 Installing IBM MQ
Table 11. Globalizations of IBM MQ for IBM i. (continued)
Language ID Language
2989 Simplified Chinese
2931 Spanish
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.
92 Installing IBM MQ
Uninstalling IBM MQ MQI client for IBM i
If the IBM MQ MQI client for IBM i must be uninstalled, follow the correct procedure to ensure that all the
relevant directories and files are removed.
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 66
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 108.
• To install IBM MQ on Linux Ubuntu using a Debian installer , see “Installing IBM MQ on Linux Ubuntu
using Debian” on page 126.
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 95.
94 Installing IBM MQ
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.
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 99.
Related concepts
“IBM MQ installation overview” on page 5
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
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.
Attention: From IBM MQ 9.0.0, there is no separate 32-bit client installation package. The client
installation package and redistributable client contain both 32-bit and 64-bit IBM MQ client
libraries. The included 32-bit libraries can be used by 32-bit applications on supported platforms
where 32-bit support is offered by the operating system.
If the 32-bit Linux support libraries are not installed, 32-bit applications will not run. If you need this
functionality, install the 32-bit support libraries. Here are the names of the packages that contain the
required libraries:
For Red Hat.
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
96 Installing IBM MQ
• cifs-utils
• libcgroup
• libtool-ltdl
• lm_sensors-libs
• lvm2
• net-snmp-agent-libs
• net-snmp-libs
• nfs-utils
• perl-TimeDate
• psmisc
• redhat-lsb-core
See Prerequisites for .NET Core on Linux for the dependencies required to run .NET on Linux.
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.
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.
3. Review the options and restrictions for choosing an installation location for IBM MQ.
For more information, see “Installation location on Multiplatforms” on page 15.
4. If you plan to install multiple copies of IBM MQ, see “Multiple installations on AIX, Linux, and
Windows” on page 17.
5. If you already have a primary installation, or plan to have one, see “Primary installation on AIX, Linux,
and Windows” on page 18.
6. 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.
7. Determine whether you need to install the Java Runtime Environment (JRE).
From IBM MQ 9.1.0, if you are not using Java in your messaging applications, and you are not using
portions of IBM MQ that are written in Java, you have the option to not install the JRE (or to remove the
JRE if it was already installed).
Attention: If you choose not to install the JRE, or to remove the JRE if it was already installed:
• You must perform your key management by using the runmqakm command line tool rather
than the strmqikm GUI tool, or the runmqckm command line tool.
• The IBM Key Management shortcut is still installed. Clicking the shortcut has no effect. You
should use the runmqakm command line tool instead.
• 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. From IBM MQ 9.1.0, 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 Using runmqckm, runmqakm, and strmqikm to manage digital certificates.
98 Installing IBM MQ
Preparing the system on Linux
On Linux systems, you might have to complete several tasks before you install IBM MQ. You might also
want to complete other tasks, depending on your installation intentions.
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 99.
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 100.
3. Configure any additional settings needed for your Linux system.
See “Configuring and tuning the operating system on Linux” on page 102.
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 using rpm , see “Installing the first IBM MQ installation on Linux using the rpm command”
on page 113. To install a client using rpm, see “Installing an IBM MQ client on Linux using rpm” on page
120.
To install a server using a Debian installer, see “Installing an IBM MQ server on Linux Ubuntu using Debian
packages” on page 131. To install a client using a Debian installer, see “Installing an IBM MQ client on
Linux Ubuntu using Debian packages ” on page 137
Important: Having both Debian and rpm installed versions of IBM MQ on the same system is not
supported.
Related tasks
Planning
Maintaining and migrating
Applying maintenance to IBM MQ
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:
1. These values are sufficient to run two moderate sized queue managers on the system. If you intend to
run more than two queue managers, or the queue managers are to process a significant workload, you
might need to increase the values displayed as Yes in the Increase column.
2. The kernel.sem values are contained within a single kernel parameter containing the four values in
order.
To view the current value of the parameter log on, as a user with root authority, and type:
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.
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.
Some 64-bit Linux distributions no longer support 32-bit applications by default. For details of affected
platforms, and guidance on enabling 32-bit applications to run on these platforms, see “Hardware and
software requirements on Linux systems” on page 95.
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
maximum number of processes that the mqm user is allowed to run is sufficient. The number of processes
must include the number of channels and applications that connect to the queue manager.
The following calculation is useful when determining the number of processes for the mqm user:
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.
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 99
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 100
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
directory for the product code can be changed at installation time, but the working data location cannot
be changed.
Related reference
mqconfig
Procedure
1. Check the system requirements.
See “Checking requirements on Linux” on page 94.
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 109.
• You must also make some platform-specific choices. See “Planning to install IBM MQ on Linux” on
page 98.
3. Prepare your system for installation of IBM MQ.
See “Preparing the system on Linux” on page 99.
4. Install IBM MQ server.
See “Installing the first IBM MQ installation on Linux using the rpm command” on page 113, and
“Installing additional IBM MQ installations on Linux using the rpm command” on page 117.
Table 13 on page 109 shows the components that are available when installing an IBM MQ server or
client on a Linux system:
Notes:
1. The rpm components required for the IBM MQ Bridge to Salesforce are:
2. The rpm components required for the IBM MQ Bridge to blockchain are:
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. 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 an Electronic Software Download, 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.
The location might be the mount point of a DVD, a network location, or a local file system directory. See
Where to find downloadable installation images.
4. From IBM MQ 9.2.0, 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:
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.2.4-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 245.
• For IBM MQ 9.2.1 and later, 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:
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.
For example, enter the following installation path to install the runtime and server components to
the /opt/customLocation directory on a 64-bit Linux system:
• Install IBM MQ in the default location /opt/mqm by using the rpm -ivh 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:
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.
For example, enter the following installation path to install the runtime and server components to
the /opt/customLocation directory on a 64-bit Linux system:
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
MQSeriesSFBridge (Deprecated)
MQSeriesBCBridge (Deprecated )
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 the mount point
of the server DVD, a network location, or a local file system directory.
4. Run the crtmqpkg command to create a unique set of packages to install on the system. To run the
crtmqpkg command to run on Linux, you must install the pax command and rpmbuild, which is
located in the rpm-build package.
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.
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
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:
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-8.0.0-0.x86_64.rpm
To: MQSeriesRuntime-1-8.0.0-0.x86_64.rpm
5. From IBM MQ 9.2.0, 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
./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
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.
For example, enter the following installation path to install the runtime and server components to
the /opt/customLocation directory on a 64-bit Linux system:
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 the mount point of a DVD, a network location, or a local file system directory. See
Where to find downloadable installation images.
3.
From IBM MQ 9.2.0, 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 “License acceptance on IBM MQ for Linux” on page 107 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.2.4-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 and the MQSeriesClient.
• 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 an Electronic Software Download, 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
./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
• 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 123.
• 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 94.
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 127.
3. Prepare your system for installation of IBM MQ.
See “Preparing the system on Linux” on page 99.
4. Install IBM MQ server.
See “Installing an IBM MQ server on Linux Ubuntu using Debian packages” on page 131.
5. Optional: Install an IBM MQ client.
See “Installing an IBM MQ client on Linux Ubuntu using Debian packages ” on page 137.
6. Verify your installation. See “Verifying an IBM MQ installation on Linux” on page 142.
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.
Attention: The Debian installation tools have no provision for overriding the installation directory.
This means that there is no relocatable or multi-version support. Therefore the product will be
installed to /opt/mqm, but this can be set as the primary installation if you require.
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.
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.
From IBM MQ 9.2.0 you have the option to accept the license before or after product
installation. See “License acceptance on IBM MQ for Linux” on page 107 for more information.
Note: For Long Term Support before IBM MQ 9.2.0 and Continuous Delivery releases before IBM MQ
9.1.5, you must accept the terms of the license agreement before you can proceed with the installation.
To do this, run the mqlicense.sh script
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 the mount point of a DVD, a network location, or a local file system directory. See
Where to find downloadable installation images.
3.
From IBM MQ 9.2.0, 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.
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 “License acceptance on IBM MQ for Linux” on page 107 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 132 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.2.0.0_amd64.deb
Important: Although dpkg permits multiple package files in the same command, this will not
work as expected because of IBM MQ inter-package dependencies. You must install the packages
individually in the order shown below. You may find that using apt-get is a better option.
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 the mount point of a DVD, a network location, or a local file system directory. See
Where to find downloadable installation images.
3.
From IBM MQ 9.2.0, 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 “License acceptance on IBM MQ for Linux” on page 107 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 131 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 138.
To install and use the package listed in the Package Name column, you must also install the
components listed in the Package Dependencies column.
Results
You have installed the packages you require.
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 153
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 155
On Linux, you can uninstall the IBM MQ server or client 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.2.0 the client images are available under the following file names:
Long Term Support: 9.2.0 IBM MQ C redistributable client for Linux x86-64
9.2.0.0-IBM-MQC-Redist-LinuxX64.tar.gz
Long Term Support: 9.2.0 IBM MQ JMS and Java redistributable client
9.2.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, add the
com.ibm.mq.allclient.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.2.0.0
Level: p920-920-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: MQNI09200004
InstDesc: IBM MQ V9.2.0.0 (Redistributable)
Primary: No
InstPath: /Development/johndoe/unzip/unpack
DataPath: /u/johndoe/IBM/MQ/data
MaxCmdLevel: 920
Related concepts
“Redistributable IBM MQ clients” on page 27
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, which provides a simple way
of distributing applications and the runtime files that they require in a single package.
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 142.
• To verify a server-to-server installation, see “Verifying a server-to-server installation using the
command line on Linux” on page 144.
• To verify a client installation, see “Verifying a client installation on Linux” on page 147.
. 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.
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.
. 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
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
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.
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 148.
2. Set up the client by following instructions in “Connecting to a queue manager, using the MQSERVER
environment variable on Linux” on page 150.
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 153.
. 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 120.
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 150.
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 148.
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 153.
Procedure
1. Set up the server by following the instructions in “Setting up the server using IBM MQ Explorer on
Linux” on page 152.
2. Set up the client by following instructions in “Setting up the client using IBM MQ Explorer on Linux” on
page 152.
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 153.
Related tasks
“Installing an IBM MQ client on Linux using rpm” on page 120
Procedure
1. Create a queue manager:
a) Open IBM MQ Explorer.
b) Right-click the folder called Queue Managers, select New > Queue Manager.
c) In the first entry field, type the queue manager name, QUEUE.MANAGER.1, and click Finish.
2. Create a local queue:
a) Expand the queue manager you have just created and right-click queues.
b) Select New > Local Queue.
c) Enter the queue name, QUEUE1, and click Finish.
3. Define the server-connection channel:
a) Right-click Channels.
b) Select New > Server Connection Channel.
c) Enter the channel name, CHANNEL1, and click Next.
d) In the dialog navigation pane, click MCA to open the MCA page.
e) In the MCA User ID field, enter a userid that is a member of the mqm group, typically your own.
f) Click Finish.
4. Run the listener.
The listener is automatically started when the queue manager is configured. To check that the listener
is running, open Listeners and look for LISTENER.TCP.
What to do next
Set up the client. See “Setting up the client using IBM MQ Explorer on Linux” on page 152.
Related tasks
“Installing an IBM MQ client on Linux using rpm” on page 120
Installing an IBM MQ client on a 64 bit Linux system.
Procedure
1. Select the queue manager, QUEUE.MANAGER.1
2. Open the Channels folder, then right-click Client Connections > New > Client-connection Channel...
3. Enter the channel name, CHANNEL1, for the client connection, and click Next.
4. Enter the queue manager name, QUEUE.MANAGER.1
5. Enter the following string as the connection name:
Where:
• server-address is the TCP/IP host name of the server
• port is the TCP/IP port number the server is listening on
6. Click Finish.
7. From the command line, set the MQCHLLIB environment variable:
Enter the following command:
export MQCHLLIB=var/mqm/qmgrs/QUEUE!MANAGER!1/@ipcc
Note: The queue manager name contains ".". IBM MQ creates the queue manager directory with the
name, QUEUE!MANAGER!1
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 153.
Related tasks
“Installing an IBM MQ client on Linux using rpm” on page 120
Installing an IBM MQ client on a 64 bit Linux system.
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 155
– “Uninstalling or modifying IBM MQ on Linux Ubuntu using Debian packages” on page 159
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
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 rpm 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 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 MQ80 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 MQ80 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 MQ80, enter the following
command:
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.
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
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:
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
libmqzsd.so and libmqzsd_r.so. Deleting these directories destroys all queue managers and their
associated data.
Related tasks
“Installing IBM MQ on Linux Red Hat using yum” on page 123
From IBM MQ 9.2.0 you can install IBM MQ on Linux Red Hat by using the yum installer.
Upgrading IBM MQ on Linux
“Uninstalling or modifying IBM MQ on Linux using rpm” on page 155
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
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 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.
$ endmqm -i TEST_92
You receive a message that the queue manager TEST_92 is ending (that is, shutting down), followed
by another message when shutdown is complete.
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. Login as root and issue the a command similar to the following, to find out the file sets for IBM MQ
9.2.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.
This command removes the product, but leaves the package definition cached.
…
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.2.0.1) ...
Entering prerm for "ibmmq-runtime-u9201" remove
Entering postrm for "ibmmq-runtime-u9201" 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.2.0.0
Results
You have successfully uninstalled IBM MQ 9.2.0 Fix Pack 1.
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 159.
Related tasks
Removing maintenance level server updates on Windows
Related reference
endmqm (end queue manager)
dspmqver (display version information)
Interactive Non-interactive
displayed name displayed name Description Server media Client media
Server Server You can use the
server to run
queue managers
on your system and
connect to other
systems over a
network. Provides
messaging and
queuing services
to applications,
and support for
IBM MQ client
connections.
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,Explorer,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 183
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 185
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 173.
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 5
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
For further information about Windows requirements, see IBM MQ Explorer Requirements and the
following web pages:
• Windows 7 system requirements
• Windows 8 system requirements
From IBM MQ 9.1.1, the following prerequisites apply to IBM MQ classes for .NET:
• .NET Core 2.1 is a prerequisite to use IBM MQ classes for .NET Standard, for developing .NET Core
applications.
• .NET Framework V4.7.1 is a prerequisite to use IBM MQ classes for .NET Standard, for developing .NET
Framework applications.
Attention: If you choose not to install the JRE, or to remove the JRE if it was already installed:
• You must perform your key management by using the runmqakm command line tool rather
than the strmqikm GUI tool, or the runmqckm command line tool.
• The IBM Key Management shortcut is still installed. Clicking the shortcut has no effect. You
should use the runmqakm command line tool instead.
• Use of the runmqras command fails unless a JRE at version 7, or later, is available on the
system path.
On Windows, before IBM MQ 9.1.0, the JRE was a hidden installation feature that was always installed.
From IBM MQ 9.1.0, the JRE becomes an independently installable feature. The feature can be
installed or omitted, either silently or though the GUI installer, as long as you are not installing other
features that require the presence of the JRE. For more information, see Install features that require
the Server or 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 Using runmqckm, runmqakm, and strmqikm to manage digital certificates.
Table 20. Installation features requiring either the Server or JRE feature
Feature Required by Non-interactive name
Server Web Administration Web
To check whether the JRE or Server features have been installed, look in the [INSTALLDIR]\swidtag
directory. If the:
• ibm.com_IBM_MQ-9.0.x.swidtag file is present, the Server has been installed
• IBM_MQ_JRE-1.8.0.mqtag file is present, the JRE has been installed.
If this is not what you require, consult the installation log.
Important: Each of the JRE and Server features are part of the set of Windows standard IBM MQ
installation features. To remove the JRE (or the Server) when installing silently, add the feature to the
REMOVE directive, do not merely omit it from the ADDLOCAL directive. See “Windows standard installation
features” on page 172 for further details.
Compact • Server only • MQI Client only The feature is installed to the
default location with a default
installation name.
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 209.
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.
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 181 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.
Naming considerations
Windows has some rules regarding the naming of objects created and used by IBM MQ. These naming
considerations apply to IBM WebSphere MQ 7.5 or later.
Logging
You can set up logging during installation which assists you in troubleshooting any problems you might
have with the installation.
From IBM WebSphere MQ 7.5, 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. From IBM MQ 8.0 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 183.
• To install IBM MQ server on by using the MSI technology directly, see “Installing the server using
msiexec” on page 185.
Related concepts
“Modifying a server installation” on page 207
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 200
From IBM MQ 9.2.1, a new Confirm License Entitlement panel in the Windows interactive
installer is presented after feature selection if you have chosen to install any IBM MQ Advanced features
(MQ Telemetry Service, Advanced Message Security, or Managed File Transfer Service), or if you are
upgrading from an installation that already has these features.
This panel simply warns you that these features are considered IBM MQ Advanced
functionality and should only be installed if you have entitlement to IBM MQ Advanced. This warning
reduces the risk of users installing IBM MQ Advanced features on a machine in error.
Note: The Confirm License Entitlement panel applies to production server builds and not to clients, beta
builds, trial builds or developer (non-warranty) builds.
Procedure
1. Access the IBM MQ installation image.
The location might be the mount point of a DVD, 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
• From a DVD, this location might be E:\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. Review, and if necessary, modify the software requirements and
network configuration.
If you select any IBM MQ Advanced features and the Confirm License Entitlement panel
then appears:
• If you do have an IBM MQ Advanced license, simply select Yes (I have an MQ Advanced license)
and Next to continue with the installation.
• If you do not have an IBM MQ Advanced license and do not intend to purchase one, click Back and
change your feature selections.
Depending on your system the installation process can take several minutes. At the end of the
installation process, the IBM MQ Setup window displays the message Installation Wizard
Completed Successfully.
When this message appears, click Finish.
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 200.
• 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 226.
Related concepts
“Modifying a server installation” on page 207
You can modify an IBM MQ server installation interactively using the launchpad or non-interactively using
msiexec.
Related tasks
“Installing the server using msiexec” on page 185
IBM MQ on Windows uses the MSI technology to install software. MSI provides both an interactive
installation and a non interactive installation.
“Configuring user accounts for IBM MQ” on page 200
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 239
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 212.
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 you
are using both forms of parameter, always put the command-line parameters first. For more
information, see “Specifying command line parameters for server installation with msiexec” on
page 187, which contains a link to the web site that lists all the command line parameters that are
available.
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.
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
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 189
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).
TRANSFORMS :InstanceId x.mst| path \ The :InstanceId x.mst value is only required for
file_name | a subsequent installation of IBM MQ. The path
:InstanceId x.mst; path \ \ file_name specifies what transform (.mst) files
file_name must be applied to the product. For example,
"1033.mst" specifies the supplied U.S. English
transform file.
MSINEWINSTAN 1 This property is only required for subsequent
CE installations of IBM MQ
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"
ADDLOCAL="Server"
MSINEWINSTANCE=1
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 195.
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"
TRANSFORMS="D:\Msi\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.
AGREETOLICENSE “2” on yes Accept the terms of the license. Set to yes
page 193 before a silent installation.
If the installation is not silent, this parameter is
ignored.
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 163.
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 193 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.
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 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"
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
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 198 ).
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 196, Table 27 on page 197, and Table 28 on page 197 for the properties used
to install IBM MQ.
Table 26 on page 196 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 198.
[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 194 ).
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%
What to do next
Verify your installation, as described in “Verifying an IBM MQ installation on Windows” on page 226.
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 205) 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. Insert the IBM MQ for Windows Server DVD into the DVD drive.
2. If autorun is installed, the installation process starts.
Otherwise, double-click the Setup icon in the root folder of the DVD 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 182.
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 the mount point of a DVD, 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 the server DVD, this location might be E:\Windows\setup.exe
• 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.
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 238.
Related concepts
“Modifying a client installation using Add/Remove Programs” on page 222
On some versions of Windows, you can modify an installation by using Add/Remove Programs.
Related tasks
“Installing a client using msiexec” on page 210
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 218
You can use the MQParms command to invoke installation or uninstallation of an IBM MQ client.
“Uninstalling IBM MQ on Windows” on page 239
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 186.
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 212.
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 215.
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 214 and “Choosing MSI Instance IDs for multiple server
installations” on page 186.
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.
Table 30. 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 client installation” on page 215
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"
Procedure
• For a single installation of IBM MQ, specify the msiexec command as shown in the following typical
example.
• 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 219.
Procedure
On the msiexec command line, you can specify the required language by using the TRANSFORMS
property in a property=value pair as shown in the following example:
TRANSFORMS="1033.mst"
TRANSFORMS="D:\Msi\1033.mst"
Table 31 on page 214 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 217 a silent installation.
If the installation is not silent, this parameter is
ignored.
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
PGMFOLDER ensures that you do not work with the wrong installation in case you omit or incorrectly
specify the TRANSFORMS parameter.
2. For a silent installation to succeed, the AGREETOLICENSE="yes" property must be defined either on
the command line or in the response file.
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 219.
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 220, and Table 34 on page 220 for the properties used to install IBM MQ.
Table 33 on page 220 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 the mount point of a DVD, 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 the server DVD, this location might be E:\Windows\setup.exe
• 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.2.0 the client images are available under the following file names:
Long Term Support: 9.2.0 IBM MQ C and .NET redistributable client for Windows x64
9.2.0.0-IBM-MQC-Redist-Win64.zip
Long Term Support: 9.2.0 IBM MQ JMS and Java redistributable client
9.2.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.
Classpath changes
The classpath used by dspmqver, setmqenv, and crtmqenv commands, add the
com.ibm.mq.allclient.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.2.0.0
Level: p920-920-L150909
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.2.0.0 (Redistributable)
Primary: No
InstPath: C:\Users\johndoe\Desktop\Redist
DataPath: C:\Users\johndoe\IBM\MQ\data
MaxCmdLevel: 920
Related concepts
“Redistributable IBM MQ clients” on page 27
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, which 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>
4. Call setmqenv -s and set the DEVPATH environment variable to specify the \bin directory from the
redistributable image before running the application, that is:
set DEVPATH=%MQ_INSTALLATION_PATH%\bin
Starting and stopping trace for the .NET redistributable managed client
You generate trace for the .NET redistributable managed client in the same way as for the stand-
alone .NET client. For more information, see Using the stand-alone IBM MQ .NET client.
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:
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.
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:
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:
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:
• To set up the server and client by using the command line, follow the instructions in “Setting up the
server and client using the command line on Windows” on page 232.
• To set up the server and client by using IBM MQ Explorer, follow the instructions in “Setting up the
server and client using IBM MQ Explorer on Windows” on page 235.
2. Test the communications between client and server, using the instructions in “Testing communication
between a client and a server on Windows” on page 238.
Related tasks
“Installing an IBM MQ client on Windows” on page 209
This topic describes how to install IBM MQ client on Windows systems. This procedure can be used for
installing a first or a subsequent installation.
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 233.
2. Set up the client by following instructions in “Connecting to a queue manager, using the MQSERVER
environment variable on Windows” on page 234.
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 238.
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
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
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 209.
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 234.
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 233.
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.
• 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 Windows” on page 238.
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 238.
Related tasks
“Installing an IBM MQ client on Windows” on page 209
This topic describes how to install IBM MQ client on Windows systems. This procedure can be used for
installing a first or a subsequent installation.
Procedure
1. Create a queue manager:
a) Open IBM MQ Explorer.
b) Right-click the folder called Queue Managers, select New > Queue Manager.
c) In the first entry field, type the queue manager name, QUEUE.MANAGER.1, and click Finish.
2. Create a local queue:
a) Expand the queue manager you have just created and right-click queues.
b) Select New > Local Queue.
c) Enter the queue name, QUEUE1, and click Finish.
3. Define the server-connection channel:
a) Right-click Channels.
b) Select New > Server Connection Channel.
c) Enter the channel name, CHANNEL1, and click Next.
d) In the dialog navigation pane, click MCA to open the MCA page.
e) In the MCA User ID field, enter a userid that is a member of the mqm group, typically your own.
f) Click Finish.
4. Run the listener.
The listener is automatically started when the queue manager is configured. To check that the listener
is running, open Listeners and look for LISTENER.TCP.
What to do next
Set up the client. See “Setting up the client using IBM MQ Explorer on Windows” on page 237.
Related tasks
“Testing communication between a client and a server on Windows” on page 238
Procedure
1. Select the queue manager, QUEUE.MANAGER.1
2. Open the Channels folder, then right-click Client Connections > New > Client-connection Channel...
3. Enter the channel name, CHANNEL1, for the client connection, and click Next.
4. Enter the queue manager name, QUEUE.MANAGER.1
5. Enter the following string as the connection name:
server-address (port)
Where:
• server-address is the TCP/IP host name of the server
• port is the TCP/IP port number the server is listening on
6. Click Finish.
7. From the command line, set the MQCHLLIB environment variable.
Enter the following command:
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 238.
Related tasks
“Setting up the server and client using IBM MQ Explorer on Windows” on page 235
You can use IBM MQ Explorer to create the objects that you need to use to verify a client installation on
Windows. On the server, you create a queue manager, a local queue, a listener and a server-connection
channel. On the client system you create a client-connection channel. Then from the command line you
use the sample PUT and GET programs to complete the verification procedure.
“Installing an IBM MQ client on Windows” on page 209
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
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.
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
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 200.
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
Reset.cmd for this purpose; see “Clearing IBM MQ installation settings” on page 180 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.
2. Open Programs and Features.
3. Click IBM MQ (installation_name), where installation_name is the name of the installation you want to
remove.
4. Click Remove or Uninstall and click Yes to confirm.
If User Account Control (UAC) is enabled, accept the Windows prompt to allow the uninstallation to run
as elevated. The program then begins and runs to completion.
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.
A response file is an ASCII text file that contains the parameter values that you want to set for
the uninstallation. The response file has a format similar to a Windows .ini file, and contains the
stanza [Response]. This stanza contains parameters that the msiexec command can use, in the
form of property = value pairs. The msiexec command ignores any other stanzas in the file.
This is an example of a simple uninstallation [Response] stanza:
[Response] REMOVE="ALL"
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 239.
Related concepts
“IBM MQ features for Windows systems” on page 163
You can select the features that you require when you install IBM MQ.
Related tasks
“Installing the server using msiexec” on page 185
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 194.
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 239.
Procedure
1. Insert the IBM MQ for Windows Server DVD into the DVD drive.
2. Start the installation process.
What to do next
Complete the steps that you started in “Uninstalling IBM MQ on Windows” on page 239.
Procedure
• “Installing and uninstalling AMS on Multiplatforms” on page 246.
• “Installing Managed File Transfer ” on page 253.
• “Installing MQ Telemetry” on page 259.
•
“Installing RDQM (replicated data queue managers)” on page 265.
Procedure
• “Installing AMS on Multiplatforms” on page 246
• “Uninstalling AMS on Multiplatforms” on page 250
Procedure
• “Installing Advanced Message Security on AIX” on page 247
• “Installing Advanced Message Security on IBM i” on page 247
• “Installing Advanced Message Security on Linux” on page 248
• “Installing AMS on Windows using the Launchpad” on page 249
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 the mount point
of the DVD, 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.
• Applications that connect to the queue manager enable interceptors.
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 the mount point
of the server DVD, a network share, or a local file system directory.
3. If this installation is not the first installation on the system, you must run the crtmqpkg command to
create a unique set of packages to install on the system.
In order for the crtmqpkg command to run on Linux, the pax and rpmbuild commands must be
installed.
Important: pax and rpmbuild are not supplied as part of the product. You must obtain these from
your Linux distribution supplier.
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
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:
This example shows a minimum installation:
Results
Advanced Message Security has been installed successfully.
Procedure
1. Access the IBM MQ installation image.
The location might be the mount point of a DVD, 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 DVD, this location might be E:\setup.exe
• 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.
Procedure
• “Uninstalling AMS on AIX” on page 250
• “Uninstalling AMS on Linux” on page 251
• “Uninstalling AMS on Windows” on page 252
Related tasks
“Installing AMS on Multiplatforms” on page 246
Use the information for your platform to guide you through installing the Advanced Message Security
(AMS) component.
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
rpm -e package_name
Results
The Advanced Message Security component has been uninstalled.
Procedure
1. Insert the IBM MQ Server DVD into the DVD-ROM drive.
2. If autorun is enabled, the installation process starts.
Otherwise, double-click the Setup icon in the root folder of the DVD 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
fteCleanAgent
fteCreateAgent
fteCreateBridgeAgent
fteCreateEnvironment
fteCreateLogger
“1” on page
259
fteCreateMonitor
fteCreateTemplate
fteCreateTransfer
fteDeleteAgent
fteDeleteLogger
“1” on page
259
fteDeleteMonitor
fteDeleteScheduledTransfer
fteDeleteTemplates
fteDisplayVersion
Redistributable
Managed File
Agent command Service Tools command Logger command Transfer package
Command set command set set set set
fteListAgents
fteListMonitors
fteListScheduledTransfers
fteListTemplates
fteMigrateAgent “2”
on page 259
fteMigrateConfigurationOptions
“2” on page 259
fteMigrateLogger
“2” on page 259
fteModifyLogger (Windows
only)
“1” on page
259
fteObfuscate
ftePingAgent
fteRAS
fteSetAgentLogLevel
fteSetAgentTraceLevel
fteSetLoggerTraceLevel
“1” on page
259
fteSetupCommands
fteSetupCoordination
fteShowAgentDetails
fteShowLoggerDetails
“1” on page
259
fteStartAgent
fteStartLogger
“1” on page
259
fteStopAgent
Redistributable
Managed File
Agent command Service Tools command Logger command Transfer package
Command set command set set set set
fteStopLogger
“1” on page
259
Notes:
1. For Continuous Delivery from IBM MQ 9.2.1, 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.
These commands are still available for IBM MQ 9.2 Long Term Support.
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 261.
• By using the command line as described in “Verifying the installation of MQ Telemetry using the
command line” on page 263.
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 262.
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.
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
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
Results
If the scripts finished, and messages can be sent and received, the MQ Telemetry installation is verified.
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 7, the components are found under the Advanced/RDQM/PreReqs/el7/
directory. 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:
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.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
4. Install the appropriate DRBD kernel module that you identified in step 1. For example, for RHEL 8.2
you run the following command:
5. Install the required DRBD utilities. For example, for RHEL 8.2 you run the following command:
6. Install Pacemaker. For example, for RHEL 8.2 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 tasks
Migrating replicated data queue managers
Applying maintenance level updates for RDQM
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:
•
To uninstall DR/HA RDQM support if it is no longer required:
a) Delete the RDQM HA queue managers in both HA groups on main and recovery sites, see Deleting a
DR/HA RDQM.
b) Delete each 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:
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
•
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
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
./crtmqpkg RDQM
3. From your installation directory, create unique packages for the RDQM components:
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
The rdqmstatus command gives information about the OS kernel level and DRBD kernel
module level, see Viewing RDQM and HA group status, Viewing DR RDQM status, and Viewing DR/HA
RDQM and HA group status.
Related tasks
Applying maintenance level updates for RDQM
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 7.8 (3.10.0_1127) with IBM MQ 9.2.0.0, the required kernel module is kmod-
drbd-9.0.23_3.10.0_1127-1.x86_64.rpm.
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 7.8 (3.10.0_1127) with IBM MQ 9.2.0.0, the required kernel module is
kmod-drbd-9.0.23_3.10.0_1127-1.x86_64.rpm.
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 7.8 (3.10.0_1127) with IBM MQ 9.2.0.0, the required kernel module is
kmod-drbd-9.0.23_3.10.0_1127-1.x86_64.rpm.
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 7.8 (3.10.0_1127) with IBM MQ 9.2.0.0, the required kernel module is
kmod-drbd-9.0.23_3.10.0_1127-1.x86_64.rpm.
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.
$ uname -r
3.10.0-1127.13.1.el7.x86_64
And the installed DRBD kernel module can be displayed by using the following command:
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. Seehttps://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 7.8 system, running the helper script kmod-
drbd-9/modver returns the following information, identifying the kernel module that you need to
install:
kmod-drbd-9.0.23_3.10.0_1127-1.x86_64.rpm
3. Update the DRBD kernel module to the one that you identified in step 2. For example:
sudo reboot
Procedure
1. Check that your system hardware, and software levels meet the minimum requirements.
See “Checking requirements on z/OS” on page 281.
2. Plan your installation
See “Planning to install IBM MQ for z/OS” on page 281.
3. Install and configure IBM MQ for z/OS, by following the instructions detailed in the Program Directory.
See also the information in the subtopics for further guidance.
Note: From IBM MQ for z/OS 9.2, the Managed File Transfer for z/OS binary libraries are provided as part
of the base IBM MQ for z/OS installation.
“Changes caused by making IBM MQ Managed File Transfer for z/OS part of the base
product installation” on page 290, lists the major points this change makes to the installation process
from earlier versions of the product.
The different products are:
IBM MQ for z/OS
Provides IBM MQ capability, connectivity on and off the z/OS platform, and excellent integration
with z/OS software, such as CICS®, IMS, WebSphere Application Server, and Db2. Licensed under a
Monthly License Charge (MLC) model.
IBM MQ for z/OS Value Unit Edition (VUE)
Same functionality as IBM MQ for z/OS; licensed under a One Time Charge (OTC) model. Can coexist
and interact with IBM MQ MLC offerings in other LPARs.
Note that, from an installation perspective, the same FMIDs as for IBM MQ for z/OS are installed,
then the QMGRPROD attribute must be set to VUE, which changes product usage recording for billing
purposes.
IBM MQ Advanced for z/OS
Managed File Transfer (MFT) and Advanced Message Security (AMS) features, plus at Long Term
Support, the Connector Pack. IBM MQ Advanced for z/OS does not include entitlement to run queue
managers and so one of IBM MQ for z/OS or IBM MQ for z/OS VUE is a prerequisite.
The Advanced Message Security feature does not require installation. Both the Managed File Transfer
feature and the Connector Pack component are installed via separate FMIDs.
IBM MQ Advanced for z/OS Value Unit Edition
Bundling of IBM MQ for z/OS VUE and IBM MQ Advanced for z/OS.
From an installation perspective, the same FMIDs as IBM MQ for z/OS VUE and IBM MQ Advanced
for z/OS are installed. Once installed, the QMGRPROD attribute must be set to ADVANCEDVUE, which
changes product usage recording for billing purposes.
Features
The features are:
Advanced Message Security (AMS)
Provides end to end encryption of messages throughout the IBM MQ network. Data is encrypted at
rest, in memory, and when being transmitted over the network.
Managed File Transfer (MFT)
Provides the ability to integrate file data into an IBM MQ network, while providing reliable auditing,
management and recovery.
The Connector Pack component provides the IBM Aspera fasp.io Gateway, which can improve the speed
of transfer of IBM MQ data in lossy, high latency, networks.
Licensing models
The two different licensing models, together with their associated bundles, are shown in the following
table:
Note:
1. As per the 9th July, 2019 announcement letter, 5655-AM9 IBM MQ Advanced Message Security
for z/OS and 5655-MF9 IBM MQ Managed File Transfer for z/OS are withdrawn from sale. Existing
customers can continue to use these products and will continue to receive fixes and future functional
updates (if a valid subscription and support contract is in place). The capabilities will continue to be
available to new and existing customers with IBM MQ Advanced for z/OS and IBM MQ Advanced for
z/OS VUE.
Installation
Program Directories provide instructions for SMP/E installation of the program materials on to a target
system. Program Directories can be downloaded from the IBM Publications Center (see IBM MQ for z/OS
Program Directory PDF files).
The Customizing IBM MQ for z/OS topics guide you through customization of the code, and creating
customized execution units, for example the queue manager and file transfer agents.
Related concepts
“Managed File Transfer product options” on page 254
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
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 hardware and software requirements for IBM MQ on z/OS.
Before attempting to install and run IBM MQ for z/OS, ensure that your system hardware, and software
levels meet the minimum requirements. You can check the minimum required levels on the System
Requirements for IBM MQ website. Follow the links for the version of IBM MQ that you are installing in
and select the appropriate Detailed System Requirements report for z/OS. There are separate reports
for Long Term Support and Continuous Delivery.
3. Check that you have the correct licenses.
See “License requirements” on page 8 and IBM MQ license information.
You can choose one of the following national languages for the IBM MQ operator messages and the IBM
MQ operations and control panels (including the character sets used). Each language is identified by one
of the following language letters:
C
Simplified Chinese
E
U.S. English (mixed case)
F
French
K
Japanese
U
U.S. English (uppercase)
The samples, IBM MQ commands, and utility control statements are available only in mixed case U.S.
English.
Naming conventions
It is advisable to establish a set of naming conventions when planning your IBM MQ systems. The names
you choose will probably be used on different platforms, so you should follow the convention for IBM MQ,
not for the particular platform.
IBM MQ allows both uppercase and lowercase letters in names, and the names are case sensitive.
However, some z/OS consoles fold names to uppercase, so do not use lowercase letters for names unless
you are sure that this will not happen.
You can also use numeric characters and the period (.), forward slash (/), underscore (_) and percent (%)
characters. The percent sign is a special character to Security Server (previously known as RACF® ), so do
not use it in names if you are using Security Server as your External Security Manager. Do not use leading
or trailing underscore characters if you are planning to use the Operations and Control panels.
For more information, see Rules for naming IBM MQ objects.
Choosing names for queue managers and queue sharing groups
Each queue manager and queue sharing group within a network must have a unique name. Do
not use the same name for a queue manager and a queue sharing group. On z/OS the names of
queue managers and queue sharing groups can be up to four characters long. Each Db2 system and
data-sharing group within the network must also have a unique name.
The names of queue manager and queue sharing groups can use only uppercase alphabetic
characters, numeric characters, and dollar sign ($), number sign (#) or at sign (@); they must not
start with a numeric character. Queue sharing group names that are less than four characters long are
padded internally with at signs, so do not use names ending in the at sign.
The queue manager name is the same as the z/OS subsystem name. You might identify each
subsystem as a queue manager by giving it the name QM xx (where xx is a unique identifier), or you
might choose a naming convention like ADDX, where A signifies the geographic area, DD signifies the
company division, and X is a unique identifier.
You might want to use your naming convention to distinguish between queue managers and queue
sharing groups. For example, you might identify each queue sharing group by giving it the name QG
xx (where xx is the unique identifier).
Choosing names for objects
Queues, processes, name lists, and clusters can have names up to 48 characters long. Channels can
have names up to 20 characters long and storage classes can have names up to 8 characters long.
Choosing names that describe the function of each queue helps you to manage these
queues more easily. For example, you might call a queue for inquiries about the company
payroll payroll_inquiry. The reply-to queue for responses to the inquiries might be called
payroll_inquiry_reply.
You can use a prefix to group related queues. This means that you can specify groups of queues for
administration tasks like managing security and using the dead-letter queue handler. For example, all
the queues that belong to the payroll application might be prefixed by payroll_. You can then define
a single security profile to protect all queues with names beginning with this prefix.
You can also use your naming convention to indicate that a queue is a shared queue. For example, if
the payroll inquiry queue was a shared queue, you might call it payroll_inquiry.shared.
Storage classes and coupling facility structures
The character set you can use when naming storage classes and coupling facility structures is limited
to uppercase alphabetic and numeric characters. You should be systematic when choosing names for
these objects.
Storage class names can be up to 8 characters long, and must begin with an alphabetic character. You
will probably not define many storage classes, so a simple name is sufficient. For example, a storage
class for IMS bridge queues could be called IMS.
Coupling facility structure names can be up to 12 characters long, and must begin with an alphabetic
character. You could use the name to indicate something about the shared queues associated with the
coupling facility structure (that they all belong to one suite of applications for example). Remember
that in the coupling facility, the structure names are the IBM MQ name prefixed by the name of the
queue sharing group (padded to four characters with @ symbols).
Choosing names for channels
To help you manage channels, it is a good idea if the channel name includes the names of the source
and target queue managers. For example, a channel transmitting messages from a queue manager
called QM27 to a queue manager called QM11 might be called QM27/QM11.
If your network supports both TCP and SNA, you might also want to include the transport type in the
channel name, for example QM27/QM11_TCP. You could also indicate whether the channel is a shared
channel, for example QM27/QM11_TCP.shared.
Remember that channel names cannot be longer than 20 characters. If you are communicating with
a queue manager on a different platform, where the name of the queue manager might contain more
than 4 characters, you might not be able to include the whole name in the name of the channel.
Each instance of IBM MQ that you install must have its own command prefix string (CPF). You use the
CPF to identify the z/OS subsystem that commands are intended for. It also identifies the z/OS subsystem
from which messages sent to the console originate.
You can issue all MQSC commands from an authorized console by inserting the CPF before the command.
If you enter commands through the system command input queue (for example, using CSQUTIL), or use
the IBM MQ operations and control panels, you do not use the CPF.
To start a subsystem called CSQ1 with CPF that is ' +CSQ1 ', issue the command +CSQ1 START QMGR
from the operator console (the space between the CPF and the command is optional).
The CPF also identifies the subsystem that is returning operator messages. The following example shows
+CSQ1 as the CPF between the message number and the message text.
See Defining command prefix strings (CPFs) for information about defining command prefix strings.
Delivery media
IBM MQ for z/OS is supplied by DVD or electronic media. See the relevant product announcement letter
for complete information on product packaging.
The following language features are available:
• U.S. English (mixed case)
• U.S. English (uppercase)
• French
• Chinese
• Japanese
Refer to the IBM Offering Information site, where you can find more information on the Release For
Announcement (RFA) .
Product Product ID
IBM MQ for z/OS 5655-MQ9
IBM MQ for z/OS Value Unit Edition (VUE) 5655-VU9
IBM MQ Advanced for z/OS 5655-AV9
IBM MQ Advanced for z/OS VUE 5655-AV1
Note: From IBM MQ for z/OS 9.1.3, the older IBM MQ Advanced Message Security for z/OS and IBM MQ
Managed File Transfer for z/OS products are no longer available separately and are instead features of
IBM MQ Advanced for z/OS and IBM MQ Advanced for z/OS VUE.
The product and PID used by the queue manager address space are output at start up in the CSQY036I
message. Note that the channel initiator does not output an equivalent message, but it uses the same
PID.
Prior to IBM MQ for z/OS 9.1.3, VUE mode for both IBM MQ for z/OS VUE and IBM MQ Advanced for
z/OS VUE could optionally be enabled using an enablement module. From IBM MQ for z/OS 9.1.3 that
enablement module is no longer shipped, and you must use the QMGRPROD attribute.
There are three distinct methods of setting the QMGRPROD attribute:
1. In the CSQ6USGP macro, which is part of the IBM MQ system parameter module. This is the approach
you should use for setting QMGRPROD permanently.
2. As a parameter on the START QMGR command. This needs to be set for each use of the command.
3. As a parameter on the JCL used to start the queue manager address space. See starting and stopping a
queue manager on z/OS for more information.
The second and third approaches can be useful the first few times that QMGRPROD is used, or for test
systems, and will override the values set by CSQ6USGP.
Prior to IBM MQ for z/OS 9.1.3, an enablement module was required for the AMS address
space to start up. From IBM MQ for z/OS 9.1.3 that enablement module is no longer shipped. Instead, if
your enterprise wants to use Advanced Message Security, you must ensure that AMSPROD is set to one of
AMS, ADVANCED, or ADVANCEDVUE depending on what product you are entitled to. If SPLCAP(YES) is set
in CSQ6SYSP, indicating that the queue manager is to be enabled for AMS, but AMSPROD is not set, then
from IBM MQ for z/OS 9.1.3, the queue manager will not start and message CSQY024I will be output.
The product and PID used by the AMS address space are output at start up in the CSQ0619I message.
There are three distinct methods of setting the AMSPROD attribute:
1. In the CSQ6USGP macro, which is part of the IBM MQ system parameter module. This is the approach
you should use for setting AMSPROD permanently.
2. As a parameter on the START QMGR command. This needs to be set for each use of the command.
3. As a parameter on the JCL used to start the queue manager address space. See starting and stopping a
queue manager on z/OS for more information.
The second and third approaches can be useful the first few times that AMSPROD is used, or for test
systems, and will override the values set by CSQ6USGP.
CWWKB0108I: IBM CORP product MQM MVS/ESA version V9 R2.0 successfully registered with z/OS.
CWWKB0108I: IBM CORP product MQ z/OS VUE version NOTUSAGE successfully registered with z/OS.
CWWKB0108I: IBM CORP product MQ z/OS Adv VUE version NOTUSAGE successfully registered with z/OS.
Default PIDs
In most cases, if a specific PID is not selected, a default PID is used for:
• The queue manager and channel initiator, which is IBM MQ for z/OS
• mqweb servers created prior to version 9.2.0, which is IBM MQ for z/OS
• The AMS address space, which is IBM MQ Advanced Message Security for z/OS
• MFT processes, which is IBM MQ Managed File Transfer for z/OS
Sample scenarios
You have IBM MQ for z/OS
QMGRPROD does not need to be changed, the default PID of 5665-MQ9 is used.
You have installed a new IBM MQ Advanced for z/OS Value Unit Edition queue manager, and want to
enable AMS
In CSQ6USGP, set QMGRPROD=ADVANCEDVUE and AMSPROD=ADVANCEDVUE; the 5655-AV1 PID is
used.
Related reference
IBM MQ license information
IBM MQ product identifiers and export information
Enabling VUE
VUE uses the same code as IBM MQ for z/OS. From IBM MQ for z/OS 9.1.3 there is no separate
enablement module to be installed.
If your enterprise has purchased VUE, you can enable it by setting the QMGRPROD attribute to VUE.
See product usage recording with IBM MQ for z/OS products for more information about how to set
QMGRPROD.
Procedure
1. If you want to make use of Advanced Message Security, then no installation is required.
For more information on enabling and configuring AMS, see Configuring Advanced Message Security
for z/OS.
What to do next
When you have installed the product, you should follow the instructions in the Program Directory for
activating it.
Related tasks
Configuring Managed File Transfer for z/OS
Planning for Managed File Transfer
Procedure
• Install IBM MQ for z/OS Value Unit Edition.
For more information, see “Installing and enabling IBM MQ for z/OS Value Unit Edition” on page 288.
• Install IBM MQ Advanced for z/OS capabilities if required.
For more information, see “Installing IBM MQ Advanced for z/OS” on page 289.
export IATEMPDIR=/var/tmp
Procedure
1. Download the Linux version of stand-alone IBM MQ Explorer.
Follow this link to Fix Central and select the Linux version of the download package.
2. Create an installation directory on the target machine.
3. Uncompress the tar.gz file that you downloaded, for example, 9.2.0.0-IBM-MQ-Explorer-
LinuxX64.tar.gz, to this directory.
4. Install IBM MQ Explorer.
You can install in any of the following ways:
• To install by using the installation wizard:
a. Log in as root and navigate to the directory where you uncompressed the files.
b. Run the command ./Setup.bin (as root) and follow the onscreen instructions.
c. Launch IBM MQ Explorer either by using the system menu entry, or by using the MQExplorer
executable file in the installation directory.
• To install silently, 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 performing 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. Launch the silent install 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.
Related tasks
Launching IBM MQ Explorer
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.2_installation', then run (as root) the
application named Change IBM MQ Explorer V9.2 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.2 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 292.
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 machine.
3. Uncompress the .zip file that you downloaded, for example, 9.2.0.0-IBM-MQ-Explorer-
Win64.zip, to this directory.
4. Install IBM MQ Explorer.
You can install in any of the following ways:
• To install by using the installation wizard:
a. Double-click Setup.exe and follow the onscreen instructions.
b. Launch IBM MQ Explorer either by using the Start Menu entry, or by using the MQExplorer
executable file in the installation directory.
• To install silently, 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 performing a silent install, 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. Launch the silent install by using the following command:
Setup.exe -f silent_install.resp
Setup.exe -i console
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.2_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.
Procedure
To install MQIPT, complete the following steps:
1. Download the MQIPT package for the platform you require from IBM Fix Central for IBM MQ. The
MQIPT packages for IBM MQ 9.2.x are available under the following names:
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.2.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 or 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
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.
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 Web sites are provided for convenience only and do not in
any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of
the materials for this IBM product and use of those Web sites 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.
300 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 301
302 Installing IBM MQ
IBM®
Part Number:
(1P) P/N: