
# Wait for system to register with satellite indicating installation completion
echo -e "\nWaiting for system to register with satellite ...\n"
while [[ $initReg -ge `/root/resources/listRegSystems_infra.py | grep -c ${IPname}` ]]; do sleep 5;
done
echo -e "\nSatellite registration complete ...\n"
# Change system boot order to boot network last
echo -e "\nChanging system boot order to boot network last ...\n"
while [[ ! `ilocommand -i //${LOGIN}:${ILO_PW}@${iloIP} set
/system1/bootconfig1/bootsource5 bootorder=5 | grep status=0` ]]; do sleep 2; done
a) Similar to instRHELH.sh, the above script calls many of the same scripts. However,
GetAvailRhevh.sh is unique, returning the next available IP name and address that
are assigned to the RHEV-H host.
#!/bin/bash
# This script provides an available RHELH hostname and IP address.
# Source env vars
if [[ -x varDefs.sh ]] ; then
source varDefs.sh
elif [[ -x /root/varDefs.sh ]] ; then
source /root/varDefs.sh
elif [[ -x /root/resources/varDefs.sh ]] ; then
source /root/resources/varDefs.sh
elif [[ -x /root/distro/resources/varDefs.sh ]] ; then
source /root/distro/resources/varDefs.sh
else
echo "didn't find a varDefs.sh file"
fi
HOSTS=`host -l ${FQD} ${SAT_FQDN} |grep rhevh | cut -f1 -d'.' | sort`
if [[ ${HOSTS} ]]
then
# Some hosts exist
indx=1
thost=`printf "rhevh-%02d" ${indx}`
while [[ `echo ${HOSTS} | grep ${thost}` ]]
do
indx=`expr $indx + 1`
thost=`printf "rhevh-%02d" ${indx}`
done
fhost="${thost}.${FQD}"
else
# No existing hosts
fhost="rhevh-01.${FQD}"
fi
# Find an available IP
www.redhat.com 118
Komentarze do niniejszej Instrukcji