Install the IBM MQ server silently on HP-UX
We can perform a non-interactive installation of the IBM MQ server using the swinstall command. A non-interactive installation is also known as a silent, or unattended installation.
Before you begin
Before you start the installation procedure, make sure that we have completed the necessary steps outlined in Preparing the system on HP-UX.
This topic describes the non-interactive installation of a server, using the swinstall program to select which components you want to install. The components and are listed in IBM MQ components and features.
Procedure
- Log in as root, or switch to the superuser using the su command.
- Set your current directory to the location of the installation file. The location might be the mount point of the CD, a network location, or a local file system directory.
- Accept the IBM MQ license agreement without an interactive prompt by entering the following command:
./mqlicense.sh -accept- Install IBM MQ using the swinstall command:
For example, to install all IBM MQ components, in a non-default location, as the first installation, enter the following command:
- If this installation is not the first installation on the system, you must add -x allow_multiple_versions=true to the swinstall command.
- Add the names of the components to install as parameters of the swinstall command. The installer automatically resolves any dependencies.
- Optional: Identify the installation location by adding ,l= MQ_INSTALLATION_PATH as a parameter of the swinstall command. 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.
swinstall -s /installation_file.v11 MQSERIES,l=/opt/customLocationTo perform a partial installation, providing a list of components, in the default location, as the second installation, enter the following command:swinstall -x allow_multiple_versions=true -s /installation_file.v11 MQSERIES.MQM-RUNTIME MQSERIES.MQM-BASE MQSERIES.MQM-SERVER/installation_file.v11 is the absolute path to the installation file. The path must begin with a / and end with the name of the installation file. The installation file has the extension .v11.- If this installation is not the first installation on the system, you must enter the following command to configure the installation: Note: MQ_INSTALLATION_PATH is the path where we have just installed IBM MQ and the character defining the path is a lower case L.
swconfig -x allow_multiple_versions=true MQSERIES,l=MQ_INSTALLATION_PATHIf we do not enter this command, the swlist command reports the installation as installed instead of configured. You must not use IBM MQ unless the installation is configured.
Example
The example shows the command to run a silent, full installation in the default location, using the alternative form of specifying the source depot using -x source_directory= instead of -s. Notice that all the language features are installed. Run a partial installation to install your chosen languages.
cd /downloads/WMQInstallFiles swinstall -v -x source_directory=$PWD/hpUxxxxx.v11 MQSERIES
What to do next
- If we 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_PATHwhere MQ_INSTALLATION_PATH represents the directory where IBM MQ is installed.
We can have only one primary installation on a system. If there is already a primary installation on the system, you must unset it before we can set another installation as the primary installation. For more information, see Change the primary installation.
- You might want to set up the environment to work with this installation. We 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.
- If you want to confirm that the installation was successful, we can verify your installation. See Verifying an IBM MQ installation on HP-UX, for more information.