++ed by:
AERO

1 PAUSE user
1 non-PAUSE user.

Guillaume Bougard

NAME

FusionInventory::Agent::Tools::Generic - OS-independent generic functions

DESCRIPTION

This module provides some OS-independent generic functions.

FUNCTIONS

getDmidecodeInfos

Returns a structured view of dmidecode output. Each information block is turned into an hashref, block with same DMI type are grouped into a list, and each list is indexed by its DMI type into the resulting hashref.

$info = { 0 => [ { block } ], 1 => [ { block }, { block }, ], ... }

getCpusFromDmidecode()

Returns a list of CPUs, from dmidecode output.

getHdparmInfo(%params)

Returns some information about a device, using hdparm.

Availables parameters:

logger a logger object
device the device to use
file the file to use

getPCIDevices(%params)

Returns a list of PCI devices as a list of hashref, by parsing lspci command output.

logger a logger object
command the exact command to use (default: lspci -vvv -nn)
file the file to use, as an alternative to the command

getPCIDeviceVendor(%params)

Returns the PCI vendor matching this ID.

id the vendor id
logger a logger object
datadir the directory holding the PCI database

getPCIDeviceClass(%params)

Returns the PCI class matching this ID.

id the class id
logger a logger object
datadir the directory holding the PCI database

getUSBDeviceVendor(%params)

Returns the USB vendor matching this ID.

id the vendor id
logger a logger object
datadir the directory holding the USB database

getUSBDeviceClass(%params)

Returns the USB class matching this ID.

id the class id
logger a logger object
datadir the directory holding the USB database

getEDIDVendor(%params)

Returns the EDID vendor matching this ID.

id the vendor id
logger a logger object
datadir the directory holding the edid vendors database