[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

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

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
teodor76
Asked:
teodor76
  • 8
  • 5
  • 2
1 Solution
 
Tomas ValentaCommented:
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
 
Krzysztof PytkoActive Directory EngineerCommented:
You can try to use CPU-Z software http://www.cpuid.com/softwares/cpu-z.html
0
 
teodor76Author Commented:
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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
Krzysztof PytkoActive Directory EngineerCommented:
try to use Spiceworks
http://www.spiceworks.com/
0
 
Tomas ValentaCommented:
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
 
teodor76Author Commented:
unfortuntately virtual servers are different versions of vmware and on other countries, amorphously
0
 
teodor76Author Commented:
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
 
Tomas ValentaCommented:
by wmi you can find right key fo physical processor then only change in the script. I can look for it.
0
 
Tomas ValentaCommented:
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
 
teodor76Author Commented:
could you please look at for me and how to run?
0
 
Tomas ValentaCommented:
give me hour and I will send you script.
0
 
teodor76Author Commented:
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
 
Tomas ValentaCommented:
on Windows 2003 server - http://support.microsoft.com/kb/932370/
0
 
Tomas ValentaCommented:
- 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 8
  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now