Red Hat SATELLITE 5.3.0 RELEASE NOTES Información técnica Pagina 133

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 199
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 198 199

Comentarios a estos manuales

Sin comentarios