Comment 6 for bug 586321

Revision history for this message
Guillaume Rousse (guillaume-rousse) wrote :

A much better solution would be the one implemented in fusioninventory: don't bother with the dmidecode version just to be able to filter the result, but run it once without option, so as to catch the full output, and cache the result.

If you're insterested, the parsing code is available there (getInfosFromDmidecode):
https://github.com/guillomovitch/fusioninventory-agent/blob/master/lib/FusionInventory/Agent/Tools.pm