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 --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.

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.4.0.tar.gz (107.6 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.4.0-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smartscan-0.4.0.tar.gz
Algorithm Hash digest
SHA256 39fdc8ad4211280a290d8a3a58934e748ea2996aea4c73f8ea4120da6634345a
MD5 442d4fba1f5fc2787def03dab21e4251
BLAKE2b-256 8515e82c240ca3240fde886be709447361c0879a888bf4ddfeb6a85cfa55a0f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for smartscan-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: smartscan-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 37.5 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39181317d247e53491c6f1526b0f58256ee7afb9682399c97a2fdccfea14f137
MD5 ae846e91de1e4e334e25288c844dc9a7
BLAKE2b-256 ca418be03de877231f7954f1b34f6225e768bacd5074d450dbddabb0f5a429b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for smartscan-0.4.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