To: | "'nv-l'" <nv-l@lists.tivoli.com> |
---|---|
Subject: | RE: [nv-l] Activating Filters |
From: | "James Shanks" <jshanks@us.ibm.com> |
Date: | Tue, 22 Jan 2002 09:18:31 -0500 |
Jason - It is pointless to quote the manual to me. I know what it says. But you may not understand what it means. I don't understand your situation. You can already create a filter on the fly and activate it using the Options pull-down in the Event window. No additional programming needs to be done. You pull down "Options->Filter control" If you don't like the filters that are shown, you click the "Start Filter Editor" button and create a new one. You then activate it, or as many of the others as you like. From then one, new events will be added to he open workspace only if they pass the ruleset AND the filter(s). That seems to me to be what you said you want -- it's all under the user's control. Are you asking, "How can I get the events in the current open window sent back through my filter, so that he currently open window shows only what now passes the filter?" Well technically you cannot, but you can get very much the same thing by using the Create button to open a new dynamic workspace with the same ruleset but applying the filter as you create it. There's a button to do that. It's all point and click for the user, so again, it seems to be what you said you want. Where the manual talks about programmatically applying filters it means that you can (1) use either the Workspaces method or the ".<userid>.events" method to apply filters automatically, and (2) you can also write your own application which can create and apply filters to the event stream it receives. But it does not mean that you can write an application which will apply filters for the users in nvevents. The nvevents menu is not user-customizable the way ovw is. Note however that you can specify "Additional Actions" to be performed on selected events. But you cannot force the users to select them, nor to perform the actions. They have to do it themselves. James Shanks Level 3 Support for Tivoli NetView for UNIX and NT Tivoli Software / IBM Software Group
"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@us.ibm.com] Sent: Friday, January 18, 2002 2:03 PM To: NV-L@tkg.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@arinc.com> 01/18/2002 12:26 PM To: nv-l@tkg.com cc: "Allison, Jason (JALLISON)" <JALLISON@arinc.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 --------------------------------------------------------------------- To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com For additional commands, e-mail: nv-l-help@lists.tivoli.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> |
---|---|---|
|
Previous by Date: | [nv-l] MIB & snmpcollect, jmfrancoz |
---|---|
Next by Date: | [nv-l] Devices Discovered in error, Mike Walsh |
Previous by Thread: | RE: [nv-l] Activating Filters, Allison, Jason (JALLISON) |
Next by Thread: | RE: [nv-l] Activating Filters, Allison, Jason (JALLISON) |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web