${SILENT:+"-n"}" "${TRC:+"-t $TRC"}`

${RCMD} $LOCALNFS/db2_install $INSTALL_PARAM rc=$?

fi

fi

return $rc

}

#main program

#parse command line options case $# in

0)syntax exit 1;;

*) while getopts "RDN:H:r:b:f:p:c:L:l:nt:i:" OPT do

case $OPT in

R)MOD="R$MOD" ;;

D)MOD="D$MOD" ;;

#NFS mount path, and host list N) NFSPATH=$OPTARG ;;

H) HOSTLIST=`echo "$OPTARG"sed 's/,/ /g'`;;

#command params for response file

r) RESFILE=$OPTARG ;;

#command params for db2_install b) INSTPATH=$OPTARG ;;

f) SAMP=$OPTARG ;; p) PROD=$OPTARG ;; c) NLPATH=$OPTARG ;; L) NLNAME=$OPTARG ;; l) LOGFILE=$OPTARG ;; n) SILENT="Y" ;;

t) TRC=$OPTARG ;;

\?) syntax && exit 1;; esac

done ;;

esac

chksyntax

#set variables BASEHOST=`hostname` LOCALNFS="/db2nfs.$$"

BMSG1="

Starting deployment on machine %s using %s...

\n"

BMSG2="

Messages returned from %s:\n ---------------

\n"

EMSG1="

---------------\n Deployment finished on machine %s.\n"

#go through the host list for host in $HOSTLIST

68DB2 Deployment Guide

Page 82
Image 82
IBM manual 68 DB2 Deployment Guide