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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 199
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 91
waits for the RHEVM to be configured
adds the cluster monitor to the RHEVM VM entry in the cluster configuration file
removes the crontab entry
#!/bin/sh
# This script is intended to be submitted as a cron job and will
# check to see if the RHEVM has been configured. Once configured,
# add the phrase to the cluster monitor and clean the cron
# Can be submitted using a line similar to:
# echo "*/15 * * * * /root/rhevm_mon.sh >/dev/null 2>/dev/null" >> /var/spool/cron/root
# 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
PATH=${PATH}:/usr/sbin
if [[ -x /usr/sbin/rhev-check.sh ]]
then
#check status of RHEVM
/usr/sbin/rhev-check.sh ${RHEVM_IP}
rstat=$?
if [[ ${rstat} -eq 0 ]]
then
# add RHEVM monitor to cluster
riccicmd -H ${MGMT1_NAME} --password ${MGMT1_PW} --genkeys cluster vm $
{RHEVM_NAME} set status_program="rhev-check.sh ${RHEVM_IP}"
# Don't need to check any longer, clear crontab
ctLines=`wc -l /var/spool/cron/root | awk '{print $1}'`
if [[ ${ctLines} -eq 1 ]]
then
crontab -r
else
sed -i '/rhev_mon/d' /var/spool/cron/root
fi
fi
www.redhat.com 92
Vista de página 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 198 199

Comentários a estes Manuais

Sem comentários