IBM SC34-4499-03 Personal Computer User Manual


 
v The Client.lst file you create containing the list of files passed to teamcpak. The first
line contains the package file by convention. The example also contains customized
installation files (tcinstall.ksh), TeamConnection tar files, 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 files 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
222 User’s Guide