IBM Enterprise Console OpenView Event Example, Class Definition Statement File, HPOVFilter=filter

Models: Enterprise Console

1 194
Download 194 pages 8.78 Kb
Page 83
Image 83

HPOVFilter=filter

Specifies the events the adapter receives from OpenView NNM 6. This value is ignored with OpenView NNM 5. The adapter can accept up to 4096 bytes for this parameter; you must enter the value in one continuous line of input with no intervening line returns. Do not enclose the value in quotation marks; if you enclose the value in quotation marks and turn on adapter tracing, the trace file displays the following error:

Stream filtering set to: "{CORR{default}} .*" Enter in TECAD_OVsInit...

Unable to initialize SNMP session system error: Invalid event \ filter (Filter parameter (""{CORR{default}}.*"") event \ specification must be "" or start with a ’.’)

Unable to initialize SNMP session system error: Bad file number Enter in TECAD_OVsInitComplete...

can not initialize specific driver

The adapter also fails to initialize, and ovspmd sends the following message:

# ovstart tecad_hpov

object manager name: tecad_hpov

state:

 

FAILED

PID:

 

12901

last message:

Unable to initialize SNMP session

system \

 

 

error:

Bad file number

exit status:

 

-

Turn on adapter tracing when you change the value for HPOVFilter to make sure that the value was entered correctly or to see the errors generated by it.

See the manual page for OVsnmpEventOpen for details on HPOVFilter and the filter parameter.

WellBehavedDaemon

Specifies whether the adapter runs as an OpenView well-behaved daemon. This value should always be TRUE.

Class Definition Statement File

The CDS file defines how events are constructed from the information that is sent by OpenView. It is described in detail in “Class Definition Statement File” on page 18 and in Appendix C, “Class Definition Statement File Reference” on page 155.

Errors in the .cds file definitions cause the adapter to not start successfully, which often causes the adapter to exit with an exit (1). Therefore, change one definition at a time and restart the adapter after each change to ensure that the new definition works. If you make many changes before restarting the adapter, it is more difficult to troubleshoot any problems; turning on adapter tracing helps you locate the errors.

OpenView Event Example

The class definition in the following example is taken from the .cds file:

CLASS_OV_IF_FAULT SELECT 1:ATTR(=,ENTERPRISE),VALUE(PREFIX, \

"1.3.6.1.4.1.11.2.17.1"); 2:$SPECIFIC=40000000; 3:ATTR(=, "openViewSourceName");

Chapter 5. OpenView Adapter 71

Page 83
Image 83
IBM Enterprise Console manual OpenView Event Example, Class Definition Statement File, HPOVFilter=filter, WellBehavedDaemon