Thanks to this thread
Re: Need to create a report that includes the number of CPU sockets, CPU Cores per Socket, CPU Vendor, Total CPU Cores. This should target all physical servers (Windows, Linux, Solaris, ESXi, Nutanix, Xen).
I have a great report that gives socket, core and processor info. I would like to try to add a column with if the server is physical or virtual, but I can't get it to work.
Here is my current SWQL:
SELECT [Node], [OS], [OS Version], [Total CPU Sockets], [Total CPU Cores], [CPU Vendor], [CPU Cores Per Socket] FROM (select N.Caption as [Node], Max(N.AssetInventory.ServerInformation.OperatingSystem) as [OS], Max(N.AssetInventory.ServerInformation.OSVersion) as [OS Version], Count(N.AssetInventory.Processor.Name) as [Total CPU Sockets], Sum(N.AssetInventory.Processor.NumberOfCores) as [Total CPU Cores], Max(N.AssetInventory.Processor.Manufacturer) as [CPU Vendor], Sum(N.AssetInventory.Processor.NumberOfCores)/Count(N.AssetInventory.Processor.Name) as [CPU Cores Per Socket] from Orion.Nodes N Group By N.Caption HAVING Count(N.AssetInventory.Processor.Name) > 0 UNION ( SELECT H.HostName as [Node], CASE WHEN H.Node.AssetInventory.ServerInformation.OperatingSystem is not NULL THEN H.Node.AssetInventory.ServerInformation.OperatingSystem ELSE 'WMware ESXi' END as [OS], CASE WHEN H.Node.AssetInventory.ServerInformation.OSVersion is not null THEN H.Node.AssetInventory.ServerInformation.OSVersion ELSE 'unknown' END as [OS Version], H.CpuPkgCount as [Total CPU Sockets], H.CpuCoreCount as [Total CPU Cores], H.ProcessorType as [CPU Vendor], H.CpuCoreCount/CpuPkgCount as [CPU Cores Per Socket] FROM Orion.VIM.Hosts H ) ) AS Physical ORDER BY Physical.Node
What can I add in to give me if the node is physical or virtual?
Thanks all!