Skip to content

ak1ra-lab/smartscan

Repository files navigation

smartscan

GitHub Actions Workflow Status PyPI - Version PyPI - Version Docs

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.

Quick start

Install smartmontools to provide the smartctl command, then install smartscan:

uv tool install smartscan

Collect SMART data from all disks (requires root):

sudo smartscan collect
sudo smartscan collect --no-save "WDC"
sudo smartscan collect --verbose
sudo smartscan --json collect

Query historical records, filter by name, or get JSON output:

smartscan query --since 2026-01-01
smartscan query --last-days 7 --verbose

Map disks to their /dev/disk/ identifiers (no root needed):

smartscan lsblk
smartscan lsblk --source by-id "Samsung"
smartscan --exclude '^/dev/(loop|zd)\d+' lsblk

Read the full documentation for shell completion, configuration reference, and advanced usage.

About

A CLI tool that collects SMART data from disk devices, checks configurable health thresholds, optionally analyses results with an LLM, and tracks history in SQLite.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages