IBM DB2 manual Command line options, Following command line syntax is used for db2srvinstall

Models: DB2

1 298
Download 298 pages 30.19 Kb
Page 83
Image 83

do

#populate command and do basic testing to ensure ssh can work. RCMD="ssh $host"

${RCMD} hostname 2> /dev/nullegrep -i '^'"$host"'$' > /dev/null 2>&1 rc=$?

if [ $rc != 0 ]; then

#if ssh fails, target host is ignored. echo " ============================

Error:

Machine $host could not be connected successfully. Please check. It will be ignored in this deployment.

"

else

#mount NFS mountnfs rc=$?

if [ $rc != 0 ]; then continue

fi

#using various deployment method according to cmd line option echo " ============================"

case $MOD in

"R") MSG="response file"

printf "$BMSG1" $host "$MSG" printf "$BMSG2" $host resp_dply ;;

"D") MSG="db2_install"

printf "$BMSG1" $host "$MSG" printf "$BMSG2" $host db2install_dply ;;

esac

printf "$EMSG1" $host

#unmount NFS & remove temporary mount point umountnfs

${RCMD} rmdir $LOCALNFS

fi done

echo

echo "Deployment finished."

Command line options

The following command line syntax is used for db2srv_install:

db2srv_install -D-R -N <NFSpath> -H hostA,hostB,...,hostN -r response_file -b install_path -f NOTSAMP -p productShortName -c NLPACK_location -n -L language -l logfile -t tracefile

Chapter 2. DB2 server deployment 69

Page 83
Image 83
IBM DB2 manual Command line options, Following command line syntax is used for db2srvinstall