• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2180
  • Last Modified:

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.  


0
toddvoros
Asked:
toddvoros
  • 4
  • 4
  • 3
1 Solution
 
grayeCommented:
Part of the problem is that WMI just recently updated their DLLs to include the accurate detecion of physical and logical CPUs.   So, if you've got WinXP SP3, Vista, or Windows Server 2008, then you've got the updated WMI parts... otherwise you basically can't use WMI
0
 
toddvorosAuthor Commented:
Any other suggestions?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
CallandorCommented:
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.
0
 
toddvorosAuthor Commented:
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.
0
 
CallandorCommented:
Intel had a utility called cpucount.exe http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_22984160.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
0
 
toddvorosAuthor Commented:
That utility only works on W2008 and XP.  I need W2000 and W2003.
0
 
grayeCommented:
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++ ?
0
 
toddvorosAuthor Commented:
Graye:  Please send me your C++ code, it might give me what I need.
0
 
grayeCommented:
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
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now