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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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. |
| |||
| 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. > |
| ||||
| 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. |