IBM DB2 Computer Accessories User Manual


 
130 DB2 Deployment Guide
Figure 3-44 Completion of Distribute Software Wizard
IBM data server client deployment on Linux and UNIX
A common method for deploying the IBM data server client is through use of a
script, which is executed on the target machine. This is referred to as push
deployment and has been discussed in 2.2, “DB2 server deployment methods”
on page 42. The push deployment involves installation initiated from a central
point where it establishes connection to the deployment targets and does not
require any user action. The pull deployment can utilize third party software or an
automated service such as rshd, sshd, or other such services.
Example 3-2 demonstrates push deployment. This example takes in a parameter
that is a target machine where DB2 is to be installed and performs a single
installation. A given script can be further modified to include a for loop to list the
number of target workstations, or be placed with in a loop of another script.
Example 3-2 Push deployment script
#! /bin/sh
ssh -l root "$1" "mkdir /DB2TEMPS; # Makes directory on the target
# Mounts nfs to newly created directory
mount -t nfs -o ro mensa:/softwares/DB2/Client /DB2TEMPS;
db2setup -u db2client.rsp; # Install db2 using response file
umount /DB2TEMPS; rmdir /DB2TEMPS" # Unmount the nfs and remove dir