Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2017 11:25:25 -0700
From:      Chuck Tuffli <chuck@tuffli.net>
To:        freebsd-scsi <freebsd-scsi@freebsd.org>
Subject:   [RFC] native SMART library / tool
Message-ID:  <CAM0tzX3fJ8SC0zh-Bk%2B5yCJhherFaK%2BQX7HhmZukREV%2BjFv6hQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
At AsiaBSDCon 2016, Michael Dexter proposed =E2=80=9Cdiskctl(8): A
permissively-licensed S.M.A.R.T. and raw disk command utility
framework=E2=80=9D [1]. While the proposal had ambitious goals, I was
specifically curious about how to report SMART attributes across SATA,
SCSI, and NVMe in a standardized way that might be useful to other
applications. After some experimentation and feedback from Michael, I
have code [2] that can retrieve SMART attributes from each of the
above protocols. The code is functional but not in its final form as I
wanted some feedback from the community first. Things which would be
useful:
 - does this work on your drive(s)?
 - is the output useful? if not, what do you need?
 - is the library interface useful? if not, what's missing / needed?

Keep in mind, the scope of the code is intentionally narrow (i.e.
retrieve SMART values), but please mention features you think would be
useful. Also note, that retrieving NVMe SMART values requires
-CURRENT.

[1] https://www.bsdcan.org/2016/schedule/attachments/339_AsiaBSDCon-diskctl=
.pdf
[2] https://bitbucket.org/ctuffli/smart



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM0tzX3fJ8SC0zh-Bk%2B5yCJhherFaK%2BQX7HhmZukREV%2BjFv6hQ>