Solved

to find number of cpu on a physical and virtual installed on the mainboard

Posted on 2010-08-24
15
378 Views
Last Modified: 2013-12-10
How can we find the number of CPU on a physiical and virtual servers? we would like to find the number of physical CPU installed on the mainbord ,very definitely and very quickly  over the windows 2003 or windows 2008 server system
0
Comment
Question by:teodor76
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
  • 2
15 Comments
 
LVL 9

Expert Comment

by:Tomas Valenta
ID: 33508907
In virtual machine - in virtual management console (depend on virtualisation platform) and also for physical number of processors in host machine.
In virtual machine also in Computer management console and Device manager/Processors
0
 
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 33508974
You can try to use CPU-Z software http://www.cpuid.com/softwares/cpu-z.html
0
 

Author Comment

by:teodor76
ID: 33509135
there are 200 servers so we dont think to insall any thirdparty tool on each servers how can I find after log in to the servers? for example from task manager but it does not give us the correct information
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 33509153
try to use Spiceworks
http://www.spiceworks.com/
0
 
LVL 9

Expert Comment

by:Tomas Valenta
ID: 33509200
you can also write the VBScript to do it in Windows virtual servers. Output can be excel or csv file.
What virtual environment are you using ?
0
 

Author Comment

by:teodor76
ID: 33509245
unfortuntately virtual servers are different versions of vmware and on other countries, amorphously
0
 
LVL 9

Expert Comment

by:Tomas Valenta
ID: 33509250
0
 

Author Comment

by:teodor76
ID: 33509418
but it gives me number of core cpu.. for example there is a two cpu as hardware on the server but it says 4 cpu
0
 
LVL 9

Expert Comment

by:Tomas Valenta
ID: 33509586
by wmi you can find right key fo physical processor then only change in the script. I can look for it.
0
 
LVL 9

Expert Comment

by:Tomas Valenta
ID: 33509605
Here you can find proper keys.
strComputer = "localhost"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colCSes = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")

For Each objCS In colCSes
  WScript.Echo "Computer Name: " & objCS.Name
  WScript.Echo "System Type: " & objCS.SystemType
  WScript.Echo "Number Of Physical Processors: " & objCS.NumberOfProcessors
  WScript.Echo "Number of Logical Processors: " & objCS.NumberofLogicalProcessors
Next
0
 

Author Comment

by:teodor76
ID: 33509632
could you please look at for me and how to run?
0
 
LVL 9

Expert Comment

by:Tomas Valenta
ID: 33509775
give me hour and I will send you script.
0
 

Author Comment

by:teodor76
ID: 33509789
unfortunatelly it gives me number of core cpu's
Number Of Physical Processors: 4 but  there is two physical hardare cpu on this server..
0
 
LVL 9

Expert Comment

by:Tomas Valenta
ID: 33509946
on Windows 2003 server - http://support.microsoft.com/kb/932370/
0
 
LVL 9

Accepted Solution

by:
Tomas Valenta earned 500 total points
ID: 33510446
- install on servers with Windows 2003 servers MS hotfix (in my previous comment)
- on your computer download psexec utility from http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
- create file listserrvers.txt with names of your servers each on one line
- create procinfo.cmd
cscript /nologo \\fileserver\share\RetrieveProcInfo.vbs >> \\fileserver\share\procreport.csv
- create RetrieveProcInfo.vbs and copy to the fileserver path
On  error resume next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colCSes = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
For Each objCS In colCSes
 rem  Values are: Computer Name;Number Of Physical Processors;Number of Logical Processors
Wscript.Echo objCS.Name & ";" & objCS.NumberOfProcessors & ";" & objCS.NumberofLogicalProcessors
Next

LAST execute:
psexec @listservers.txt -c -u yourdomainname\adminaccountname procinfo.cmd
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question