Link to home
Avatar of tybarton
tybarton

asked on

WMI Win32_PerfFormattedData_PerfOS_Processor

I have a service running to monitor various server items. One is the CPU which I am using a call to Win32_PerfFormattedData_PerfOS_Processor which I am pulling the property PercentProcessorTime.

I am checking two servers. On the first one when I look in Task manager at the performance tab I see 17 graphs. The first is a overall total cpu usage then one for each core. When I run my code I get 17 return values.

I am going to be graphing these values and the issue I have is determining which return value represents the first graph which is the average cpu usage. Is it the first value or the last?

Thanks,
TyB
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER CERTIFIED SOLUTION
Avatar of tybarton
tybarton

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of tybarton
tybarton

ASKER

Found a property of the class that gave me the information I was looking for.