|Perl: the Markov chain saw|
Re: Access Win "performance counter" from unix?by BrowserUk (Pope)
|on Aug 02, 2003 at 23:35 UTC||Need Help??|
I'm not aware of any tools/modules for accessing Win32 performance data from a *nix machine, but then I wouldn't be:)
However, if such a tools exists, it might be available as a part of the WINE project. I did take a quick peruse, but the search options don't seem to work for me... maybe it didn't like my browser?
The Win32 PerfMon.exe can (with appropriate permissions) connect and display performance data gathered from other Win32 machines, so at least there is a remote access protocol available that could be (theoretically) connected to. This relies upon MS authentication and transport protocols (RAS/WMI). Whether WINE has succeeded in emulating these I don't know.
If you decide that you need to go the route of writing your own server, then I'd recommend Win32::Process::Info as a starting point. It provides access to the same information as Win32::PerfMon, but the interface is considerably easier to use, as the author has abstracted the (horrible!) native apis in a perl freindly manner taking care of a huge amount of nasty detail that you would have to do yourself using PerfMon.
If you have to go this route and would like a hand...
Examine what is said, not who speaks."Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.