---
name: "FusionInventory::Agent::Tools::MacOS"
section: "3pm"
platform: "linux"
package: "fusioninventory-agent"
version: "2.2.3-8"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/FusionInventory::Agent::Tools::MacOS"
---

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

MacOS generic functions

## 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
