FusionInventory::Agent::Tools::MacOS - MacOS generic functions
This module provides some generic functions for MacOS.
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', ... } } }
Returns a flat list of devices as a list of hashref, by parsing ioreg output. Relationships are not extracted.
To install FusionInventory::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FusionInventory::Agent
CPAN shell
perl -MCPAN -e shell install FusionInventory::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.