SUMMARY, RE: System wide cron for all cluster members ?

From: Hannes Visagie <visagi_h_at_mtn.co.ug>
Date: Wed, 07 Feb 2001 13:28:47 +0300

No replies, so I went for shell script alternative. Add this to the top of
your ksh shell script.

Then made all members cron the same. The script will only execute from the
first active member.

Hope it helps

---snip---

#--- Execute only from the first active member ---
FIRSTMEM=`/usr/sbin/clu_get_info -raw | grep UP | head -n 1 | cut -d':' -f3`
HOSTNAME=`hostname`

if [ $FIRSTMEM != $HOSTNAME ]; then
  echo "Please run this shell script from $FIRSTMEM"
  exit
fi

---end snip---

-----Original Message-----
From: gary.phipps_at_bt.com [mailto:gary.phipps_at_bt.com]
Sent: Wednesday, 07 February, 2001 1:25 PM
To: visagi_h_at_mtn.co.ug
Subject: RE: System wide cron for all cluster members ?
Importance: High


Hi Hannes.

Did you get any replies to this ?

We're in the similar position. There is a best practices -
http://tru64unix.compaq.com/faqs/publications/best_practices/BP_CRON/TITLE.H
TM

but this talks about editing the crontab every time caa stops and
starts......

Thanks,

--
Gary Phipps
Unix Systems Manager
BT Group Finance
ph: 0121 230 4204
e: gary.phipps_at_bt.com
-----Original Message-----
From: Hannes Visagie [mailto:visagi_h_at_mtn.co.ug]
Sent: Thursday, January 04, 2001 11:08
To: tru64-unix-managers_at_ornl.gov
Subject: System wide cron for all cluster members ?
Hi all
I have shell scripts to monitor disk space, backups, members up/down state,
etc, sending warnings/errors via email and GSM SMS to mobile phones.
I need a single cron for all members.  I do not want the errors being send
from all the members.
EG do not want: 
disk 90% full mem1
disk 90% full mem2
But:
disk 90% full cluster
Is there a easy way to accomplish this without CAA, or changing shell
scripts to be run from only one active member ?
What I have now is all crons the same. Shell scripts check if first UP
member, else exit.
Any other ideas ?
Thanks in advance.
Hannes
Received on Wed Feb 07 2001 - 10:39:51 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT