Red Hat SATELLITE 5.3.0 RELEASE NOTES Informacje Techniczne Strona 110

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 199
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 109
# This script will install and prepare a system to be a RHEL host
# 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
# The blade profile must be passed
if [[ $# -ne 1 ]]
then
echo 'Usage - $0 <HP Virtual Connect profile name>'
exit -1
else
pname=$1
fi
vcmcommand --vcmurl //${LOGIN}:${VCM_PW}@${VCM_IP} show server | grep ${pname} >
/dev/null 2>/dev/null
if [[ $? -ne 0 ]]
then
echo "HP Virtual Connect profile $pname not found!"
exit -2
fi
nblade=`vcmcommand --vcmurl //${LOGIN}:${VCM_PW}@${VCM_IP} show server | grep $
{pname} | awk '{print $3}'`
iloIP=`oacommand --oaurl //${LOGIN}:${OA_PW}@${OA_IP} show server info ${nblade} | grep
"IP Address" | awk '{print $3}'`
rawMAC=`vcmcommand --vcmurl //${LOGIN}:${VCM_PW}@${VCM_IP} show profile ${pname} |
grep public | awk '{print $5}'`
#implement a semaphore to verify name and IP are unique
while [[ -e /tmp/AvailNameIP ]] ; do sleep 1; done
touch /tmp/AvailNameIP
IPname=`/root/resources/GetAvailRhelh.sh | awk '{print $1}'`
IPnum=`/root/resources/GetAvailRhelh.sh | awk '{print $2}'`
# Create cobbler system entry
www.redhat.com 110
Przeglądanie stron 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 198 199

Komentarze do niniejszej Instrukcji

Brak uwag