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

FusionInventory::Agent::Tools::MacOS3pm

Macos generic functions

Overview

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

From fusioninventory-agent 2.2.3-8 in Debian 7 (Wheezy). Parsed by carta from the page's man source.