IBM MQ 9.1 is EOS 30th September 2023.Click EOS notice for more details
Reverting to the previous maintenance level on Solaris
You can revert to a previous maintenance level of IBM® MQ by stopping IBM MQ and using pkgrm.
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.
About this task
When maintenance is applied, the original versions of replaced files are saved to allow the
updates to be removed if necessary. To restore the previous maintenance level, run
pkgrm command for all the packages that were updated by the maintenance package
as follows:
Procedure
Log in as a user in group mqm.
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.
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:
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
Log in as root, or switch to the superuser using the su command.
Run the pkgrm command to remove the latest maintenance update from the
system:
pkgrm packagename
packagename is the name of the package that you want to remove; for example,
mqm-07-R-00-01, where R is the number of the Release.
Details of the pkgrm command can be found in the Solaris documentation, or by using the man
pkgrm command.
If you do not know the name of the package to remove, try listing the packages that are
installed using the following command: pkginfo | grep mqm
Note: Ignore any error messages of the form shared pathname not removed.
What to do next
If you have installed an IBM MQ MQI client, and the
client was updated after installing the maintenance level that is being removed, you must
specifically update your IBM MQ MQI client installation
again, after the maintenance level has been removed