Red Hat SATELLITE 5.3.0 RELEASE NOTES Informações Técnicas Página 112

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 199
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 111
while [[ ! `ilocommand -i //${LOGIN}:${ILO_PW}@${iloIP} set /system1/bootconfig1/bootsource5
bootorder=5 | grep status=0` ]]; do sleep 2; done
a) In addition to using several of the *commands and addnfsexport (part of riccicmd),
described in Section 6.1.1 , other scripts and commands are called from within the
above script. The first of which is GetAvailRhelh.sh which returns the next available
IP name and address that can be used for a RHEL/KVM 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 rhelh | cut -f1 -d'.' | sort`
if [[ ${HOSTS} ]]
then
# Some hosts exist
indx=1
thost=`printf "rhelh-%02d" ${indx}`
while [[ `echo ${HOSTS} | grep ${thost}` ]]
do
indx=`expr $indx + 1`
thost=`printf "rhelh-%02d" ${indx}`
done
fhost="${thost}.${FQD}"
else
# No existing hosts
fhost="rhelh-01.${FQD}"
fi
# Find an available IP
# Assumes Satellite uses the lowest IP address
IP_DOMAIN=${SAT_IP%.*}
indx=1
tIP=`printf "%s.%d" ${IP_DOMAIN} ${indx}`
host ${tIP} > /dev/null 2>/dev/null
while [[ $? -eq 0 ]]
do
www.redhat.com 112
Vista de página 111
1 2 ... 107 108 109 110 111 112 113 114 115 116 117 ... 198 199

Comentários a estes Manuais

Sem comentários