background image
<< Discover new arrays | Select the number for host >>
<< Discover new arrays | Select the number for host >>

Configured arrays

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
erm_setup.ksh
Remote Mirroring of an Oracle Database Using Data Replicator Software
B-9
echo "\n\nAdd the following IP addresses
to the Storage Manager config file on"
echo "this host: $IP1_ADDR and $IP2_ADDR
(Y or N)? \c"
read ANS2
if [[ $ANS2 == 'Y' ]]; then
echo "\nAdding $IP1_ADDR and
$IP2_ADDR to Storage Manager config..."
/usr/sbin/SMcli -A $IP1_ADDR $IP2_ADDR
echo "\nPress Enter to continue.\c"
read BLANK
else
echo "\nPlease re-enter the IP
addresses to add."
echo "\n\nPress Enter to continue.\c"
read BLANK
fi
break ;;
Print) clear
echo "\nGenerating list of configured
arrays...\n"
/usr/sbin/SMcli -d -v -S |awk -F'\t' '{
printf ("%-26s%-18s%-18s%s\n", $1,$2,$3,$4) }'
echo "\n\nPress Enter to continue.\c"
read BLANK
break ;;
Done) clear
echo "\nExiting and gathering list of
arrays...\c"
ANS=Y
rotate &
RPID=$!
/usr/sbin/SMcli -d -v -S |awk -F'\t'
'{print $1}' |uniq > ${TMP_FILE[1]}
kill -9 $RPID
echo "\n\nPress Enter to continue.\c"
read BLANK
break ;;
*) echo "\nInvalid option, please select again."
break ;;
esac
done
PS3="#? "
done
COUNTER=0
for X in `cat ${TMP_FILE[1]} |tr " " "~"`; do
ARRAY_TMP[$COUNTER]=`expr $X |tr "~" " "`
COUNTER=$((COUNTER+1))