Command line options – IBM Data Server DB2 User Manual
Page 83
Chapter 2. DB2 server deployment
69
do
# populate command and do basic testing to ensure ssh can work.
RCMD="ssh $host"
${RCMD} hostname 2> /dev/null|egrep -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
install_path -f NOTSAMP -p productShortName -c NLPACK_location -n -L language
-l logfile -t tracefile