Computer Serial number not reporting

(imported topic written by maheshbk91)

Hi,

The linux systems in our network are not reporting the Computer serial number, but the Windows systems are reporting for the same property. The Linux systems report as - Undefined (The Operator “wmi” is not defined.)

The property being used is “Computer serial number or service tag” - if (exists wmi) then (string values of selects “SerialNumber from Win32_BIOS” of wmi) else if (exists dmi AND exists serial_number of system_information of dmi) then (serial_number of system_information of dmi) else (“N/A”).

Mahesh

(imported comment written by kaushalw91)

Linux does not use WMI. For linux you might need different relevance. I am not much tech savy as far as Bigfix is concerned for Linux. May be Ben or Jesse can give you the relevance. :slight_smile:

(imported comment written by BenKus)

I think Linux uses DMI… Does this slight variant of your relevance work?

if (name of operating system contains “Win” AND exists wmi) then (string values of selects “SerialNumber from Win32_BIOS” of wmi) else if (exists dmi AND exists serial_number of system_information of dmi) then (serial_number of system_information of dmi) else (“N/A”)

Ben

(imported comment written by maheshbk91)

Still no luck, the systems are still reporting (The operator “wmi” is not defined). We are using SuSE Enterprise Desktop 10 with SP2 and Kernel - 2.6.16.60.0.27, thought this might be of some use to you.

Is there anyway to check if the linux systems are listening for dmi and which port does it use?

Mahesh

(imported comment written by BenKus)

Try this:

if (name of operating system contains “Win”) then (string values of selects “SerialNumber from Win32_BIOS” of wmi) else if (exists dmi AND exists serial_number of system_information of dmi) then (serial_number of system_information of dmi) else (“N/A”)

Ben

(imported comment written by maheshbk91)

Thanks Ben, it worked.

(imported comment written by maheshbk91)

Had another query, the Linux systems are also not reporting for Computer Manufacturer and Model.

Mahesh

(imported comment written by BenKus)

Try changing:

… if (exists wmi) …

to

… if (name of operating system contains “Win”) …

That should help resolve the error.

Ben

(imported comment written by maheshbk91)

Sorry for misleading by posting in the same thread, the properties I am using are -

Computer Manufacturer

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

Computer Model

if (exists wmi) then (string values of selects “Model from Win32_ComputerSystem” of wmi) else (“N/A”)

This is as retrieved from - http://support.bigfix.com/bes/misc/retrievedproperties.html. This does not have a query for Linux systems (DMI).

Mahesh

(imported comment written by BenKus)

Hi Mahesh,

I don’t have a Linux system to test with myself, but most DMI queries come in the form similar to:

serial_number of system_information of dmi

so you can look through http://support.bigfix.com/fixlet/documents/LinuxInspectors_71_080827.pdf and see if you can find the DMI queries to find the properties you are looking for.

Ben

(imported comment written by maheshbk91)

Thanks Ben it worked, the PDF came in handy. The properties I am using are -

Computer Manufacturer:

if (name of operating system contains “Win”) then (string value of select “Manufacturer from Win32_ComputerSystem” of wmi) else if (exists dmi AND exists manufacturer of system_enclosure_or_chassis of dmi) then (manufacturer of system_enclosure_or_chassis of dmi) else (“N/A”)

Computer Model:

if (name of operating system contains “Win”) then (string values of selects “Model from Win32_ComputerSystem” of wmi) else if (exists dmi AND exists product_name of system_information of dmi) then (product_name of system_information of dmi) else (“N/A”)

Mahesh

(imported comment written by Vern91)

maheshbk

Computer Manufacturer:

if (name of operating system contains “Win”) then (string value of select “Manufacturer from Win32_ComputerSystem” of wmi) else if (exists dmi AND exists manufacturer of system_enclosure_or_chassis of dmi) then (manufacturer of system_enclosure_or_chassis of dmi) else (“N/A”)

Computer Model:

if (name of operating system contains “Win”) then (string values of selects “Model from Win32_ComputerSystem” of wmi) else if (exists dmi AND exists product_name of system_information of dmi) then (product_name of system_information of dmi) else (“N/A”)

Mahesh

For people that are using Windows 7 , the relevance using

"of operating system contains “Win” "

will resolve to N/A.

going back to ;

if (exists wmi) then (string values of selects “Model from Win32_ComputerSystem” of wmi) else if (exists dmi AND exists product_name of system_information of dmi) then (product_name of system_information of dmi) else (“N/A”)

also doesn’t work.

Still checking

(imported comment written by jessewk)

For people that are using Windows 7 , the relevance using "of operating system contains “Win” " will resolve to N/A.

Try the latest version of the BES Client (7.2.4.60)

(imported comment written by Vern91)

jessewk

For people that are using Windows 7 , the relevance using "of operating system contains “Win” " will resolve to N/A.

Try the latest version of the BES Client (7.2.4.60)

So here is a catch 22, sort of. We have the upgrade jog running;

Updated BES Client Now Available! (Version 7.2.4.60) - WinNT/2000/2003/XP/Vista/2008

Since all of our test machine had XP installed and had BigFix, but the older client version, they never get the newer version of the client once they are upgraded to Windows7. Since the OS version is appearing as ;

UnKnown 6.1.7100

The relevance in the Update is looking for;

name of operating system as lowercase starts with “win”

hence no update. One will need to modify the relevance and remove the above line and point it directly at the specific machines or install the newer client manually.

Vern

(imported comment written by BenKus)

Hey Vern,

Very good point… Probably the easiest thing to do if you have Windows 7 running pre-7.2.4 agents will be to take the upgrade action from the Fixlet and modify the relevance to change

name of operating system as lowercase starts with “win”

to

name of operating system as lowercase starts with “win” OR name of operating system as lowercase starts with “unknown”

(as you suggested).

Ben

(imported comment written by SystemAdmin)

Hello,

I realize this is an old post but I have a similar question regarding the same subject.

Here’s my output from testing the dmi for linux using qna (http://support.bigfix.com/cgi-bin/kbdirect.pl?id=347):

Q: if (name of operating system contains “Win”) then (string values of selects “SerialNumber from Win32_BIOS” of wmi) else if (exists dmi AND exists serial_number of system_information of dmi) then (serial_number of system_information of dmi) else (“N/A”)

A: VMware-NA NA NA NA NA NA NA NA-NA NA NA NA NA AA NN NN

T: 9130

Q: if (name of operating system contains “Win”) then (string value of select “Manufacturer from Win32_ComputerSystem” of wmi) else if (exists dmi AND exists manufacturer of system_enclosure_or_chassis of dmi) then (manufacturer of system_enclosure_or_chassis of dmi) else (“N/A”)

A: No Enclosure

T: 543

Q: if (name of operating system contains “Win”) then (string values of selects “Model from Win32_ComputerSystem” of wmi) else if (exists dmi AND exists product_name of system_information of dmi) then (product_name of system_information of dmi) else (“N/A”)

A: VMware Virtual Platform

T: 428

So my question is…what are the equivalents for the other platforms,such as, solaris,aix,hp-ux,(and/or if you know the others).

If the inspector for a particular platform has nothing available, is there a way to execute platform commands (eeprom|grep blah blah) ? and incorporate into a fixlet to capture and present chassis number, for example?

Thanks much,

John