FreeKB - Install IBM WebSphere web server plugin (plugin-cfg.xml) using imcl input command (response.xml)
Install IBM WebSphere web server plugin (plugin-cfg.xml) using imcl input command (response.xml)

Home > Search

The Installation Manager command line tool (imcl) has two different commands that can be used to install a product.

  • install
  • input

When using the install command, all of the parameters must be used on the command line. When using the input command, most of the parameters are put in an XML file. This article describes the installation procedure using the input command. Refer to this article to use the install command.

 


Prerequisites

If you have not installed IBM Installation Manager, install IBM Installation Manager

 


Create the XML file

Create an XML file. Typically, the name of the XML file is response.xml. However, the file name does not have to be response.xml. It can be named anything you want, as long as it's an XML file.

response.xml

 

Or, instead of manually creating the response.xml file, you can create the response file by issuing the following command, which will launch the Installation Manager GUI, so this must be done in a graphical environment. Follow the steps on installing WebSphere using the GUI.

/opt/IBM/InstallationManager/eclipse/IBMIM
-record
/path/to/response.xml
-skipInstall
/opt/IBM

 


remote repository vs. local repository

In the XML file, you will need to include the location of the repository that contains the installation files for the product. One option is to use the IBM HTTP URL that contains the installation files for a product. This is known as an "IBM service repostiory". Additionally, when repository location in your XML points to an IBM HTTP URL (e.g. IBM service repository), you will need to provide your IBM username and password to perform the install. One way to provide your username and password is by using the -prompt, which will prompt you to provide your username and password. Another option is to store your username in a secure storage file and to store your password in a master password file, and to then using the -secureStorageFile and -masterPasswordFile options on the command line.

<server>
  <repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.PLG.v90" />
</server>

 

Another option is to download the installation files from Fix Central or using the Packaging Utility, and to then specify the location of the downloaded installation files. This is known as a "local repository". An advantage to this approach is that there will be no need to provide your IBM username and password to perform the install, as the installation files reside on your server.

<server>
  <repository location="/tmp/plugin" />
</server>

 


Here is an example of a complete response.xml file. The listAvailablePackages command can be used to get the offering id of the packages to install.

<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
  <server>
    <repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.PLG.v90" />
  </server>

  <profile id='IBM HTTP Plugin V9.0' installLocation='/opt/IBM/WebSpere/Plugins'>
    <data key='user.import.profile' value='false'/>
    <data key='cic.selector.nl' value='en'/>
  </profile>

  <install modify='false'>
    <offering id='com.ibm.websphere.PLG.v90' 
      profile='IBM HTTP Plugin V9.0' 
      features='core.feature,ejbdeploy,thinclient,embeddablecontainer' installFixes='none'/>
    <offering id='com.ibm.java.jdk.v8'
      profile='IBM HTTP Plugin V9.0'
      features='com.ibm.sdk.8'/>
  </install>
</agent-input>

 


Perform the install

If repository location in your XML points to an IBM HTTP URL (e.g. IBM service repository), you will need to provide your IBM username and password to perform the install by using the -prompt or -secureStorageFile /path/to/secure_storage.txt and -masterPasswordFile /path/to/master_password.txt options on the command line.

/opt/IBM/InstallationManager/eclipse/tools/imcl
input
/opt/IBM/response.xml 
-acceptLicense 
-showProgress or -showVerboseProgress

 


Post installation

The websphere_installation_directory/logs/install/log.txt file can be reviewed to ensure the installation was successful.

The Installation Verification Tool can be used to ensure the installation was successful.

The listInstalledPackages command can be used to list installed packages.

The versionInfo.sh utility can be used to verify that the plugin was successfully installed.

~]# /opt/IBM/WebSphere/Plugin/bin/versionInfo.sh
. . .
Installed Product
---------------------------------------------------
Name              Web Server Plug-ins for IBM WebSphere Application Server 
Version           9.0.0.6
ID                PLG
. . .

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 29d8a in the box below so that we can be sure you are a human.




Comments