win32pdhutil - Returning Processor Information
Mark Hammond
mhammond at skippinet.com.au
Tue Aug 13 04:02:55 EDT 2002
Ben C wrote:
> Hi there,
>
> I am attempting to write a load balancer for a W2K server and am
> planning to use the win32pdhutil module to return performance data
> about the machine ... however I am not having much luck returning any
> information from a 'Processor' object ... but can return instance
> information from a 'Memory' object ... I have looked dumbly at this
> for a while and if anyone could point out what I am doing here that
> would be great
>
> thanks in advance
>
> Value of '\\LINUX\Processor(_Total)\% Processor Time' is 99.9957483479
Note the instance name in parens "(_Total)"
>>>win32pdhutil.GetPerformanceAttributes("Processor(_Total)", "% Processor Time")
99
Mark.
More information about the Python-list
mailing list