nv-l

RE: [nv-l] tecad_nv6k CDS file

2003-01-21 18:40:39
Subject: RE: [nv-l] tecad_nv6k CDS file
From: "Karl Prinelle" <karl.prinelle AT elyzium.co DOT uk>
To: <nv-l AT lists.tivoli DOT com>
Date: Tue, 21 Jan 2003 17:57:46 -0000
That's certainly where the problem was - fixed it now (well, it works
anyway!).
I found initially it was my test trap from nvsnmptrap that wasn't right
and the variables didn't match the constants in the ATTR statements
which themselves came from the .oid file.

But then I found while my test trap was working, the actual application
event still wasn't.  I did start to see a mapping to "VB_1", "VB_2" etc
variables for my data (not sure why I didn't see that before).  

I changed the ATTR statements to refer to these VB_x variables rather
that the constants I had put in the .oid file (the VB_x has the same
number of the variable in the trap definition so they must be related -
i.e. 1.3.6.1.4.1.11.2.17.2.0 was mapped to VB_2).  And that made it
work....

I'm happy it works, but I think I'll look at this again in the morning
to see if I can see some doc's on it.

Oh for a FMT file for this adapter!!!

Thanks anyway.

Karl


Karl Prinelle
Tivoli Certified Consultant
Elyzium Ltd
Enterprise Systems Management Consultants
Mobile: +44 (0)7813 189198
Email: Karl.Prinelle AT elyzium.co DOT uk
http://www.elyzium.co.uk
 
  
------------------------------------------------------------------------
---
Elyzium Disclaimer:

This email transmission is confidential and intended solely for the
person or organisation to whom it is addressed. If you are not the
intended recipient, you must not copy, distribute or disseminate the
information, or take any action in reliance of it. Any views expressed
in this message are those of the individual sender, except where the
sender specifically states them to be the views of any organisation or
employer. If you have received this message in error, do not open any
attachment but please notify the sender (above) deleting this message
from your system. Please rely on your own virus check no responsibility
is taken by the sender for any damage rising out of any bug or virus
infection.

------------------------------------------------------------------------
---

 



-----Original Message-----
From: Geoffrey Cheng [mailto:gcheng AT ca.ibm DOT com] 
Sent: 21 January 2003 16:37
To: Karl.Prinelle AT elyzium.co DOT uk
Cc: nv-l AT lists.tivoli DOT com
Subject: Re: [nv-l] tecad_nv6k CDS file


I'm not deep into CDS file but based on what you've posted and as you
pointed out, the trap fails the SELECT statements. I met a couple of
similar situations and the experiences tell me if all other traps get
processed fine except this several, , then probably it means this
several traps received have missing bound variables or mismatch variable
names.

I solved the problems by examining the trap PDU data (through sniffer
program) and/or manually generate the trap
by snmptrap command from NetView server.

Best Regards,

Geoffrey Cheng
ITS, IBM Global Services
Prime Line: (416)-410-8874 Fax: (905)-316-4525
Email: gcheng AT ca.ibm DOT com


"Karl Prinelle" <karl.prinelle AT elyzium.co DOT uk> on 01/21/2003 11:03:22 AM

Please respond to <Karl.Prinelle AT elyzium.co DOT uk>

To:    <nv-l AT lists.tivoli DOT com>
cc:
Subject:    [nv-l] tecad_nv6k CDS file


Hi,

(apologies in advance if you sub to the tme10 list as well - I've cross
posted because this one sits pretty much in the middle of the two
subjects).

I'm having a little bit of trouble editing up a CDS file for the
tecad_nv6k adapter.

>From the trace I've got (below) I think the event is being discarded 
>all
the time, but I can't see how/why it is doing that.  I should be able to
get the omnibackEvt event processed properly....  The adapter is working
ok for other events and the trap looks ok in the netview event list.

Anyone got a view where I'm going wrong.....or if anyone has found some
good documentation on this yet, that would be useful...

trace file:
Trying Class "omnibackEvt"
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0067: Entered TECAD_EvalSelect
 Name: TECAD_TYPE 1 11 "ENTERPRISE"
  Key: TECAD_TYPE 4 0 NULL
Value: TECAD_TYPE 1 22 "1.3.6.1.4.1.11.2.17.1"

** This is right - it's the EID I expect

Tue Jan 21 15:21:08 2003 VERBOSE: KERNEL , err 00,   .\evaluation.c line
0092: TECAD_GetConstantEntry Index <267>
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0510: Enter TECAD_TestSelectValue 1 1 22 22 775106097 775106097
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0513: Test_Value: 6882920
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0516: Value: 6890000
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0221: Correct is TRUE
 Name: TECAD_TYPE 1 8 "SPECIFIC"
  Key: TECAD_TYPE 4 0 NULL
Value: TECAD_TYPE 2 4 "59047936"

** This is right - its the specific value for the trap

Tue Jan 21 15:21:08 2003 VERBOSE: KERNEL , err 00,   .\evaluation.c line
0092: TECAD_GetConstantEntry Index <169>
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0510: Enter TECAD_TestSelectValue 2 2 4 4 59047936 59047936
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0513: Test_Value: 7014204
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0516: Value: 7015052
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0221: Correct is TRUE
Tue Jan 21 15:21:08 2003 VERBOSE: KERNEL , err 00,   .\evaluation.c line
0092: TECAD_GetConstantEntry Index <268>
Tue Jan 21 15:21:08 2003  NORMAL: SELECT , err 00,       .\select.c line
0277: Finished TECAD_EvalSelect, returning FALSE
Tue Jan 21 15:21:08 2003     LOW: KERNEL , err 00,       .\kernel.c line
0311: Default action is <*DISCARD*>
** The above seems to says it's discarded my event!  But why! It was
going so well ......

Tue Jan 21 15:21:08 2003  NORMAL: KERNEL , err 00,       .\kernel.c line
0315: Finished kernel_select
Tue Jan 21 15:21:08 2003     LOW: DRVSPEC, err 00,      driver_ov.c line
1469: Main loop : freeing event buffer
Tue Jan 21 15:21:08 2003 VERBOSE: UTILS  , err 00, \configuration.c line
1463: Free pointer 6b0a98
Tue Jan 21 15:21:08 2003 VERBOSE: UTILS  , err 00, \configuration.c line
1463: Free pointer 8b2eb8

tecad_nv6k.oid (relevant bit):

"omnibackEvt"  "1.3.6.1.4.1.11.2.17.1"
"omnibackEvtApptype"  "1.3.6.1.4.1.11.2.17.1.1.0" "omnibackEvtCellHost"
"1.3.6.1.4.1.11.2.17.1.2.0" "omnibackEvtTrapMsgType"
"1.3.6.1.4.1.11.2.17.1.3.0" "omnibackEvtAppName"
"1.3.6.1.4.1.11.2.17.1.4.0" "omnibackEvtAppSev"
"1.3.6.1.4.1.11.2.17.1.5.0" "omnibackEvtAppMsg"
"1.3.6.1.4.1.11.2.17.1.6.0" "omnibackEvtParms"
"1.3.6.1.4.1.11.2.17.1.7.0"

tecad_nv6k.cds:

CLASS omnibackEvt
  SELECT
    1: ATTR(=,$ENTERPRISE), VALUE(PREFIX, "1.3.6.1.4.1.11.2.17.1") ;
    2: $SPECIFIC = 59047936 ;
    3: ATTR(=,"omnibackEvtApptype") ;
    4: ATTR(=,"omnibackEvtCellHost") ;
    5: ATTR(=,"omnibackEvtTrapMsgType") ;
    6: ATTR(=,"omnibackEvtAppName") ;
    7: ATTR(=,"omnibackEvtAppSev") ;
    8: ATTR(=,"omnibackEvtAppMsg") ;
    9: ATTR(=,"omnibackEvtParms") ;
  MAP
 cellMgrName = $V4 ;
 trapmsg = $V5 ;
 appname = $V6 ;
 appmsg = $V8 ;
 appsev = $V7 ;
 parms = $V9 ;
     msg = "Omniback event" ;
     severity = WARNING ;
END
tecad_nv6k.conf (although it's not even really close to this yet!)

FilterMode=IN
FilterCache:Class=omnibackEvt
Filter:Class=omnibackEvt

Any help appreciated....

Karl


Karl Prinelle
Tivoli Certified Consultant
Elyzium Ltd
Enterprise Systems Management Consultants
Mobile: +44 (0)7813 189198
Email: Karl.Prinelle AT elyzium.co DOT uk
http://www.elyzium.co.uk


------------------------------------------------------------------------
---


Elyzium Disclaimer:


This email transmission is confidential and intended solely for the
person or organisation to whom it is addressed. If you are not the
intended recipient, you must not copy, distribute or disseminate the
information, or take any action in reliance of it. Any views expressed
in this message are those of the individual sender, except where the
sender specifically states them to be the views of any organisation or
employer. If you have received this message in error, do not open any
attachment but please notify the sender (above) deleting this message
from your system. Please rely on your own virus check no responsibility
is taken by the sender for any damage rising out of any bug or virus
infection.


------------------------------------------------------------------------
---
<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office"
/>










---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)


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