0

Is there any python library to access low-level disk details?

I need:

  • SMART attributes
  • Serial number
  • Firmware version
  • SATA Phy counters
  • SMART Extended Self-test log records
  • Enclosure/letter/sg-device mapping
  • ATA Security command access
  • SCSI generic access (sg_inq, sg_format, etc)

Any ideas, outside of parsing output of smartctl, hdparm and sg3-utils?

Thanks!

George Shuklin
  • 6,952
  • 10
  • 39
  • 80

2 Answers2

2

pySMART does at least some of this. It is a wrapper for smartmontools though.

Oleksandr Kravchuk
  • 5,963
  • 1
  • 20
  • 31
1

I dont know if this is of any help but you might get some of the point you mentioned done with it thought

markus
  • 26
  • 1