One more UNIX question - capturing UUID

(imported topic written by rad.ricka91)

Capturing UUID on a Windows sytem is done by a query to WMI such as:

string value of selects “UUID from Win32_ComputerSystemProduct” of wmi

Obviously this is trickier on UNIX system as there’s no WMI, but dmidecode comes to the rescue:

k11-dl380g3# dmidecode -s system-uuid

38303041-4B4A-4E5A-3157-202020202020

The question is how to make this into a fixlet that would pull in the UUID for both Win and UNIX. The only way I can see is by creating a recurring action that would pop the info into a txt file on UNIX and then gathering this with an RP. I can’t think of a way how to define this solely in an RP.

Is my thinking correct?

R.

(imported comment written by BenKus)

Hey Rad,

Yes. You are correct.

If there is a property that we do not have an inspector for, you can schedule a recurring action that will write the information to a file, regkey, or whatever and then inspect the output. This trick works well in many situations including the situation you described (even if it takes a few more steps than a basic property).

The nice thing about this particular piece of information is that it is unlikely to change often so you aren’t particularly worried about the “real-time-ness” of the information.

Ben