Yes, thanks-- that's what I'd tried. However-- it doesn't accurately count
core/cpus-- you have to install a hotfix for the WMI properties to actually
reflect reality :-(
---from the KB article---
Until Vista was released, the various Windows operating systems were unable to
identify the number of physical, logical and multicore processors.
Vista added the following new properties to WMI that provide for:
Number of physical processors
Number of logical processors
Number of cores
Even though Inventory for Windows provides a 'cores' attribute in the
inv_aex_hw_cpu table and hardware inventory will attempt to correctly populate
this column. However, processor information is still not complete.
Server 2003 and XP do not have the above properties in WMI, by default.
Microsoft has created two hotfixes that update WMI on these OSes - one per OS.
These hotfixes are available only by request from Microsoft and can be found at:
XP: http://support.microsoft.com/kb/936235/
2003: http://support.microsoft.com/kb/932370/
Custom Inventory can be implemented to capture the correct processor
information as provided by the above properties.
Microsoft provides the following information regarding these hotfixes:
WMI properties before applying the hotfix
Win32_ComputerSystem
The NumberOfLogicalProcessors property is not available.
The NumberOfProcessors property returns the number of logical processors that
are available on the system.
Win32_Processor
The number of Win32_Processor instances that are returned is equal to the
number of logical processors that are available on the system.
The NumberOfCores property is not available.
The NumberOfLogicalProcessors property is not available.
WMI Properties after applying the hotfix
Win32_ComputerSystem
The NumberOfProcessors property returns the number of physical processors that
are available on the system.
The NumberOfLogicalProcessors property returns the number of logical processors
that are available on the system.
Win32_Processor
The number of NumberOfLogicalProcessors instances that are returned is equal to
the number of logical processors that are available on the system.
The NumberOfCores property returns the number of cores that are available on
the system.
The number of Win32_Processor instances that are returned is equal to the
number of physical processors that are available on the system.
To determine whether hyperthreading is enabled for the processor, compare the
value of the NumberOfCores property to the value of the
NumberOfLogicalProcessors property. If hyperthreading is enabled in the BIOS
for the processor, the value of the NumberOfCores property is less than the
value of the NumberOfLogicalProcessors property.
For example, assume that a dual-processor system contains two processors that
are each enabled for hyperthreading. This system can run four threads or four
programs at the same time. In this case, the value of the NumberOfCores
property is 2, and the value of the NumberOfLogicalProcessors property is 4.
thanks!
lisa
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Thomas Rupp
Sent: Wednesday, May 28, 2008 6:20 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: [ADSM-L] AW: [ADSM-L] Anyone write/develop a wmi query for
win32_processor? (value units TSM licensing)
Hi,
Have you tried Scriptomatic from M$?
It generates VBScript, Perl, Jscript or Python Code and outputs the results of
the WMI queries in a DOS box, plain Text to Notepad, HTML, Excel or XML.
You can then change the code to your liking.
It even lets you query a list of computers with a single run.
Download it from
http://www.microsoft.com/technet/scriptcenter/tools/wmimatic.mspx
HTH
Thomas Rupp
-----Ursprüngliche Nachricht-----
Von: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] Im Auftrag
von Laughlin, Lisa
Gesendet: Montag, 19. Mai 2008 15:39
An: ADSM-L AT VM.MARIST DOT EDU
Betreff: [ADSM-L] Anyone write/develop a wmi query for win32_processor? (value
units TSM licensing)
I know there are FAR more skilled programmers/scripters than I that subscribe
to the list.
Does anyone have experience with querying the wmi for win32_processor on a
number of different machine names?
Or has someone come up with a better way of querying TSM clients for the num of
procs to calculate value units for TSM licensing?
If anyone is willing to share, I'd be grateful to not have to reinvent the
wheel!
thanks!
lisa
Vorarlberger Illwerke AG ein Unternehmen von illwerke vkw
Rechtsform: Aktiengesellschaft, Sitz: Bregenz, Firmenbuchnummer: FN 59202 m,
Firmenbuchgericht: LG Feldkirch, UID-Nr.: ATU 36737402
|