Script That Shows Smart Values of All Disks'

October 05, 2013 Category: Storage

So you have a Linux system with a lot of hard drives. If you want to quickly check on some key SMART values to determine the health of individual disks, you might be interested in this script.

I wrote a small Python script called 'showsmart' that displays key SMART values for all disks that support SMART. This has been tested on Ubuntu and Debian.

showsmart

  • REALLOC. = Reallocated Sector Count
  • PENDING = Current Pending Sector
  • CRC ERR. = UDMA CRC ERROR

This script only requires python and smartctl (smartmontools).

I hope someone will find it useful.

Comments