DB2 Version 9.7 for Linux, UNIX, and Windows
Installing DB2 Servers > Response file installation > Response file installation of DB2 overview (Windows) >

Installing DB2 products using Microsoft Systems Management Server (SMS)

With Microsoft® Systems Management Server (SMS), you can install DB2® products across a network, and set up the installation from a central location. An SMS installation will minimize the amount of work users perform. This installation method is ideal if you want to roll out an installation based on the same setup on a large number of clients.

You must have at least SMS Version 2.0 installed and configured on your network for both your SMS server and SMS workstation. Refer to Microsoft's Systems Management Server Administrator's Guide for your platform for more details on how to:

When you are using SMS, you have control over which response file you will use. You can have several different installation options, resulting in several different response files. When you configure the SMS install package, you can specify which response file to use.

To install DB2 products using SMS:

  1. Import the DB2 install file into SMS
  2. Create the SMS package on the SMS server
  3. Distribute the DB2 installation package across your network
Importing the DB2 install file into SMS

Importing the DB2 install file into SMS is part of the larger task of installing DB2 products using SMS.

To set up a package through SMS, use the sample SMS package definition file and your customized response file and instance profile. The sample SMS file name is db2<product_abbreviation>.pdf. For example db2ese.pdf.

To import the DB2 installation files into SMS:

  1. Insert the DB2 product DVD into the drive.
  2. Start the Microsoft SMS Administrator. The Microsoft SMS Administrator Logon window opens.
  3. Enter your logon ID and password, and click OK. The Open SMS window opens.
  4. Select the Packages window type and click OK. The Packages window opens
  5. Select File-->New from the menu bar. The Package Properties window opens.
  6. Click the Import push button. The File Browser opens. Find the SMS package definition file located in x:\db2\Windows\samples, where x: represents the DVD drive. Typically, the pdf file needs to be customized before being used. You can copy the sample file from x:\db2\Windows\samples to local a local drive, modified the file, and import the updated file.
  7. Click OK.
Creating the SMS package on the SMS server

Creating the SMS package on the SMS server is part of the larger task of Installing DB2 products using SMS.

An SMS package is a bundle of information that you send from the SMS server to an SMS client. The package consists of a set of commands that can be run on the client workstation. These commands are for system maintenance, changing client configuration parameters, or installing software.

To create an SMS package:

  1. From the Package Properties window, click the Workstations push button. The Setup Package For Workstations window opens, with the imported response file and instance profile ready to use.
  2. In the Source Directory field, enter the name of the parent directory where you put the copied DB2 files. For example, x:\db2prods, where x: represents your DVD drive.
  3. Select the name of the product to install from the Workstation Command Lines window.
  4. If you changed and renamed the sample response file, click the Properties push button. The Command Line Properties window opens. Change the value of the Command Line parameter to match the new response file name and path. If you are using a response file that was created using the response file generator, ensure that all the instance profiles are located in the same drive and directory as the response file that you specify.
  5. Click OK.
  6. Click the Close push button.
  7. Click OK to close the opened windows. The Packages window shows the name of the new SMS package.
Distributing the DB2 installation package across your network

Distributing the DB2 installation package across your network is part of the larger task of Installing DB2 products using SMS.

Now that you have created the package, you have three options:

Options 1 and 2 are available to you, but for a large number of installations option 3 is recommended, which will be the focus for this step.

Once sent to the client workstation, the SMS package will tell the client workstation what code to execute, and the location, on the SMS server, of that code.

Distributing DB2 installation packages using Microsoft Systems Management Server (SMS)

This topic describes how to use the Microsoft Systems Management Server (SMS) to distribute the DB2 installation package.

To distribute the DB2 installation package using SMS, ensure that:

Note:
For information on how to set up your SMS environment, consult the documentation for that product.

To distribute the DB2 installation package using SMS, perform the following:

  1. Prepare the sample response file located on your DB2 install media for the type of DB2 installation that you want to perform. The sample response file is db2*.rsp and is located in the db2\windows\samples directory on your DB2 install media.
  2. On an SMS Distribution Point computer in your SMS environment, open the SMS Administrator Console. Click the Site Database drop down menu and right click Packages.
  3. Select New --> Package From Definition. The Create Package from Definition wizard opens.
  4. Click Next. The Package Definition window opens. Browse for the desired package file from the db2\windows\samples directory located on your DB2 install media. The name of this file is in the form db2*.pdf. Click Open.
  5. Select the appropriate package definition from the list displayed. Click Next. The Source Files window opens.
  6. Select the Create a compressed version of the source radio button, and click Next. The Source Directory window opens.
  7. Select the location type and directory of the DB2 install media, and click Next.
  8. Click Finish to complete the creation of the SMS package.
  9. From inside the SMS Administrator Console, open the Site Database drop down menu and select Packages --> All Tasks --> Distribute Software. The Distribute Software wizard opens.
  10. Click Next. The Package window opens.
  11. Select the Distribute an existing package radio button, and select the appropriate package from the list of packages shown. Click Next. The Distribute Points window opens. Select one or more distribution points for the package that you are planning to distribute.
  12. Click Next. The Advertise a Program window opens.
  13. Select the radio button indicating that you want to advertise the program to a collection, and select the program that you want to run from the list shown. Click Next. The Advertisement Target window opens.
  14. Select either an existing collection of computers or a choose to create a new collection of computers where you want to advertise and install the selected program. Click Next. The Advertisement Name window opens.
  15. Type in a name for the new advertisement and any comments that you want to add. Click Next. The Advertise to Subcollections window opens.
  16. Specify where you want the relevant DB2 program to be run relative to the hierarchical setup of the SMS computers in your SMS environment. Click Next. The Advertisement Schedule window opens.
  17. Select a date and time after which you want the DB2 program to be run on the collection of computers specified. You might also want to select a expiration time for the advertisement of the program. Click Next. The Assign Program window opens.
  18. If you want the DB2 program to be a mandatory requirement on the computers in the specified collection, specify a date and time after which the program will automatically run. Click Next.
  19. Click Finish to complete the Distribute Software wizard.

Configuring remote access to a server database

Once you have installed your DB2 database product, you can configure your product to access remote databases individually on each client workstation using the Configuration Assistant or the command line processor.

About this task

DB2 uses the CATALOG command to catalog remote database access information:

If you plan to roll out multiple copies of IBM data server clients with identical configurations, then you can create a batch file that will run your customized script. For example, consider the following sample batch file, myscript.bat, used to run the script file:

   @echo off
   cls
   db2cmd catmvs.bat

The DB2CMD command initializes the DB2 database environment and the catmvs.bat file calls the batch job of the same name. Here is a sample catalog script file, catmvs.bat, that could be used to add databases to a DB2 Connect Personal Edition workstation:

   db2 catalog tcpip node tcptst1 remote mvshost server 446
   db2 catalog database mvsdb at node tcptst1 authentication server
   db2 catalog dcs database mvsdb as mvs_locator
   db2 catalog system odbc data source mvsdb
   db2 terminate
   exit

You can either send these files to your client workstations manually or use SMS and have the script run automatically after the installation and reboot have completed.

Procedure

To create another SMS package with the catalog script, perform the following steps:

  1. Start the SMS Administrator. The Open SMS window opens.
  2. Select the Packages window type and click OK. The Packages window opens.
  3. Select File -> New from the menu bar. The Package Properties window opens.
  4. Enter a name for your new package. For example, batchpack.
  5. Enter a comment about the package. For example, Package for batch file.
  6. Click the Workstations push button. The Setup Package for Workstations window opens.
  7. Enter the source directory. Ensure that the source directory is a location that both the server and the client have access to, and that contains the batch file that is to be run from the client workstation.
  8. Under the Workstation Command Lines section, click New. The Command Line Properties window opens.
  9. Enter a command name.
  10. Enter the command line.
  11. Click the check box for the platforms that should be supported, under the Supported Platforms section.
  12. Click OK.
  13. Click Close.
  14. Click OK.

What to do next

Distribute this package in the same way as an installation package.

Configuring db2cli.ini for a response file installation

The db2cli.ini file is an ASCII file which initializes the DB2 CLI configuration. This file is included to help you get started and can be found in:

where Copy Name represents the DB2 copy name.

If you use any specific CLI optimization values or CLI parameters, you can use your customized db2cli.ini file for your IBM data server client workstations. To do so, copy your db2cli.ini file to the DB2 installation directory (for example c:\Program Files\IBM\SQLLIB) on each IBM data server client workstation.

[ Top of Page | Previous Page | Next Page | Contents ]