background image
<< Temp file | Please select the number for host >>
<< Temp file | Please select the number for host >>

Gathering list of subsystems

Oracle on the Linux OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D-40
Remote Mirroring of an Oracle Database Using Data Replicator Software
echo "\n\nEnter the first IP address of
the subsystem to add: \c"
read IP1_ADDR
echo "\nEnter the second IP address of
the subsystem to add: \c"
read IP2_ADDR
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/bin/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
subsystems...\n"
/usr/bin/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
subsystems...\c"
ANS=Y
rotate &
RPID=$!
/usr/bin/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="#? "