ProLiant Servers (ML,DL,SL)
1823942 Members
3504 Online
109667 Solutions
New Discussion юеВ

Read Hyperthreading setting from windows servers.

 
SOLVED
Go to solution
Stephen D Watts
Occasional Contributor

Read Hyperthreading setting from windows servers.

Is there a way to read the hyperthreading setting across a large number of servers?
I need to audit an environment of 300+ proliant servers running a mix of w2k3/w2k8, I need to determine if hyper threading is enabled.
9 REPLIES 9
Ali
HPE Pro

Re: Read Hyperthreading setting from windows servers.

Hi Stephen,

If you have HP SIM in your environment and all these machines are managed.. you can retrieve the system info including hyper-threading settings from the proliant servers.

thanks
Aftab
I work for HPE
Looking for a quick resolution to a technical issue for your HPE products? HPE Support Center Knowledge-base тАУ Just a Click Away!
See Self Help Post for more details

Accept or Kudo

Stephen D Watts
Occasional Contributor

Re: Read Hyperthreading setting from windows servers.

Aftab,

Would you know how I can retrieve this information. The reporting in SIMM does appear to provide that information. I can look at individual server management homepages but this would become very tedious and I need to find a solution that I can automate into a report or perhaps intgrate into an audit.

Thanks,

Stephen
Diego Castelli
Trusted Contributor

Re: Read Hyperthreading setting from windows servers.

SIMPLE YET EFFECTIVE VBSCRIPT:
if you have WMI access to all servers, you can loop it changing strComputer.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colProcessor = objWMIService.ExecQuery _
("Select * from Win32_Processor")

For Each objProcessor in colProcessor
IF objProcessor.NumberOfLogicalProcessors > objProcessor.NumberOfCores THEN
Wscript.Echo "HYPERTHREADING ENABLED!"
END IF
Next

created and tested right now and it works!


Diego C.

MS MCSA Server 2003

HP Accredited Integration Specialist
Diego Castelli
Trusted Contributor

Re: Read Hyperthreading setting from windows servers.

take a look here:
http://msdn.microsoft.com/en-us/library/aa394373%28v=vs.85%29.aspx

to know what other properties are available through WMI querying the Win32_Processor class

HTH Bye!
Diego C.

MS MCSA Server 2003

HP Accredited Integration Specialist
Stephen D Watts
Occasional Contributor

Re: Read Hyperthreading setting from windows servers.

Diego,

Thanks for the wmi info. I actually did come up with a simular solution using powershell. I was hoping to find a way reading the actual setting from the processor. On some of our older Proliant hardware these win32_processor values are not populated.

Thanks again,

Stephen
Diego Castelli
Trusted Contributor
Solution

Re: Read Hyperthreading setting from windows servers.

NumberOfLogicalProcessors and NumberOfCores property can not use in Windows XP Service Pack 2 and earlier.

In Windows XP Service Pack 3, NumberOfLogicalProcessors and NumberOfCores property is available.

In Windows Server 2003 Service Pack 2 and earlier, NumberOfLogicalProcessors and NumberOfCores property is not available. But applied KB932370 hotfix, NumberOfLogicalProcessors and NumberOfCores property is available.See

The number of physical hyperthreading-enabled processors or the number of physical multicore processors is incorrectly reported in Windows Server 2003
http://support.microsoft.com/kb/932370/

In Windows Vista, NumberOfLogicalProcessors and NumberOfCores property is available.
Diego C.

MS MCSA Server 2003

HP Accredited Integration Specialist
Stephen D Watts
Occasional Contributor

Re: Read Hyperthreading setting from windows servers.

Thanks! That answers my question exactly.
I will check the systems that aren't reporting correctly and remediate them with the patch. (if appropriate)

Diego Castelli
Trusted Contributor

Re: Read Hyperthreading setting from windows servers.

Thank you for the feedback.

Glad to be of help :-)
Diego C.

MS MCSA Server 2003

HP Accredited Integration Specialist
andyjball
New Member

Re: Read Hyperthreading setting from windows servers.

HP - Can you provide a way of pulling this info out of SIM , ie a SQL Query or whatever. The WMI / Patch method is not viable for us given the variety of (old) OS's we have.