Silently install and configure Rational Asset Manager V7.1.1.1, Installation Manager V1.3, DB2 V9.1, and embedded WebSphere Application Server V6.1

In an environment where security cannot be compromised, a UNIX system administrator typically disables xhost+. However, when xhost+ is disabled, you cannot use a graphical user interface (GUI) to complete installations. To work around this problem, you can use a silent installation and command line to install and configure IBM Rational Asset Manager V7.1.1.1, IBM Installation Manager V1.3, IBM DB2 V9.1, and an embedded IBM WebSphere Application Server V6.1.

Share:

Patchanee Petprayoon (patchanee@us.ibm.com), Customer Response Engineer, Unleash the Labs, IBM  

author photoPatchanee Petprayoon is a solution architect for the Energy and Utilities sector. She creates and promotes innovative solutions utilizing IBM Rational tools and processes for the Energy and Utilities sector and complex systems. She is an experienced solution architect specializing in software configuration and change management (SCM), software asset management and requirements management.



07 January 2010

This article contains four tasks:

Part 1: Silently install and configure Installation Manager V1.3

Part 2: Silently install Rational Asset Manager V7.1 with embedded WebSphere Application Server by using a response file

Part 3: Upgrade to Rational Asset Manager V7.1.1.1 with embedded WebSphere Application Server by using a response file

Part 4: Silently install and configure DB2 V9.1 on Linux® for Rational Asset Manager

Before you start

To complete these tasks, you must have the following resources and knowledge:

  • A UNIX platform environment in which the Installation Manager GUI is prohibited
  • Root access
  • Familiarity with creating installation response files. An example of the installation response files is included in this documentation.

Part 1: Silently install and configure Installation Manager V1.3

  1. Download Installation Manager from the IBM Web site.
  2. Extract the compressed file into an appropriate directory; for example, /tmp/IM
  3. Install Installation Manager. This will be installed in /opt/IBM
  4. From the directory where you extracted the installer, switch to the InstallerImage_platform subdirectory, and then run the following commands as root:
Listing 1. Commands to install Installation Manager
%  install --launcher.ini silent-install.ini -log <log file path and name>
	% ./install --launcher.ini silent-install.ini -log /tmp/IM_install.log
Figure 1. Installing Installation Manager
Installation commands shown in a window

Larger view of Figure 1.

Note: You do not have to view the installation log; however, if the installation fails, the logs might be helpful for troubleshooting.

  1. Verify that the /opt/IBM/InstallationManager directory and subdirectories exist by running the % /opt/IBM/InstallationManager ls –al command.
Figure 2. Verifying the directories by using the % /opt/IBM/InstallationManager ls –al command
A window with the verification results

Larger view of Figure 2.

  1. After you install Installation Manager, you can use it or the Installation Manager installer to silently install packages.

Tips:

  • If the silent installation fails, check /var/ibm/InstallationManager /logs for error messages.
  • A .java file is included with Installation Manager. If the installation fails, check at the permission of the .java file in the Installation Manager directory, subdirectories, and files that you extracted. The permission of the .java file should be set to 755. The installation might also fail if the executable bit is not turned on.

Part 2: Silently install and configure Rational Asset Manager V7.1 with embedded WebSphere Application Server V6.1 by using a response file

Before you begin:

To run a silent installation, Installation Manager uses a response file that contains responses to the questions that are typically asked in the GUI interface. You must create a response file; to do so, use the attached response files as references:

  1. RAM71Server_install.response.ini
  2. RAM7111_update.response.ini

Tip: If you are not sure what to place in a response file, launch the installation for the first time by using the command line. Then capture the output of your response file by using the –record option. When you record your response by using the –record option, you can be certain that your response file is error free.

Install the Rational Asset Manager 7.1 server by using silent installation:

  1. From the directory in which the Installation Manager is installed, run the following command as root:
Listing 2. Command to install Rational Asset Manager

Click to see code listing

Listing 2. Command to install Rational Asset Manager

cd  /opt/IBM/InstallationManager
% ./IBMIM --launcher.ini silent-install.ini –input /opt/IM/RAM71Server_install.response.ini –log /tmp/RAM71Server_install.log
  1. When the installation is complete, check your installation log to make sure that the installation is error free.
Listing 3. Example of a successful silent installation log file
<?xml version="1.0" encoding="UTF-8"?>
<result>
</result>

Part 3: Upgrade to Rational Asset Manager V7.1.1.1 with embedded WebSphere Application Server by using a response file

  1. Change the directory in which you will run Installation Manager to
cd /opt/IBM/InstallationManager/eclipse
  1. To upgrade to Rational Asset Manager V7.1.1.1, use the following command. Specify the appropriate response and log output file names.
Listing 4. Command to upgrade to Rational Asset Manager V7.1.1.1

Click to see code listing

Listing 4. Command to upgrade to Rational Asset Manager V7.1.1.1

./IBMIM --launcher.ini silent-install.ini -input /opt/IM/RAM7111Server_update.response.ini –log /tmp/RAM7111Server_update_install.log
Figure 3. Upgrading to Rational Asset Manager V7.1.1.1
The upgrade command in a window

Larger view of Figure 3.

  1. When the installation is complete, check your installation log to make sure that the installation is error free.
Listing 5. Example of a log file for a successful installation:
<?xml version="1.0" encoding="UTF-8"?>
<result>
</result>

Part 4: Silently install and configure DB2 V9.1 on Linux for Rational Asset Manager

  1. Extract the DB2 download file.
  2. Manually install DB2 by running the db2_install command. The db2_install command installs all of the components that you specified. When the installation is complete, you will see a default DB2 directory.
Figure 4. Example of a default DB2 directory
Screen capture of a DB2 directorySecond screen capture of a DB2 directory
  1. Create groups and user IDs for the DB2 database installation.

When you install DB2 by using the db2_install script, only the DB2 components are installed, so you must create groups and user IDs for DB2 installation. The complete details to set up a DB2 tools catalog are not covered in this article; to learn how to create and groups and user IDs for a DB2 database, read "Creating group and users IDs for a DB2 database installation (Linux and UNIX)."

To create the required groups and user IDs for DB2:

  1. Log in as a user with root authority.
  2. To create groups on Linux, type the following commands:
    • groupadd -g 999 db2iadm1
    • groupadd -g 998 db2fadm1
    • groupadd -g 997 dasadm1
  3. Create users for each group:
    • useradd -u 1004 -g db2iadm1 -m -d /home/db2inst1 db2inst1
    • useradd -u 1003 -g db2fadm1 -m -d /home/db2fenc1 db2fenc1
    • useradd -u 1002 -g dasadm1 -m -d /home/dasusr1 dasusr1

After you create groups and users, you can use the passwd user name parameter from the command line to set the password, as in this example:

Figure 5. Using the passwd parameter to set the password
Code to set the password
  1. Create a DB2 Administration Server.
    1. Log in as a user with root authority.
    2. Create the DB2 Adminstration Server by entering the following command:
Listing 6. Command to create the DB2 Administration Server
DB2DIR/instance/dascrt -u DASuser
% /opt/ibm/db2/V9.1/instance/dascrt –u dasusr1
  1. Create an instance by using db2icrt.
    1. Log in as a user with root authority.
    2. Type the db2icrt command. For example, on Linux or UNIX operating systems, you might type DB2DIR/instance/db2icrt -a AuthType -u FencedIDInstName

Note: If you use server authentication, your fenced user is db2fenc1, and your instance owning user is db2inst1, use the following command to create an instance on Linux system:

Listing 7. Command to create a DB2 Administration Server on Linux
	[root@1601-qsrv114-sw V9.1]# /opt/ibm/db/V9.1/instance/db2incrt –a server –u db2fenc1 db2inst1
Figure 6. Creating a DB2 Administration Server
Commands to create a DB2 Administration Server

Larger view of Figure 6.

  1. Set the SVCENAME parameter by typing update dbm cfg using svcename service_name . In this example, the service name is db2inst1:
Figure 7. Setting the SVCENAME parameter
Commands to set the SVCENAME parameter
  1. To make sure that the SVCENAME parameter is set accordingly, type db2 get dbm cfg. If the parameter is set correctly, you will see the following line in the db2 get dbm cfg output:
Figure 8. Results when the SVCENAME parameter is set correctly
Code indicating that the parameter is set

Note: If SVCENAME was set before, you can update your instance by using the db2iupdt db2inst1 command. You can use another instance besides db2inst1.

  1. Add your service to the /etc/services file by typing db2inst1 50000/tcp on the last line.
  2. In the DB2 command window, update the SVCENAME parameter to port 50000 and change the SVCENAME parameter to your port name by typing db2 update dbm cfg using SVCENAME 50000
Figure 9. Updating the SVCNAME parameter
Code to update the SVCNAME parameter

Larger view of Figure 9.

  1. Turn on the TCP listener for DB2 by running the db2set DB2COMM=TCPIP command.
Figure 10. Turning on the TCP listener for DB2
Code to turn on the TCP listener
  1. Stop and start DB2 by using the db2stop and db2start commands.
Figure 11. Stopping and starting DB2
Code to stop and start DB2
  1. Create a Rational Asset Manager database by running the dbcreate_populate.sh script.
Figure 12. Creating a Rational Asset Manager database
Code to create a Rational Asset Manager database

Larger view of Figure 12.

  1. Connect to the Rational Asset Manager database by using the db2 connect to database_name command.
Figure 13. Connecting to the Rational Asset Manager database
Code to connect to the database

Larger view of Figure 13.


Summary

The success of a silent installation of Rational Asset Manager depends on your response file. Typically, silent installation fails because the wrong information is in the response file. To avoid this problem, download the examples of the response files and use them as guides when you create response files. The location of your server repository location might be different than the location in the examples; update the location accordingly.

On DB2, the installation and configuration for Rational Asset Manager is not a long process. Before you install and configure Rational Asset Manager, complete the following steps:

  • Determine if the Linux operating system is running on a 32- or 64-bit mode.
  • Download DB2 and Rational Asset Manager.
  • Make sure that you have assigned sufficient disk space in the /opt directory; by default, IBM products are installed at /opt/IBM or /opt/ibm.

Frequently asked questions

  • Is my Linux system running in 64-bit mode or 32-bit mode?

Answer: From a command prompt, issue the uname –a command. The output should look similar to this output:

Figure 14. Finding which bit mode a Linux system is running
Output from the uname –a command

If i386, i586, or i686 are listed, the system is running in 32-bit mode. If x86_64 is listed, the system is running in 64-bit mode.

For detailed data about your Linux hardware, type either cat /proc/cpuinfo or lspci –vv.

Figure 15. Viewing details about your Linux system
Details of a Linux system
  • The db2_install command failed with the error "unable to find libstdc++5."

Answer: To install DB2 V9.1, libstdc++5 is required. It depends on the version of gcc that you have installed on your system. To make the db2_install script proceed, download the rpm package for libstdc++5. To find that package, in a search engine, enter "download rpm package for libstdc++5".

  • To install a package on your system, type rpm -ivh package_software-1.2.3.rpm
  • To verify a package, type rpm -Vvv package_software-1.2.3.rpm
  • To verify all installed packages on your system, type systemrpm –Va

Resources

Learn

Get products and technologies

Discuss

Comments

developerWorks: Sign in

Required fields are indicated with an asterisk (*).


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Information in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name. You may update your IBM account at any time.

All information submitted is secure.

Choose your display name



The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

Required fields are indicated with an asterisk (*).

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


All information submitted is secure.

Dig deeper into Rational software on developerWorks


static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational
ArticleID=458775
ArticleTitle=Silently install and configure Rational Asset Manager V7.1.1.1, Installation Manager V1.3, DB2 V9.1, and embedded WebSphere Application Server V6.1
publish-date=01072010