nv-l

Re: Trap Processing

1999-12-16 12:46:20
Subject: Re: Trap Processing
From: James Shanks <James_Shanks AT TIVOLI DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Thu, 16 Dec 1999 12:46:20 -0500
In a ruleset. when a pre-defined node isn't available to do what you want, then
you can write your own script or program and use an Action node to have it
execute.   Here's an example from another user:

     Subject:      Re: Sending emails from the ruleset editor

     I would suggest using a script file to send your e-mail message.

     This is the line I usually use:

     echo "message" | mailx -s "subject" [email protected]

     Cheers,

     Alvin Kienming Liau
     IBM Worldwide Government Industry


You can use the $NVxxxx environment variables to say whatever you want in the
message.

OR you could do the same thing from an automatic action for a trap and not use a
 ruleset at all,
but there you would reference the variables as $x.  See the man page on
trapd.conf for  details on that.

James Shanks
Tivoli (NetView for UNIX) L3 Support



"Clay David (rti1dwc)" <rti1dwc AT ISMD.UPS DOT COM> on 12/16/99 12:11:14 PM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on NetView
      <NV-L AT UCSBVM.UCSB DOT EDU>

To:   NV-L AT UCSBVM.UCSB DOT EDU
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  Trap Processing




If I want to mail me an email message with all the trap information when a
specific trap occurs what would be the best way to do this? When defining
rulesets I don't see any template that will allow you to forward the trap
info to an email address.

Thanks,
Dave


<Prev in Thread] Current Thread [Next in Thread>