A CLI tool that runs smartctl on all disks, extracts key SMART health metrics, and stores historical results in SQLite for tracking changes over time.
Install smartmontools to provide the smartctl command, then install smartscan:
uv tool install smartscanCollect SMART data from all disks (requires root):
sudo smartscan collect
sudo smartscan collect --no-save "WDC"
sudo smartscan collect --verbose
sudo smartscan --json collectQuery historical records, filter by name, or get JSON output:
smartscan query --since 2026-01-01
smartscan query --last-days 7 --verboseMap disks to their /dev/disk/ identifiers (no root needed):
smartscan lsblk
smartscan lsblk --source by-id "Samsung"
smartscan --exclude '^/dev/(loop|zd)\d+' lsblkRead the full documentation for shell completion, configuration reference, and advanced usage.