How trap variables are refereneced depends upon where you are referencing them.
In trapd.conf they are refereneced as $1, $2, etc. Please read the man page
In a ruleset action they are referenced as $NVATTR_1, $NVATTR_2, etc.
Tivoli (NetView for UNIX) L3 Support
Gord Michaels <gord_michaels AT HOTMAIL DOT COM> on 08/04/99 12:02:02 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: Re: Viewing trap variables...
Thankyou for the responses but one more question...
I thought that in Netview, the variable bindings were referneced as
nvattr_1, nvattr_2, etc.
But it seems from what you are saying, variable binding 1 - $1, variable
binding 2 = $2, etc. Is this the way you reference variable bindings??
>From: "Owens, Blaine C" <bowens AT EASTMAN DOT COM>
>Reply-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
>Subject: Re: Viewing trap variables...
>Date: Wed, 4 Aug 1999 11:15:39 -0400
>In Event Customization add (or define) "$*" to the "Event Log Message". $*
>will display both the names of the variable bindings and the values. You
>correct about the , , etc. Once you see exactly what you are getting
>in the traps you can go back and redefine to display the verbage and
>variable bindings you want to display or act upon ($1, $2, etc.).
>Eastman Chemical Company
>Phone - (423)-229-3579
>Fax - (423)-229-1188
>bowens AT eastman DOT com
> > -----Original Message-----
> > From: Gord Michaels [mailto:gord_michaels AT HOTMAIL DOT COM]
> > Sent: Wednesday, August 04, 1999 6:30 AM
> > To: NV-L AT UCSBVM.UCSB DOT EDU
> > Subject: Viewing trap variables...
> > Hello All.
> > What is the best way in which to view all of the info sent with a trap?
> > I have been looking at the trapd.log file but that does not seem to have
> > the
> > variable bindings listed.
> > Also, when a trap is received, are the variable bindings are the items
> > listed as , , etc. ??
> > And finally, from what I understand, these bindings are nothing more
> > MIB variables from the device sending the trap??
> > Any info appreciated.
> > Gord.
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com
Get Your Private, Free Email at http://www.hotmail.com