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.
Get full machine inventory section.
Get a field from a full machine inventory section.
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.
Get machine global information from known machine inventory.
Save global information regarding the machine.
Operating System information.
Get BIOS information from known inventory.
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.
Method to get the parent task remote status.
Returns the string set by setRemote() API or an empty string.
Method to set or reset the parent task remote status.
Without $task parameter, the API resets the parent remote status to an empty string.