FreeKB - Install IBM WebSphere using imcl input command (response.xml)
Install IBM WebSphere using imcl input command (response.xml)

Home > Search


If you have not yet installed IBMs Installation Manager, check out our article on installing Installation Manager.

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 and then the XML file is used on the command line. 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

 


-prompt vs. -secureStorageFile and -masterPasswordFile

When installing or updating an IBM product, you will need to provide your IBM username and password. 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 storage your username in a secure storage file and to storage your password in a master password file, and to then using the -secureStorageFile and -masterPasswordFile options on the command line.

 


IBM repository vs. local repository

There are two types of repositories. One is known as an "IBM service repostiory" and the other is known as a "local repository". An IBM service repository is an HTTP URL that contains the installation files for a product, such as http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90. A local repository is where you download the installation files from Fix Central or using the Packaging Utility.

If you are going to be performing the install using an IBM service repository, use the listAvailablePackages command to list the available packages in the service repository.

 


Perform the install

response.xml is a file that contains the XML needed to install a product. 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. Create the response file. These examples are based off of a Linux system.

touch /opt/IBM/response.xml

 

Add the following text to the response.xml file. Notice <repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v90" /> in this example. This means that version 90 of WebSphere is being installed from IBM's HTTP repository. Another option would be to download the product install files from Fix Central. If you were to do this and the install files were stored at /tmp/was on your server, then you would use <repository location="/tmp/was" />.

In this example, version 9 of the application server is installed, along with Java JDK.

<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
  <variables>
    <variable name='sharedLocation' value='/opt/IBM/IMShared'/>
  </variables>

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

  <profile id='IBM WebSphere Application Server V9.0' installLocation='/opt/IBM/WebSpere/AppServer'>
    <data key='user.import.profile' value='false'/>
    <data key='cic.selector.nl' value='en'/>
  </profile>

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

 

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

 

Install the application server.

/opt/IBM/InstallationManager/eclipse/tools/imcl
input
/opt/IBM/response.xml 
-acceptLicense 
-showProgress or -showVerboseProgress
-prompt or -secureStorageFile /path/to/secure_storage.txt and -masterPasswordFile /path/to/master_password.txt

 


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 application server was successfully installed.

~]# /opt/IBM/WebSphere/AppServer/bin/versionInfo.sh
. . .
Installed Product
---------------------------------------------------
Name              IBM WebSphere Application Server
Version           9.0.0.5
ID                Base
. . .

After the application server is installed, you will create a profile.



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 fb7ee in the box below so that we can be sure you are a human.




Comments