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($snmp, $dictionnary)
return a minimal set of information for a device through SNMP, according to a set of rules hardcoded in the agent and the usage of an additional knowledge base, the dictionary.
setConnectedDevicesMacAddresses($description, $results, $ports, $walks, $vlan_id)
set mac addresses of connected devices.
description: device identification key
results: raw values collected through SNMP
ports: device ports list
walks: model walk branch
vlan_id: VLAN identifier
setConnectedDevices($description, $results, $ports, $walks)
Set connected devices using CDP if available, LLDP otherwise.
description: device identification key
results: raw values collected through SNMP
ports: device ports list
walks: model walk branch
setTrunkPorts($description, $results, $ports)
Set trunk flag on ports needing it.
description: device identification key
results: raw values collected through SNMP
ports: device ports list
performSpecificCleanup($description, $results, $ports)
Perform device-specific miscaelanous cleanups
description: device identification key
results: raw values collected through SNMP
ports: device ports list