FusionInventory::Agent::Tools::MacOS(3)

NAME
FusionInventory::Agent::Tools::MacOS - MacOS generic functions

DESCRIPTION
This module provides some generic functions for MacOS.

FUNCTIONS

  getSystemProfilerInfos(%params)
Returns a structured view of system_profiler output. Each information block is turned into a hashref, hierarchically organised.

$info = {
    'Hardware' => {
        'Hardware Overview' => {
            'SMC Version (system)' => '1.21f4',
            'Model Identifier' => 'iMac7,1',
            ...
        }
    } }

logger a logger object
command the exact command to use (default: /usr/sbin/system_profiler)
file the file to use, as an alternative to the command

  getIODevices(%params)
Returns a flat list of devices as a list of hashref, by parsing ioreg output. Relationships are not extracted.

logger a logger object
class the class of devices wanted
file the file to use, as an alternative to the command