IBM SC34-4499-03 manual Profile

Models: SC34-4499-03

1 356
Download 356 pages 55.74 Kb
Page 242
Image 242

vThe Client.lst ®le you create containing the list of ®les passed toteamcpak. The ®rst line contains the package ®le by convention. The example also contains customized

installation ®les tcinstall( .ksh), TeamConnection tar ®les, and an installation script (tcinst.ksh).

/usr/teamc/tivoli/Client.pkf

/usr/teamc/tivoli/tcinstall.ksh

/tcinstall/v208/fullpak/aix4/tar/client.tar /tcinstall/v208/fullpak/aix4/tar/msgen_us.tar /tcinstall/v208/fullpak/tcinst.ksh

The following presents an example of a Tivoli installation script (tcinstall.ksh) that is copied to the target along with the tar ®les and the TeamConnection installation script (tcinst.ksh), then executed on each NODES entry.

#!/bin/ksh

#Clear existing log

#You can easily update these.....

INST_DIR=/usr/local/teamc

INST_TMP=${INST_DIR}/tcinstl.tmp INST_OUT=${INST_DIR}/tcinstl.out INST_ERR=${INST_DIR}/tcinstl.err INST_LOG=${INST_DIR}/tcinstl.log IMAGE_DIR=${INST_DIR}/images

rm -f $INST_ERR $INST_OUT $INST_LOG $INST_TMP >/dev/null 2>&1 mkdir -p ${IMAGE_DIR}

exec 1>${INST_ERR} exec 2>&1

exec 3>${INST_LOG}

# Install VisualAge TeamConnection using responsefile

print -u3 Starting VisualAge TeamConnection installation at ¢date¢ print -u3 User id= ¢id¢

print -u3 Input: $*

#Set up installation environment

#- assumes bourne or korn shell grep DB2_ROOTDIR ©/.profile©

if (($? != 0)) then

print -u3 Updating /.profile exec 4>>/.profile

cd /

print -u3 ©DB2 and TeamConnection settings© print -u4 ©DB2_ROOTDIR=/usr/lpp/ODI/DB24.0© print -u4 ©export DB2_ROOTDIR©

print -u4 ©PATH=$PATH:$DB2_ROOTDIR/cset/bin© print -u4 ©export PATH©

print -u4 ©LIBPATH=$LIBPATH:$DB2_ROOTDIR/common/lib© print -u4 ©export LIBPATH©

. /.profile

222User's Guide

Page 242
Image 242
IBM SC34-4499-03 manual Profile