Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 4:32 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
PostPosted: Thu Nov 15, 2007 6:24 am 
Offline
Newbie

Joined: Wed Nov 14, 2007 12:38 am
Posts: 4
Open-Audit reports on how many CPUs Windows sees. We need the ability to ALSO report on the number of CPU sockets.

Examples:
A dual socket hyper-threaded server shows 4 CPUs in Windows, but only has 2 sockets.
A dual socket quadcore server shows 8 CPUs in Windows, but only has 2 sockets.

Any chance this feature can be added?

Here is sample code from the inventory program we've written which calculates how many sockets the computer has. To use it, run the code locally from a Windows server. It will echo out the Socket names and provide a total number of sockets.



Option Explicit
Dim objWMIService, colItems, objItem, strComputer, intSocketsTotal, strSocketsAll
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Processor", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)
strSocketsAll = ""
intSocketsTotal = 0
For Each objItem In colItems
Wscript.Echo "Socket Name: " & objItem.SocketDesignation
If Instr(strSocketsAll, objItem.SocketDesignation) = 0 Then
intSocketsTotal = intSocketsTotal + 1
strSocketsAll = strSocketsAll & objItem.SocketDesignation
End If
Next
WScript.Echo "Total # of Sockets: " & intSocketsTotal


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 04, 2008 2:21 am 
Offline
Helper

Joined: Fri Nov 16, 2007 1:32 am
Posts: 73
Location: Dallas,Texas
not sure if this was ever added, but I think this would be a great feature!

_________________
1400 Servers Audited (1 hour interval) Applied via a local scheduler, deployed via GPO.
Running OA on IIS6 Web Server
90% Windows 2k3 Server (std,ent)
5% Windows XP
5% Windows 2000


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 04, 2008 8:36 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
You're right, it's useful for HW upgrading purposes: the CPU sockets number will be added on next DB update. I'm planning adding this count on the motherboard system view (together with the memory slots number, which will be removed from the memory view).

_________________
Edoardo


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 06, 2008 7:57 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
Added to SVN rev. 1053. Thank you

_________________
Edoardo


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 07, 2008 12:12 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
[code]
Processor

Index: CPU0
Manufacturer: GenuineIntel
Type: x86 Family 15 Model 2 Stepping 5
Model: Intel(R) Xeon(TM) CPU 3.20GHz
Socket Type: ZIF Socket (Proc_1)
Max Speed MHz: 3184
Current Speed MHz: 3184
External Clock: 533
Current Voltage: 15

Index: CPU1
Manufacturer: GenuineIntel
Type: x86 Family 15 Model 2 Stepping 5
Model: Intel(R) Xeon(TM) CPU 3.20GHz
Socket Type: ZIF Socket (Proc_2)
Max Speed MHz: 3184
Current Speed MHz: 3184
External Clock: 533
Current Voltage: 15

Index: CPU2
Manufacturer: GenuineIntel
Type: x86 Family 15 Model 2 Stepping 5
Model: Intel(R) Xeon(TM) CPU 3.20GHz
Socket Type: ZIF Socket (Proc_1)
Max Speed MHz: 3184
Current Speed MHz: 3184
External Clock: 533
Current Voltage: 15

Index: CPU3
Manufacturer: GenuineIntel
Type: x86 Family 15 Model 2 Stepping 5
Model: Intel(R) Xeon(TM) CPU 3.20GHz
Socket Type: ZIF Socket (Proc_1)
Max Speed MHz: 3184
Current Speed MHz: 3184
External Clock: 533
Current Voltage: 15

[/code]

Doesn't look quite right to me?!

Mobo looks like this... 2 sockets, dual core presumably, so why are we seeing 3 procs in Socket Proc_1 and 1 in Proc_2

http://support.dell.com/support/edocs/s ... tm#1039152


Attachments:
File comment: Power Edge 2650 Motherboard, (c) Dell
jumpers5.jpg
jumpers5.jpg [ 124.85 KiB | Viewed 10615 times ]

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]
Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 07, 2008 12:27 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
.... Also I might have missed it, but I dont see the number of sockets reported, just the socket number of each detected processor. I could not therefore say if this server has a spare socket or two, without processor and is therefore upgradable.

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 07, 2008 12:56 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
A Dell Power Edge 1950 shows as follows.

[code]
Processor

Index: CPU0
Manufacturer: GenuineIntel
Type: x86 Family 6 Model 15 Stepping 6
Model: Intel(R) Xeon(R) CPU 5110 @ 1.60GHz
Socket Type: (CPU1)
Max Speed MHz: 1596
Current Speed MHz: 1596
External Clock: 1066
Current Voltage: 14

Index: CPU1
Manufacturer: GenuineIntel
Type: x86 Family 6 Model 15 Stepping 6
Model: Intel(R) Xeon(R) CPU 5110 @ 1.60GHz
Socket Type: (CPU1) (CPU2)
Max Speed MHz: 1596
Current Speed MHz: 1596
External Clock: 0
Current Voltage: 14
[/code]

Mother Board (for ref...)

http://support.dell.com/support/edocs/s ... rlina3.jpg

MoBo Manual

http://support.dell.com/support/edocs/s ... #wp1054535

From the above, it is not obvious what the arrangement is (2 Single core CPUs or one Dual core), and also why does the second processor live in two sockets?

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 07, 2008 2:42 am 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
The CPU sockets number (total) should be visible on the Motherboard section of the Hardware view, not on the Processor one.
I'm aware of the oddity of each processor socket type, I have to take a look...

_________________
Edoardo


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 07, 2008 7:55 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
I give up. WMI Info (I tried on several IBM, HP and FSC servers with mono/dual processor both mono/multi-core) seem inconsistent.
Probably, applying hotfixes from http://support.microsoft.com/kb/932370/en-us and http://support.microsoft.com/kb/936235/en-us the WMI detection of physical processor should improve.
If someone else find a solution, let us know.
For now, only the CPU sockets number detection (showed on the mobo section) seems OK (thanks to ral8667).

_________________
Edoardo


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group