WmiEventSink events go where ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,

after raising an event with the logging framework that gets redirected to a
Microsoft.ApplicationBlocks.Logging.EventSinks.WmiEventSink
where do these events end up ?
can i see them in a logfile ?
can i subscribe to them with a 'listner' application (and how do i do that ) ?

any pointers are more than welcome.

best regards,
tom
 
If all you want to do is see your events on a developer workstation, you can
use the WMI event viewer which is part of WMI tools - you can download this
free from Microsoft:
http://www.microsoft.com/downloads/...FamilyID=6430F853-1120-48DB-8CC5-F2ABDC3ED314

There's a sample walkthough (Adding Simple Instrumentation) in the online
help for EIF that describes how to set up the WMI event viewer.

There's also "Management (WMI) Extensions for Visual Studio .NET 2003 Server
Explorer" which you can find here
http://www.microsoft.com/downloads/...63-1253-4ea6-8599-68fb3ef77de1&DisplayLang=en

Here's a couple of independent samples you might also find useful:
http://www.c-sharpcorner.com/Code/2003/Oct/WMIProviderGuide.asp#Namespace
http://www.thecodeproject.com/csharp/WMIproviderGuide.asp


WMI events can also be consumed by enterprise monitoring tools/servers (such
as Microsoft MOM), which is probably what your IT system management group
will be using (this is a big benefit gained by using WMI).
 
thank you for that. it does get me a lot further. i have started following
the simple walkthrough (Adding Simple Instrumentation) and i can see how it
works now (i have to register the events before they can be seen by WMI ,
missed that step completely..)

when following the walkthrough i noticed that with:

1) Using a text editor such as Notepad, open the eviewer.mof file found in
%SystemRoot%\System32\WBEM directory. Replace the #pragma namespace text in
line 2 with the following:...

i don't have the eviewer.mof in my c:\windows\System32\WBEM directory (the
directory exists but doesn't have that file in it. i do have a copy of it at:

c:\program files\wmi tools\

so i made the changes there and compiled the .mof file.. but as you can
guess that in the end the events didn't show up in the WMI even viewer..

does anyone know what step should have installed the eviewer.mof in my
c:\windows\System32\WBEM directory ?

best regards,
tom
 
Please ignore the previous question. i had a 'hidden' WMI EvenViewer that was
receiving all the events. it works great. thank you for your help !!
 
Back
Top