+

Search Tips | Advanced Search

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

  1. Log in as root, or switch to the superuser using the su command.
  2. 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.
  3. Accept the IBM MQ license agreement without an interactive prompt by entering the following command:
    ./mqlicense.sh -accept
    
  4. Install IBM MQ using the swinstall command:
    1. If this installation is not the first installation on the system, you must add -x allow_multiple_versions=true to the swinstall command.
    2. Add the names of the components to install as parameters of the swinstall command. The installer automatically resolves any dependencies.
    3. 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.
    For example, to install all IBM MQ components, in a non-default location, as the first installation, enter the following command:
    swinstall -s /installation_file.v11 MQSERIES,l=/opt/customLocation
    
    To 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.
  5. 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_PATH
    

    If 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