WMI, C++, PercentIdleTime, PercentProcessorTime and a Remote Windows 2003 Multiprocessor Box

V

virgin69

Hello,

Firstoff, I apologize for the cross-post.

I have an odd problem accessing
Win32_PerfRawData_PerfProc_Process::percentProcessorTime and
Win32_PerfFawData_PerfOS_Processor::percentIdleTime counters on a
remote Windows 2003 box with four processors.

The process returns correct results from remote WinXPPro machines. It
is only the Win2K3 machine that is returning odd results.

In the case of the PercentProcessorTime property, I receive values that
look like memory addresses. For example:
Sample One:
Inst: 71 Cnt: 50 Name: _Total
uiPropVal1: 59040312500(14757395255533172348)
uiStamp1: 14767201000(14757395255533160836)

Sample Two:
Inst: 71 Cnt: 50 Name: _Total
uiPropVal2: 59049062500(14757395255533197316)
uiStamp2: 14769442000(14757395255533160836)
((59049062500 - 59040312500) / (14769442000 - 14767201000)) * 100 ==
390.450683593750000
Property Value : 390.4507

Needless to say, 390 percent processor time for the total processes is
a bit high.


The process returns results like the following for the PercentIdleTime
property
Sample One:
Inst: 71 Cnt: 50 Name: _Total
uiPropVal1: 433127c9e(cccccccc001768d4)
uiStamp1: 446ed3560(cccccccc0017fa5c)
Sample Two:
Inst: 71 Cnt: 50 Name: _Total
uiPropVal2: 43da94e58(cccccccc0017fa84)
uiStamp2: 446ee42e8(cccccccc0017e5cc)

Again, this only occurs on remote Win2K3 boxes with multiple
processors.

Anyone have any ideas?


Thanx In Advance



-V-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top