background image
<< TEST SMcli ACCESS | Gathering list of subsystems >>
<< TEST SMcli ACCESS | Gathering list of subsystems >>

Temp file

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The
linux_erm_setup.ksh
Script
Remote Mirroring of an Oracle Database Using Data Replicator Software
D-39
read BLANK
exit 2
fi
################################
# SMcli DISCOVERED SYSTEMS #
################################
ANS=N
echo "\n\nGathering subsystems known to this host....\c"
rotate &
RPID=$!
# The following calls SMcli to load a temp file with a list of
known subsystems.
/usr/bin/SMcli -d -v -S |awk '{print $1}' |uniq > ${TMP_FILE[1]}
kill -9 $RPID
echo "\n"
cat ${TMP_FILE[1]}
echo "Are all the subsystems to be used listed here (Y or N)? [
]\b\b\c"
read ANS
# This loop will prompt the user to discover new subsystems via
a menu option.
while [[ $ANS != 'Y' ]]; do
PS3="Enter SMcli discovery choice: "
clear
echo "\nAvailable options are:\n"
echo " Auto - Autodiscover all subsystems on network.
(May take awhile!)"
echo " Manual - Manually enter the IP address(es) of the
subsystem"
echo " Print - Display currently configured subsystems"
echo " Done - Done adding subsystem(s)\n"
select TEMP in Auto Manual Print Done
do
case $TEMP in
Auto) clear
echo "Auto discovering subsystems, please
wait...\c"
rotate &
RPID=$!
/usr/bin/SMcli -A
kill -9 $RPID
echo "\n\nPress Enter to continue.\c"
read BLANK
break ;;
Manual) clear