Clone this repository onto a FreeBSD box and run make
$ hg clone https://foss.heptapod.net/bsdutils/smart
or
$ git clone https://github.com/ctuffli/smart
$ cd smart && make
or install it from ports ( http://www.freshports.org/sysutils/smart/ )
Usage: smart [-htxi] [-a <attribute id>] <device name>
-h, --help
-t, --threshold : also print out the threshold values
-x, --hex : print the values out in hexadecimal
-a, --attribute : print a specific attribute
-i, --info : print general device information
-v, --version : print the version and copyright
List the raw attributes of SATA device /dev/ada0
smart ada0
The format and location of SMART / health data varies across protocols. To simplify the output, the application uses a Dumb Unified Model of SMART Buffers. In this model, SMART data is located in one or more log pages. Each page contains one or more values ("attributes") differentiated by an ID. Note that ID's are only unique within a log page. Thus, the application outputs:
<Log Page ID> <Attribute ID> <Attribute value>
for each selected attribute. Threshold values, if defined by the protocol and selected by the user, are printed after the attribute value.
See the shell scripts atasmart
, nvmesmart
, and scsismart
for examples of parsing the output.