Link to home
Start Free TrialLog in
Avatar of toddvoros
toddvorosFlag for United States of America

asked on

Need WMI query to get ACCURATE number of cores, number of sockets, and status of HyperThreading

I need a WMI query to get an ACCURATE number of sockets, ACCURATE number of cores, and ACCURATE status if HyperThreading is on or off on a large set of servers.  Any suggestions on how to implement this would be greatly appreciated.  I need support for both AMD and Intel chipsets.  
Note: Some tools I have found for this report INACCURATE info, such as Hyperthreading being
enabled on older AMD chips (impossible).  Also, some tools report dual core chips as single core
chips and hyperthreading reporting as physical CPU cores.  


Avatar of Callandor
Callandor
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of toddvoros

ASKER

Any other suggestions?
You haven't explained why the suggestions already given won't work.  You need to work with the experts if you want to get something out of this.
Still looking for a commercial product that provide this info for W2000 and W2003 servers.
Intel had a nice free utility but it only works with W2008 and XP which doesn't help me.
No one has been able to provide be with anything that provide this info accurately so far.
Intel had a utility called cpucount.exe https://www.experts-exchange.com/questions/22984160/How-to-determine-number-of-processers-on-a-box.html, but the link doesn't seem to work anymore.  I have attached the file with a txt extension, but it should work if you rename it without the txt.
cpucount.exe.txt
That utility only works on W2008 and XP.  I need W2000 and W2003.
I was in the middle of writing a replacement WMI provider to get that additional info... but I abandoned the project when Microsoft added this missing feature to WinXPSP3, WinS2003R2, and Vista.   I got as far as a test harness application and a DLL file.   Both work, but I haven't touch it since 2004.
I'd be willing to share my source code... do you have anyone who can work with C++ ?
Graye:  Please send me your C++ code, it might give me what I need.
Okey Dokey.... I've placed the zip file on my web server http://www.emmet-gray.com/temp/CPUID.zip
Remember, I  haven't touched this since about 2004