nv-l

Re: $NVATTR attribute

1999-05-25 13:03:43
Subject: Re: $NVATTR attribute
From: Jan Green <greenjan AT YAHOO DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Tue, 25 May 1999 10:03:43 -0700
Matt -

You shouldn't have any problems, I use NVATTR_3 when
passing Netfinity traps to Netview, I use rulesets,
pass the variable to a pager node and it pages me with
the text of the trap.

Perhaps $NVATTR_3 does not contain the info you
expect?

Run nvcdebug -d all then look at the format of the
trap in the nvcorrd.alog or nvcorrd.blog to be sure
that is the variable you want.

Other than that, AIX may have a problem passing a
string of characters as a variable to a script.

Jan



--- Matt Ashfield <mda AT UNB DOT CA> wrote:
> Hi all,
>
> I'm running some UPS monitoring software which
> integrates with NetView. I am receiving traps from
> it and am now trying to write a script which
> processses the trap. I am trying to send an email
> containing the description of the trap. I invoke the
> script when I receive a trap from the UPS, with the
> following action:
>
> /scripts/ups $NVATTR_3
>
> I have tried $NVATTR_3  but I just get an output of
> 3 instead of the description of the trap.
>
> /scripts/ups $NVC which should give the community
> name and $NVT which gives me the timestamp, and
> these works, so the functionality of the script
> works fine.
>
> Since it's a private enterprise mib, would that
> affect the functionality of $NVATTR_ or am I simply
> querying the incorrect value...
>
> I'm running NV 5.1.1, on aix 4.3.2...
>
> THanks
>
> Matt
> mda AT unb DOT ca
>
>
>
>

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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