OpenMediaVault  0.6 (Kralizec)
The open network attached storage solution
 All Classes Functions Variables Groups Pages
Public Member Functions | Protected Attributes | List of all members
OMVATASMARTInformation Class Reference
Inheritance diagram for OMVATASMARTInformation:
OMVObject

Public Member Functions

 __construct ($deviceFile, $type)
 
 refresh ()
 
 getExtendedInformation ()
 
 getAttributes ()
 
 getSelfTestLogs ()
 
 getInformation ()
 
 getTemperature ()
 
- Public Member Functions inherited from OMVObject
 __construct ()
 
 getLastError ()
 

Protected Attributes

 $deviceFile = ""
 
 $type = ""
 

Additional Inherited Members

- Protected Member Functions inherited from OMVObject
 setLastError ($error)
 
 debug ()
 

Detailed Description

This class implements methods to get and process S.M.A.R.T. AT Attachment (ATA) information and properties.

Constructor & Destructor Documentation

OMVATASMARTInformation::__construct (   $deviceFile,
  $type 
)

Constructor

Parameters
deviceFileSpecifies the device file, e.g.
/dev/sdb
  • /dev/cciss/c0d0
  • /dev/disk/by-id/scsi-SATA_ST3200XXXX2AS_5XWXXXR6
  • /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0
typeSpecifies the type of the device, e.g. ata, cciss or 3ware.

Member Function Documentation

OMVATASMARTInformation::getAttributes ( )

Get the S.M.A.R.T. attributes data structure.

Returns
An array of S.M.A.R.T. attributes data, otherwise FALSE.
OMVATASMARTInformation::getExtendedInformation ( )

Get the plain text 'smartctl' command output.

Returns
The command output, otherwise FALSE.
OMVATASMARTInformation::getInformation ( )

Get various device information.

Returns
An array of strings, otherwise FALSE.
OMVATASMARTInformation::getSelfTestLogs ( )

Get the S.M.A.R.T. Self-test log structure.

Returns
An array of S.M.A.R.T. self-test logs, otherwise FALSE.
OMVATASMARTInformation::getTemperature ( )

Get the device temperature in °C (value only, no unit).

Returns
The temperature value, otherwise FALSE.
OMVATASMARTInformation::refresh ( )

Refresh the cached information.

Returns
TRUE if successful, otherwise FALSE.

The documentation for this class was generated from the following file: