BlockDev.SmartATA¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
attributes |
r/w |
A list of reported SMART attributes. |
|
auto_offline_data_collection_enabled |
r/w |
|
|
offline_data_collection_capabilities |
r/w |
Bitmask of offline data collection capabilities, see |
|
offline_data_collection_completion |
r/w |
Total time in seconds to complete Offline data collection. |
|
offline_data_collection_status |
r/w |
The offline data collection status. See |
|
overall_status_passed |
r/w |
|
|
power_cycle_count |
r/w |
The count of full hard disk power on/off cycles. |
|
power_on_time |
r/w |
The count of minutes in power-on state. |
|
self_test_percent_remaining |
r/w |
The percentage remaining of a running self-test. |
|
self_test_polling_conveyance |
r/w |
Conveyance self-test routine recommended polling time in minutes or 0 if not supported. |
|
self_test_polling_extended |
r/w |
Extended self-test routine recommended polling time in minutes or 0 if not supported. |
|
self_test_polling_short |
r/w |
Short self-test routine recommended polling time in minutes or 0 if not supported. |
|
self_test_status |
r/w |
Self-test execution status. See |
|
smart_capabilities |
r/w |
Bitmask of device misc. SMART capabilities. See |
|
smart_enabled |
r/w |
Indicates that the SMART support is enabled. |
|
smart_supported |
r/w |
Indicates that the device has SMART capability. |
|
temperature |
r/w |
The current drive temperature in Kelvin or 0 when temperature is not reported. |
Methods¶
class |
|
class |
|
Details¶
- class BlockDev.SmartATA¶
- classmethod get_info(device, extra)¶
- Parameters:
device (
str
) – device to check.extra ([
BlockDev.ExtraArg
] orNone
) – extra options to pass through.
- Raises:
- Returns:
ATA SMART log or
None
in case of an error (with error set).Tech category:
BlockDev.SmartTech.ATA
-BlockDev.SmartTechMode.INFO
- Return type:
Retrieve SMART information from the drive.
- classmethod get_info_from_data(data)¶
- Parameters:
data (
bytes
) – binary data to parse.- Raises:
- Returns:
ATA SMART log or
None
in case of an error (with error set).Tech category:
BlockDev.SmartTech.ATA
-BlockDev.SmartTechMode.INFO
- Return type:
Retrieve SMART information from the supplied data.