Unix Technical Forum

HACMP notify on all events

This is a discussion on HACMP notify on all events within the AIX Operating System forums, part of the Unix Operating Systems category; --> I would like to get an email when events occur. I see that I can create a custom notify ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 11:39 PM
Nic
 
Posts: n/a
Default HACMP notify on all events

I would like to get an email when events occur. I see that I can
create a custom notify script and associate it to a perticular event.

Is there a method to associate it to ALL events? This way, any event
will notify. I would like to avoid, if possible, to go through each
event one by one.

Thanks for any ideas,

Nic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 11:40 PM
mmark7
 
Posts: n/a
Default Re: HACMP notify on all events

I think that only method is to add your custom event to be "post event" of
each cluster event.

r, m.

Uzytkownik "Nic" <nicflatterie@yahoo.com> napisal w wiadomosci
news:e63513af.0405270604.248b3d63@posting.google.c om...
> I would like to get an email when events occur. I see that I can
> create a custom notify script and associate it to a perticular event.
>
> Is there a method to associate it to ALL events? This way, any event
> will notify. I would like to avoid, if possible, to go through each
> event one by one.
>
> Thanks for any ideas,
>
> Nic.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 11:40 PM
Jesper James Jensen
 
Posts: n/a
Default Re: HACMP notify on all events


No 'smitty' way to add notification to all events at once. In order to not
forget events, use a script like the following snip (ksh):

NOTIFY=your_script
EVENTS=$(odmget HACMPevent | awk '/name/ {print $3}' | sed 's/"//g')
for E in $EVENTS
do
/usr/es/sbin/cluster/utilities/clchevent -O $E -n $NOTIFY
done

regards,
Jesper James
jjj at rotte dk

On Thu, 27 May 2004, Nic wrote:

> I would like to get an email when events occur. I see that I can
> create a custom notify script and associate it to a perticular event.
>
> Is there a method to associate it to ALL events? This way, any event
> will notify. I would like to avoid, if possible, to go through each
> event one by one.
>
> Thanks for any ideas,
>
> Nic.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 11:42 PM
Nic
 
Posts: n/a
Default Re: HACMP notify on all events

Jesper James Jensen <jjj@rotte.dk> wrote in message news:<Pine.A41.4.58L0.0406011410001.18974@rotte>.. .
> No 'smitty' way to add notification to all events at once. In order to not
> forget events, use a script like the following snip (ksh):
>
> NOTIFY=your_script
> EVENTS=$(odmget HACMPevent | awk '/name/ {print $3}' | sed 's/"//g')
> for E in $EVENTS
> do
> /usr/es/sbin/cluster/utilities/clchevent -O $E -n $NOTIFY
> done
>
> regards,
> Jesper James
> jjj at rotte dk
>


Great! That's what I was looking for!

Thanks, Nic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com