Red Hat SATELLITE 5.3.0 RELEASE NOTES Informations techniques Page 92

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 199
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 198 199

Commentaires sur ces manuels

Pas de commentaire