ctuffli / smart

Application to output the SMART values of disks (mirror)
ISC License
12 stars 1 forks source link

README

What is this repository for?

How do I get set up?

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/ )

How to use

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

Example

What does the output mean?

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.

Protocol Specific Notes