nv-l
[Top] [All Lists]

Re: Problem for represent meaningful information in action box of

To: nv-l@lists.tivoli.com
Subject: Re: Problem for represent meaningful information in action box of
From: James Shanks <James_Shanks@TIVOLI.COM>
Date: Tue, 10 Aug 1999 09:16:13 -0400
Perhaps I do not understand, but no programming is needed here.  And you are
asking about APIs which do not exist.

The MIB is your key to understanding what the trap values mean if you have no
other doc.  Most MIBs contain comments when they describe objects.  I would read
the MIB and look for the TRAP-TYPE clause which defines each trap.
If you cannot figure out what the MIB says, then try running mib2trap on the MIB
to see whether it will generate addtrap commands to add these traps to NetView
with the information that is given.  Then they will be added and formatted.  You
can then change the formatting if you wish with xnmtrap.

You should also load the MIB with xnmloadmib.  If you load the MIB, then trapd
will display the MIB object name and the value if you make the log message say
simply "$*" , which means to display all the variables.

But that is why there is no programming here. You simply use xnmtrap to add or
modify this trap in trapd.conf and make it say what you think it should say.  If
the third variable, for example, contains some meaningful value, like the number
of a "down" interface, then you could customize the event log message to read
"Interface $3 is down".   It's that easy.

There is plenty of information on Configuring Events in this manner in the
NetView Administrator's Guide.I

James Shanks
Tivoli (NetView for UNIX) L3 Support



"Sin Wai Yee, Maggie" <mwysin@KCRC.COM> on 08/09/99 11:37:23 PM

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

To:   NV-L@UCSBVM.UCSB.EDU
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  Re: Problem for represent meaningful information in action box of
      ruleset




The relative MIB I have been loaded otherwise the number can't be
recognized.
The number is exactly the mib value, but this mib value is meaningless for
me.

Check the view of point,
I have the Generic and the Specific Number, instead of displaying a sequence
of number for Generic or Specific.
Is there have other method or ovAPI to display the relative EVENT Name for
the specific event ?

Thanks for your previous comment.

With the limited budget, what I can do is try my best. Therefore I really
want to have more information about ovAPI.

> -----Original Message-----
> From: James Shanks [SMTP:James_Shanks@TIVOLI.COM]
> Sent: Monday, August 09, 1999 8:49 PM
> To:   NV-L@UCSBVM.ucsb.edu
> Subject:      Re: Problem for represent meaningful information in action
> box of ruleset
>
> I don't know what the variables in this particular trap from an 8260 mean
> but
> you should have received documentation with the 8260 that will tell you.
> An
> alternative is to go out to the http://www.networking.ibm.com web site,
> find the
> section on the 8260 and see if there is a MIB you can download or more
> documentation there.
>
> It is up to each agent what to put in a trap.  There is no universal
> standard.
> So each vendor must define, either in a MIB or elsewhere, what his traps
> mean.
>
> You must also understand at least this much, that it is unlikely that you
> will
> be able to write one simple ruleset to cover all cases of what you want to
> do.
> It is far more likely that you will have to write several different
> rulesets
> (one for certain NetView traps, one for IBM 8260s, one for Cisco routers,
> and so
> on ) or else one more complicated ruleset, using multiple Trap Settings,
> and
> possibly multiple actions,  to handle all conditions.
>
> James Shanks
> Tivoli (NetView for UNIX) L3 Support
>
>
>
> "Sin Wai Yee, Maggie" <mwysin@KCRC.COM> on 08/08/99 10:10:58 PM
>
> Please respond to Discussion of IBM NetView and POLYCENTER Manager on
> NetView
>       <NV-L@UCSBVM.UCSB.EDU>
>
> To:   NV-L@UCSBVM.UCSB.EDU
> cc:    (bcc: James Shanks/Tivoli Systems)
> Subject:  Re: Problem for represent meaningful information in action box
> of
>       rul eset
>
>
>
>
> My action has defined like that
>
> echo `date +"%r %d %h" ` $NVA $NV_ATTR1 $NV_ATTR2 $NV_ATTR3 $NV_ATTR4
> $NV_ATTR4 | mail abc@xyz.com
>
> And here is some of the result :
>
> 09:32:36 AM 09 Aug Device1 IBM 8250 - Module 4 Down ( This trap generated
> by
> NETMON) - meaingful OK
>
> 09:29:49 AM 09 Aug Device1 3 3 2 7 A    ( This trap generated by IBM 8260
> )
> -meaningless
>
> For the second examples, all the attribute provided can not give me
> meaningful information. I really can't specify each action for each type
> of
> this specific events. But , the event browser of control desk can
> recongize
> this type of event - because it allow me to define each event in the event
> configuration. ( i have tried to define the action within event
> configuation
> for each event  - but in here no any ruleset can be implied - it will take
> the action immediately after receiving the trap ).
>
> Is there any solution for the case like second examples ?
>
> Thanks
>
>
>
> > -----Original Message-----
> > From: James Shanks [SMTP:James_Shanks@TIVOLI.COM]
> > Sent: Friday, August 06, 1999 8:25 PM
> > To:   NV-L@UCSBVM.ucsb.edu
> > Subject:      Re: Problem for represent meaningful information in action
> > box of rul eset
> >
> > Maggie -
> >
> > Show us your action command so we can examine it.
> >
> > $NVG is the generic trap type, probably a  number "6'.  $NVS is the the
> > specific
> > trap number.  So you would expect these to be numeric.  As for the MIB
> > number,
> > you'll have to explain what you are doing and why you expected anything
> > else.
> >
> > Did you want to send in the mail what you see in the event display?
> Then
> > you
> > must use xnmtrap to see how the event log message is formatted and send
> > something similar to that.  For example, if the event log message says
> > "$3" then
> > you must send  "$NVATTR_3" in your mail.  If it says "$4 interface is
> $5"
> > then
> > you must send " $NVATTR_4 interface is $NVATTR_5".
> >
> > Do you understand?
> >
> > James Shanks
> > Tivoli (NetView for UNIX) L3 Support
> >
> >
> >
> > "Sin Wai Yee, Maggie" <mwysin@KCRC.COM> on 08/06/99 12:27:20 AM
> >
> > Please respond to Discussion of IBM NetView and POLYCENTER Manager on
> > NetView
> >       <NV-L@UCSBVM.UCSB.EDU>
> >
> > To:   NV-L@UCSBVM.UCSB.EDU
> > cc:    (bcc: James Shanks/Tivoli Systems)
> > Subject:  Problem for represent meaningful information in action box of
> > rul
> >       eset
> >
> >
> >
> >
> >
> > I have configured ruleset in order to forward some events to mail.
> >
> > What I have received - is a sequence no - meaningless for me. ($NVG,
> $NVS
> > -
> > all are in number format ).
> > Furthermore, our network device 's mib parameter are also in number
> > format.
> >
> > -> Very meaningless message.
> >
> > Do all of you have any idea for that ?
> >
> > 1) is there any variable that I can used.
> > or
> > 2) is there any ovAPI can help me in this case ?
> >
> >
> >


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

Archive operated by Skills 1st Ltd

See also: The NetView Web