* SUMMARY, RE: System wide cron for all cluster members ?
@ 2001-02-07 10:28 Hannes Visagie
0 siblings, 0 replies; only message in thread
From: Hannes Visagie @ 2001-02-07 10:28 UTC (permalink / raw)
To: tru64-unix-managers
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@bt.com [mailto:gary.phipps@bt.com]
Sent: Wednesday, 07 February, 2001 1:25 PM
To: visagi_h@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@bt.com
-----Original Message-----
From: Hannes Visagie [mailto:visagi_h@mtn.co.ug]
Sent: Thursday, January 04, 2001 11:08
To: tru64-unix-managers@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-02-07 10:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-07 10:28 SUMMARY, RE: System wide cron for all cluster members ? Hannes Visagie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox