nv-l

RE: [nv-l] Activating Filters

2002-01-22 08:47:39
Subject: RE: [nv-l] Activating Filters
From: "Allison, Jason (JALLISON)" <JALLISON AT arinc DOT com>
To: "'nv-l'" <nv-l AT lists.tivoli DOT com>
Date: Tue, 22 Jan 2002 08:47:39 -0500
"are you just looking for a way to have certain filters automatically
applied to the events display when users open it?"
Yes and no.
 
My situation
I would like to provide my operators with a TME10 GUI pulldown menu option
that will:
 
  - Create a filter.
  - Activate that filter against any currently open nvevents displays.
  - ... Another pulldown that will deactivate the filter.
 
I am assuming this can be done since I can manually do this via
"Options->Filter Control, etc" under a single nvevents display.
 
For the record, I already have "nvevents.LoadEnvOnInit" set to true.  I
currently have 2 nvevent displays on startup.  I am looking to -apply- a
filter, on the fly, to an nvevent display as per the quote in the
Administratos guide:  "Filters can also be activated and deactivated
programmatically.  Refer to
the TME 10 Netview Programmers Guide for information about event filtering
API."
 
Thanks,

Jason Allison 
Principal Engineer 
ARINC Incorporated 
Office:  (410) 266-2006 
FAX:  (410) 573-3026 

 
-----Original Message-----
From: James Shanks [mailto:jshanks AT us.ibm DOT com] 
Sent: Friday, January 18, 2002 2:03 PM
To: NV-L AT tkg DOT com
Subject: Activating Filters



Since the reference in the Admin Guide directs you the Programmer's Guide,
and the Programmer's Guide (Chapter 17. Filtering Network Events) talks
about creating filters for use within an application you write yourself, I
think what is being referred to is the fact that once you have your filters
created, you can open a (new) session with trapd within your application to
use your own filters by invoking  nvSnmpTrapOpenFilter, which will then
deliver just those events matching your filter to your program.   Is this
what you wanted? 

Or are you just looking for a way to have certain filters automatically
applied to the events display when users open it? 
If this latter, then you can create your filters and specify them by name in
a special file called $HOME/.<userid>.events  (see "Customizing Event Filter
For Users" in the Admin Guide) or by creating a Workspaces file
($HOME/NvEnvironment/Workspaces) using the events GUI and the Save
Environment button under Options.   To have it read on startup you must
modify that user's Nvevents file (or the main one in /usr/OVapp-defaults) so
that nvevents.LoadEnvOnInit is set to True.   That's mentioned in the Admin
Guide too.   


James Shanks
Level 3 Support  for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group


----- Forwarded by James Shanks/Raleigh/IBM on 01/18/2002 01:26 PM ----- 

        "Allison, Jason (JALLISON)" <JALLISON AT arinc DOT com> 


01/18/2002 12:26 PM 


        
        To:        nv-l AT tkg DOT com 
        cc:        "Allison, Jason (JALLISON)" <JALLISON AT arinc DOT com> 
        Subject:        Activating Filters 

       


List:

I am trying to have a registered application dynamically activate and
deactivate filters.  I have been successful in generating the filters I so
desire using nvDefineFilter() (and using nvDeleteFilter() to remove them).
However, using those calls will only create the filter file, no
activation/deactivation occurs.  I can go in and manually
activate/deactivate them and all is good.

Administrators guide 5-55 "Activating and Deactivating Event Filters", the
last paragraph:
"Filters can also be activated and deactivated programmatically.  Refer to
the TME 10 Netview Programmers Guide for information about event filtering
API."

In the Programmers Reference I found only the nvFilter calls.  In nvFilter.h
there are no additional listings.  After some searching I found
"./man1/selectfilter" with is a utility for this, however I have been unable
to get it to work due to tralertd not running nor being able to be started.
I also looked at OVeRegister, but it does not seem to be in the same field
as nvFilterDefine.

Any and all input appreciated,

Jason Allison
Principal Engineer
ARINC Incorporated
Office:  (410) 266-2006
FAX:  (410) 573-3026




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