BlockDev.SmartATA

Fields

Name

Type

Access

Description

attributes

[BlockDev.SmartATAAttribute]

r/w

A list of reported SMART attributes.

auto_offline_data_collection_enabled

bool

r/w

True if Automatic Offline Data Collection is enabled. Only supported with the smartmontools plugin.

offline_data_collection_capabilities

int

r/w

Bitmask of offline data collection capabilities, see BlockDev.SmartATAOfflineDataCollectionCapabilities. Only supported with the smartmontools plugin.

offline_data_collection_completion

int

r/w

Total time in seconds to complete Offline data collection.

offline_data_collection_status

BlockDev.SmartATAOfflineDataCollectionStatus

r/w

The offline data collection status. See BlockDev.SmartATAOfflineDataCollectionStatus.

overall_status_passed

bool

r/w

True if the device SMART overall-health self-assessment test result has passed.

power_cycle_count

int

r/w

The count of full hard disk power on/off cycles.

power_on_time

int

r/w

The count of minutes in power-on state.

self_test_percent_remaining

int

r/w

The percentage remaining of a running self-test.

self_test_polling_conveyance

int

r/w

Conveyance self-test routine recommended polling time in minutes or 0 if not supported.

self_test_polling_extended

int

r/w

Extended self-test routine recommended polling time in minutes or 0 if not supported.

self_test_polling_short

int

r/w

Short self-test routine recommended polling time in minutes or 0 if not supported.

self_test_status

BlockDev.SmartATASelfTestStatus

r/w

Self-test execution status. See BlockDev.SmartATASelfTestStatus.

smart_capabilities

int

r/w

Bitmask of device misc. SMART capabilities. See BlockDev.SmartATACapabilities. Only supported with the smartmontools plugin.

smart_enabled

bool

r/w

Indicates that the SMART support is enabled.

smart_supported

bool

r/w

Indicates that the device has SMART capability.

temperature

int

r/w

The current drive temperature in Kelvin or 0 when temperature is not reported.

Methods

class

get_info (device, extra)

class

get_info_from_data (data)

Details

class BlockDev.SmartATA
classmethod get_info(device, extra)
Parameters:
Raises:

GLib.Error

Returns:

ATA SMART log or None in case of an error (with error set).

Tech category: BlockDev.SmartTech.ATA-BlockDev.SmartTechMode.INFO

Return type:

BlockDev.SmartATA

Retrieve SMART information from the drive.

classmethod get_info_from_data(data)
Parameters:

data (bytes) – binary data to parse.

Raises:

GLib.Error

Returns:

ATA SMART log or None in case of an error (with error set).

Tech category: BlockDev.SmartTech.ATA-BlockDev.SmartTechMode.INFO

Return type:

BlockDev.SmartATA

Retrieve SMART information from the supplied data.