Getting system manufacturer

(imported topic written by dmoore21)

I’m trying to create a relevance statement that combines a WMI query and a DMI query… here’s each query individually:

if (exists wmi) then (string value of select “Manufacturer from Win32_ComputerSystem” of wmi) else (“N/A”)

if (exists dmi AND exists manufacturer of system_information of dmi) then (manufacturer of system_information of dmi) else (“N/A”)

I would like to combine them in to one… and so far, I’ve tried this:

if (exists wmi) then (string value of select “Manufacturer from Win32_ComputerSystem” of wmi) else if (exists dmi AND exists manufacturer of system_information of dmi) then (manufacturer of system_information of dmi) else (“N/A”)

But my try at the combined relevance isn’t working… Anyone have any ideas?

(imported comment written by NoahSalzman)

Seems to work for me. Am I missing something?

(imported comment written by dmoore21)

I switched the relevance statements and it seems to be working now…

if (exists dmi) then (manufacturer of system_information of dmi) else if (exists wmi) then (string value of select “Manufacturer from Win32_ComputerSystem” of wmi) else (“N/A”)

On a related note, is there a way to get the same info for Solaris and Mac machines? Using the above query, information is returned for RHEL and other Linux machines, and Windows machines… but nothing for the aforementioned Solaris and Mac machines…

(imported comment written by NoahSalzman)

If you have IEM for Lifecycle Management then all of this can be found out-of-the-box under the “Inventory Management” node in the Lifecycle domain.

(imported comment written by dmoore21)

Doesn’t look like we do.

Oh well.

(imported comment written by jgstew)

You can get similar info from SMBIOS

http://bigfix.me/analysis/details/2994601

value
"vendor"

of
structure
"bios_information"

of
smbios

value “manufacturer” of structure “base_board_information” of smbios