Skip to main content

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.

Project description

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 "WDC"
sudo smartscan --json collect

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

smartscan query --since 2026-01-01

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

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartscan-0.2.0.tar.gz (92.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartscan-0.2.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file smartscan-0.2.0.tar.gz.

File metadata

  • Download URL: smartscan-0.2.0.tar.gz
  • Upload date:
  • Size: 92.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smartscan-0.2.0.tar.gz
Algorithm Hash digest
SHA256 64562e4e35d8c54833e5bd3c28615c429ec21de7094215e79d4b514207bd47b3
MD5 0698681e60b9abbd7eab23dc103a087d
BLAKE2b-256 eb3413eb9a50b18f7640c1e4a2861cea839d1559db94c21dbca7ce19e31f8e52

See more details on using hashes here.

Provenance

The following attestation bundles were made for smartscan-0.2.0.tar.gz:

Publisher: publish-to-pypi.yaml on ak1ra-lab/smartscan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smartscan-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: smartscan-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smartscan-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3117c680389c33d55d98e8ea53550b4dab7caedf730b3cc366567be0c83b1ba2
MD5 923b118e537bd27f9fc7f7d9e49346b4
BLAKE2b-256 85a935746049ed2fcd536ca49213850eeaef0e8ee4126e20045452c7dbc0d606

See more details on using hashes here.

Provenance

The following attestation bundles were made for smartscan-0.2.0-py3-none-any.whl:

Publisher: publish-to-pypi.yaml on ak1ra-lab/smartscan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page