BlockDev.SmartSCSI

Fields

Name

Type

Access

Description

background_medium_scan_runs

int

r/w

Number of background medium scans performed.

background_scan_progress

float

r/w

Percent of a background scan progress.

background_scan_runs

int

r/w

Number of background scans performed.

background_scan_status

BlockDev.SmartSCSIBackgroundScanStatus

r/w

Background scan status, see BlockDev.SmartSCSIBackgroundScanStatus.

load_unload_cycle_count

int

r/w

Accumulated load-unload cycles.

load_unload_cycle_lifetime

int

r/w

Specified load-unload count over device lifetime.

overall_status_passed

bool

r/w

True if the device SMART overall-health self-assessment test result has passed, False otherwise with scsi_ie fields set.

power_on_time

int

r/w

Accumulated power on time in minutes.

read_errors_corrected_eccdelayed

int

r/w

Error counter log - read errors corrected by ECC delayed.

read_errors_corrected_eccfast

int

r/w

Error counter log - read errors corrected by ECC fast.

read_errors_corrected_rereads

int

r/w

Error counter log - read errors corrected by rereads.

read_errors_corrected_total

int

r/w

Error counter log - total read errors corrected.

read_errors_uncorrected

int

r/w

Error counter log - total uncorrected read errors.

read_processed_bytes

int

r/w

Error counter log - total bytes processed.

scsi_grown_defect_list

int

r/w

Elements in grown defect list.

scsi_ie

BlockDev.SmartSCSIInformationalException

r/w

The reported SCSI Informational Exception in a simplified form. See BlockDev.SmartSCSIInformationalException.

scsi_ie_asc

int

r/w

The reported SCSI Informational Exception ASC (Additional Sense Code) value (only values of 0xb - warnings and 0x5d - impending failures are taken in account).

scsi_ie_ascq

int

r/w

The reported SCSI Informational Exception ASCQ (Additional Sense Code Qualifier) value.

scsi_ie_string

str

r/w

String representation of the current SCSI Informational Exception.

smart_enabled

bool

r/w

Indicates that the SMART support is enabled.

smart_supported

bool

r/w

Indicates that the device has SMART capability.

start_stop_cycle_count

int

r/w

Accumulated start-stop cycles.

start_stop_cycle_lifetime

int

r/w

Specified cycle count over device lifetime.

temperature

int

r/w

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

temperature_drive_trip

int

r/w

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

temperature_warning_enabled

bool

r/w

Indicates that temperature warning is enabled.

write_errors_corrected_eccdelayed

int

r/w

Error counter log - write errors corrected by ECC delayed.

write_errors_corrected_eccfast

int

r/w

Error counter log - write errors corrected by ECC fast.

write_errors_corrected_rewrites

int

r/w

Error counter log - write errors corrected by rewrites.

write_errors_corrected_total

int

r/w

Error counter log - total write errors corrected.

write_errors_uncorrected

int

r/w

Error counter log - total uncorrected write errors.

write_processed_bytes

int

r/w

Error counter log - total bytes processed.

Methods

class

get_info (device, extra)

Details

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

GLib.Error

Returns:

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

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

Return type:

BlockDev.SmartSCSI

Retrieve SMART information from SCSI or SAS-compliant drive.