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?
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…