NAME

FusionInventory::Agent::Tools::Hardware - Hardware-related functions

DESCRIPTION

This module provides some hardware-related functions.

FUNCTIONS

getDeviceBaseInfo($snmp)

return a minimal set of information for a device through SNMP, according to a set of rules hardcoded in the agent.

getDeviceInfo(%params)

return a limited set of information for a device through SNMP, according to a set of rules hardcoded in the agent and the usage of generic knowledge base, the dictionary.

getDeviceFullInfo(%params)

return a full set of information for a device through SNMP, according to a set of rules hardcoded in the agent and the usage of a device-specific set of mappings, the model.

getCanonicalSerialNumber($value)

Return a canonical value for a serial number.

getCanonicalMacAddress($value)

Return a canonical value for a mac address.

getCanonicalMemory($value)

Return a canonical value for mac address, in bytes.

getElement($oid, $index)

return the $index element of an oid.

getElements($oid, $first, $last)

return all elements of index in range $first to $last of an oid.

loadModel($file)

Load an SNMP description model from given file.