FusionInventory::Agent::Inventory - Inventory data structure
This is a data structure corresponding to an hardware and software inventory.
The constructor. The following parameters are allowed, as keys of the %params hash:
a logger object
a path to a writable directory containing the last serialized inventory
an arbitrary label, used for server-side filtering
Get content attribute.
Merge content to the inventory.
Add a new entry to the inventory. The following parameters are allowed, as keys of the %params hash:
the entry section (mandatory)
the entry (mandatory)
ignore entry if already present
Set inventory tag, an arbitrary label used for filtering on server side.
Save global information regarding the machine.
Operating System information.
Set BIOS information.
What is that for? :)
Compute the inventory checksum. This information is used by the server to know which parts of the inventory have changed since the last one.
Compute the inventory global values, meaning values in hardware section such as CPU number, speed and model, computed from other values, but needed for OCS compatibility.
At the end of the process IF the inventory was saved correctly, the last_state is saved.
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.