Applying maintenance level server updates on Windows
You can apply maintenance level server updates to IBM® MQ for Windows either interactively or silently.
Before you begin
If you are running on a server with multiple IBM MQ installations, you must identify the installation. Make
sure that the commands you enter run against the correct installation; see setmqenv.
Download the maintenance level update from Fix Central. For more information and download links, go
to Downloading IBM MQ 9.3 and select
the tab for the Long Term Support version that you
require.
If User Account Control (UAC) is enabled, the user who does the installation must have
Administrative authority. You must elevate any command or command prompt by selecting Run
as Administrator. If you do not, the error AMQ4353 is written in the
installation log.
Warning: Failing to run as administrator, when launching from the
start menu, might also result in an error message
stating:
Unable to access the specified device, path, or file. You may not have the proper permissions to access these items.
Procedure
Log on as an Administrator.
Stop all applications using the IBM MQ
installation.
If you use the Managed File Transfer (MFT) component, ensure that
any MFT agents have finished all of the file transfers that they were engaged in. There should be no
incomplete transfers associated with the agents, and their SYSTEM.FTE.STATE queues should contain no
messages.
Stop the mqweb server that is associated with the IBM MQ installation:
Check whether the mqweb server is running by entering the following command:
dspmqweb status
Stop the mqweb server by entering the following command:
endmqweb
End all the activity of queue managers associated with the IBM MQ installation.
Run the dspmq command to list the state of all the queue managers on the
system.
Run either of the following commands from the installation that you are updating:
dspmq -o installation -o status
dspmq -a
dspmq -o installation -o status displays the installation name and status of
queue managers associated with all installations of IBM MQ.
dspmq -a displays the status of active queue managers associated with the
installation from which the command is run.
Use the MQSC command DISPLAY LSSTATUS to list the status of
listeners associated with a queue manager, as shown in the following example:
echo DISPLAY LSSTATUS(*) STATUS | runmqsc QmgrName
Run the endmqm command to stop each running queue manager associated with
this installation.
The endmqm command informs an application that the queue manager
it is connected to is stopping; see Stopping a queue manager.
For the maintenance to proceed, applications must respond to an endmqm command
by disconnecting from the queue manager and releasing any IBM MQ libraries they have loaded. If they do not, you must find
another way to force applications to release IBM MQ
resources, such as by stopping the applications.
You must also stop applications that are using the client libraries that are part of the
installation. Client applications might be connected to a different queue manager, running a
different installation of IBM MQ. The application is not
informed about queue managers in the current installation being shut down.
Any applications that continue to have IBM MQ shared
libraries from the installation loaded prevent you applying IBM MQ maintenance. An application might disconnect from a queue
manager, or be forcibly disconnected, but keep an IBM MQ
shared library loaded.
Stop any listeners associated with the queue managers, using the command:
endmqlsr -m QMgrName
Stop the IBM MQ service for the installation.
Right-click the IBM MQ icon
in the taskbar > click Stop IBM MQ.
Load and apply the maintenance files for server installations:
Interactively:
Open the folder where the maintenance package has been extracted.
Right-click on the maintenance program and select Run as administrator to
start the loading process.
Choose your installation language, and click OK.
Continue to follow the instructions on screen.
If you choose to load the files without
applying them to an installation, you can apply the files later, as described in step 7
Silently:
Open the folder where the maintenance package has been extracted.
Modify the response file, silent_install.resp. For details on the
properties you can specify in the response file, see Table 1.
Table 1. Properties used to install or uninstall a maintenance update
Property
Value
Description
MQPLOG
path\file_name
Pass a valid path to specify the log to be used during
installation/uninstallation, for example MQPLOG=C:\TEMP\UPDATEINSTALL.LOG
If MQPLOG is not specified (which is the case if you start maintenance by
clicking the Apply fix pack n.n.n.n icon in the IBM MQ program group) the log name used by default will be
amqicsdn.txt in your TEMP directory ( %TEMP% ).
MQPINSTALLATIONNAME
Installation name
The name of the installation to maintain. If there is only one installation
(of any level) on the machine, this argument can be safely omitted.
If there is more than one
installation on the machine, amqicsdn.exe checks the value of
MQPINSTALLATIONNAME. If one is not supplied, or the one that is supplied is
unsuitable, then a GUI selection box appears. This selection box provides a list of installations to
which this maintenance level update is applicable. If none is applicable, then
amqicsdn.exe issues error message AMQ4781 and ends.
MQPBACKUPPATH
path
Specifies the directory to back up into during installation, for example
MQPBACKUPPATH=C:\BACKUP
The directory, and any intermediate directories, you specify must already exist. If any one of
the directories does not already exist, the installation fails.
MQPREBOOT
0|1
Specifies what to do when a reboot is required, for example
MQPREBOOT=1.
If no value is supplied, you are prompted for what to do next.
If MQPREBOOT is set to 0, a reboot is suppressed
If MQPREBOOT is set to 1, the reboots go ahead without prompting.
MQPINUSEOK
0|1
Specifies whether to continue even if a file is found to be currently locked
by another application. If you choose to continue even if a file is locked by another application,
then you must reboot to complete fix pack installation.
If no value is supplied, or if MQPINUSEOK is set to 0, the
installation fails if files are found to be in use by other applications.
If MQPINUSEOK is set to 1, the installation is deferred until
you reboot.
Open an elevated command prompt in the directory where the maintenance program was extracted.
Start the silent loading by entering the following command:
executableName -f responseFile
where:
executableName is the name of the maintenance package. For example, for
IBM MQ 9.0.0 Fix Pack 1:
9.0.0-IBM-MQ-Windows-FP0001.exe.
responseFile is the full path and name of the response file.
Optional:
Apply the maintenance to other server installations on the system:
Interactively:
From the Windows start menu, select
Start> Programs > IBM MQ > Apply Fix Pack
V.R.M.L.
where
V is the version number
R is the release number
M is the modification number
L is the level of modification
Continue to follow the instructions on screen.
Silently:
Open an elevated command prompt and navigate to the directory where the maintenance program was
loaded. By default, the path is C:\Program Files (x86)\IBM\source\WebSphere MQ
V.R.M.L
where
V is the version number
R is the release number
M is the modification number
L is the level of modification
Enter the following command:
amqicsdn MQPINSTALLATIONNAME=
name MQPSILENT=1
where
name is the name of the installation that you want to apply maintenance to.
You can add other properties to the command, as listed in Table 1.
Optional:
Uninstall the maintenance package files from your machine.
After installing the maintenance level update and applying the maintenance to all the server
installations that you want to update, you can either uninstall the maintenance download files from
your machine or leave them installed for future use.
Note: Uninstalling these files does NOT remove
them from the installations to which you have already applied the maintenance. If that is what you
intend, you should instead follow the instructions in Removing maintenance level server updates on Windows.
If
you add any installable features at a later time, you must reapply the maintenance to update the
added feature(s).
Interactively:
To uninstall the maintenance download files, on the Control Panel... Programs and
Features panel, select, for example, IBM MQ (fix pack 9.1.0.x)
files.
Click Uninstall.
Silently:
To
silently remove the maintenance download files, enter a command from an admin command prompt, as
shown in the following example:
fixpack_files_installdir is the location in which you chose to install the
files. For IBM MQ 9.3.0 Fix Pack 1, for example, this might
be: C:\Program Files\IBM\source\MQ 9.3.0.1.
V.R.M.F is the fix pack number. For IBM MQ 9.3.0 Fix Pack 1, for example, this is 9.3.0.1.
Note: The maintenance download files contain a JRE, so if you chose not to install a JRE in your
IBM MQ installation for local policy reasons, you might
want to uninstall these files as soon as you have finished applying the update to your
installation(s).
What to do next
On a server installation, you must restart the IBM MQ
taskbar application manually after the maintenance application completes.
The IBM MQ service is restarted automatically on the
server, but the taskbar application is not restarted for any logged in sessions. Start the taskbar
application in one of three ways:
Start the taskbar application manually from the start menu.