Red Hat SATELLITE 5.3.0 RELEASE NOTES Informacje Techniczne Strona 133

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 199
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 132
echo "Usage: $0 <host for removal>\n"
exit -1
else
host=$1
fi
# Confirm that the parameter passed is an existing host
if [[ ! `sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} show hosts | grep ${host}` ]]
then
echo ${host} " is not an existing host!"
exit -2
fi
# Unmap any volumes that may be mapped to the specified host
for hostAlias in `sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} show hosts |grep $
{host} | awk '{print $2}'`
do
for mappedVol in `sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} show host-
maps ${hostAlias} | head -5 | tail -1 | awk '{print $1}'`
do
sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} unmap volume host ${hostAlias}
${mappedVol}
done
# Remove the HBAs of this host from the MSA storage array
# sacommand --saurl //${MSA_USER}:${MSA_PW}@${MSA_IP} delete host ${hostAlias}
done
133 www.redhat.com
Przeglądanie stron 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 198 199

Komentarze do niniejszej Instrukcji

Brak uwag