Hilary; Thanks! I understand the pieces that make the Microsoft performance counters behave. I could write a program to collect and calculated the raw performance counter data. But that's not something I want to do from a scripting perspective. The thrust of my question was to see whether there was a way to control the behavior of the Performance Logs and Alerts from a script without having to deal with the underlying details of the performance counters. If doable, this should save me a lot of time. Dealing with the raw performance counter values is not fun. The data structure of the performance counter data block is quite convoluted.
For instance, I'm setting up a performance counter log to collect the performance counter values in a CSV file from a server. For many servers, I have many of these counter logs. It would be nice if I could programmatically control which I want to start/stop or to which file I want the output to go. An offhand gripe: GUI is nice. But many Microsoft tools are just not data center friendly enough. Linchi > -----Original Message----- > From: Hilary Cotter [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 02, 2002 9:19 AM > To: NT 2000 Discussions > Subject: Re: Performance Logs and Alerts > > > The way performance monitoring works is an all or nothing type of > operation. When you code your application you have the > option of having > it collect data on various indicies which you define. Normally this > functionality is split off into a seperate dll which encapsulates all > mornitoring functioanlity. > > For instance in SQL server this dll is SQLCTR80.DLL, in NT > the main one is > perfctr.dll. > > To tell PerfMon what dll to use you use the following registry keys. > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SERVICE\P > erformance > replacing SERVICE with your particular Service. > > You can disable all counters for an object by pointing towards a non > existent monitoring dll, and you can disable some of the NT > counters by > using EXCTRLST. > > There were some articles on writing your own performance > counter dll by > Paula Tomlinson in the July 2000 issue of Windows Developer > Journal. If > you are interested I can dig them up for you. > > ------ > You are subscribed as [EMAIL PROTECTED] > Archives: http://www.swynk.com/sitesearch/search.asp > To unsubscribe send a blank email to [EMAIL PROTECTED] > ------ You are subscribed as [email protected] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
