NAME
FusionInventory::Agent::Tools::Linux - Linux generic functions
DESCRIPTION
This module provides some generic functions for Linux.
FUNCTIONS
getDevicesFromUdev(%params)
Returns a list of devices, by parsing /dev/.udev directory. This directory is not exported anymore with recent udev.
Availables parameters:
getDevicesFromHal(%params)
Returns a list of devices, by parsing lshal output.
Availables parameters:
- logger a logger object
- command the exact command to use (default: /usr/sbin/lshal)
- file the file to use, as an alternative to the command
getDevicesFromProc(%params)
Returns a list of devices, by parsing /proc filesystem.
Availables parameters:
getCPUsFromProc(%params)
Returns a list of cpus, by parsing /proc/cpuinfo file
Availables parameters:
getInfoFromSmartctl(%params)
Returns some information about a device, using smartctl.
Availables parameters:
getInterfacesFromIfconfig(%params)
Returns the list of interfaces, by parsing ifconfig command output.
Availables parameters:
getInterfacesInfosFromIoctl(%params)
Returns interface datas, by parsing results from ethtool system call request.
Availables parameters:
getInterfacesFromIp(%params)
Returns the list of interfaces, by parsing ip command output.
Availables parameters: