Non-interactive installation of IBM MQ server on HP-UX

You can perform a non-interactive installation of IBM® MQ 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 you have completed the necessary steps outlined in Preparing the system.

About this task

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 Choosing what to install.

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 you have just installed IBM MQ and the character defining the path is a lowercase L.
    
    swconfig -x allow_multiple_versions=true MQSERIES,l=MQ_INSTALLATION_PATH
    

    If you 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 you 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_PATH
    

    where MQ_INSTALLATION_PATH represents the directory where IBM MQ is installed.

    You can have only one primary installation on a system. If there is already a primary installation on the system, you must unset it before you can set another installation as the primary installation. For more information, see Changing the primary installation.

  • You might want to set up the environment to work with this installation. You 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, you can verify your installation. See Verifying a server installation, for more information.