|
openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Public Member Functions | |
| __construct ($deviceFile, $type, $sd=null) | |
| getDeviceFile () | |
| getType () | |
| refresh () | |
| getExtendedInformation () | |
| getAttributes () | |
| getAttribute ($id) | |
| getSelfTestLogs () | |
| getInformation () | |
| getTemperature () | |
| getOverallStatus () | |
Protected Attributes | |
| $deviceFile = "" | |
| $type = "" | |
| $sd = NULL | |
This class implements methods to get and process S.M.A.R.T. AT Attachment (ATA) information and properties.
| OMV\System\Storage\SmartInformation::__construct | ( | $deviceFile, | |
| $type, | |||
$sd = null |
|||
| ) |
Constructor
| deviceFile | Specifies the device file, e.g.
|
| type | Specifies the type of the device, e.g. 'ata', 'cciss' or '3ware'. For more details please check the option '-d' in http://smartmontools.sourceforge.net/man5/smartd.conf.5.html. |
| sd | The storage device object. Defaults to NULL. |
| OMV\System\Storage\SmartInformation::getAttribute | ( | $id | ) |
Get a specific attribute by ID.
| OMV\System\Storage\SmartInformation::getAttributes | ( | ) |
Get the S.M.A.R.T. attributes data structure.
| OMV\System\Storage\SmartInformation::getDeviceFile | ( | ) |
Get the device path, e.g. /dev/sda.
| OMV\System\Storage\SmartInformation::getExtendedInformation | ( | ) |
Get the plain text 'smartctl' command output.
| OMV\System\Storage\SmartInformation::getInformation | ( | ) |
Get various device information.
| OMV\System\Storage\SmartInformation::getOverallStatus | ( | ) |
Get the overall assessment for the device.
| OMV\System\Storage\SmartInformation::getSelfTestLogs | ( | ) |
Get the S.M.A.R.T. Self-test log structure.
| OMV\System\Storage\SmartInformation::getTemperature | ( | ) |
Get the device temperature in °C (value only, no unit).
| OMV\System\Storage\SmartInformation::getType | ( | ) |
Get the type of the device, e.g. 'ata', 'sat', 'cciss' or '3ware'. Note, this can be an empty string.
| OMV\System\Storage\SmartInformation::refresh | ( | ) |
Refresh the cached information.
1.8.13