From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98154237314193.tru64-unix-managers.marc@archive.invalid> From: Hannes Visagie Date: Wed, 07 Feb 2001 10:28:47 +0000 To: tru64-unix-managers Subject: SUMMARY, RE: System wide cron for all cluster members ? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98154237314193 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