Reverting to the previous maintenance level on AIX
We can revert to a previous maintenance level by using the System Management Interface Tool (SMIT).
Before starting
- If we are running on a server with multiple IBM MQ installations, we must identify the installation. Make sure that the commands you enter run against the correct installation; see setmqenv.
About this task
We can back out maintenance updates (fix packs) and restore the system to the previous maintenance or installation level, for any component of IBM MQ for AIX that is in the APPLIED state.We can apply and remove maintenance from a IBM MQ MQI client that is not installed on the same server as a queue manager. You do not have to stop any queue managers or logon as administrator. Because you do not have to stop any queue managers, do not do steps 1 to 3 in the following maintenance procedure.
Use the following command to display the current state of the IBM MQ for AIX filesets:lslpp [ -R usil ] -l "mqm*"To back out a maintenance update, as the user root, issue the command:installp [ -R usil ] -r "mqm*"Otherwise:
Procedure
- Log in as a user in group mqm.
- Stop all applications using the IBM MQ installation.
If we 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 we are updating:
dspmq -o installation -o status dspmq -adspmq -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, we must find another way to force applications to release IBM MQ resources, such as by stopping the applications.
We must also stop applications that are using the client libraries that are part of the installation. Client applications might be connected to a different queue manager, running a different installation of IBM MQ. The application is not informed about queue managers in the current installation being shut down.
Any applications that continue to have IBM MQ shared libraries from the installation loaded prevent you applying IBM MQ maintenance. An application might disconnect from a queue manager, or be forcibly disconnected, but keep an IBM MQ shared library loaded.
Note: Applying maintenance level updates to multi-instance queue managers on UNIX and Linux describes how to apply maintenance to a multi-instance queue manager. A multi-instance queue manager can continue to run on one server, while maintenance is applied to another server.- 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.
- Open the appropriate smit panel using this sequence:
Software Installation and Maintenance Software Maintenance and Utilities Reject Applied Software Updates (Use Previous Version)Alternatively, use a fast path command, smit[ty] install_update.- Complete the SOFTWARE name field.
Enter mqm* to restore all applicable file set updates to your installation.
Note: If an option to restore only selected file set updates for IBM MQ for AIX appears, avoid it. The option results in all applicable file set updates for the maintenance update being restored.- Click Enter to reject the current maintenance level and reinstate the previous maintenance or installation level.
- Accept displayed default values for all other fields
- Dismiss the confirmation message
The reject process starts. While the command runs, it displays progress messages terminating with an Install Summary table.
- Check the table to see which components of IBM MQ for AIX have been rejected
Parent topic: Applying and removing maintenance on UNIX and Linux
Related tasks
Related information