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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 199
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 198 199

Comentários a estes Manuais

Sem comentários