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
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 lsblk
smartscan lsblk --source by-id "Samsung"
smartscan lsblk --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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smartscan-0.3.1.tar.gz.
File metadata
- Download URL: smartscan-0.3.1.tar.gz
- Upload date:
- Size: 94.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2bbf7ab62c863e8c0095430cd038ed6c7e1e638a2b24757d94f50bc816fa0c2
|
|
| MD5 |
c170cbf3f333aec32f4bd026d23ca99d
|
|
| BLAKE2b-256 |
b989b537dd8d97a4e1bc7d8df544ff783d2965100da03dd602bdd4f29351291b
|
Provenance
The following attestation bundles were made for smartscan-0.3.1.tar.gz:
Publisher:
publish-to-pypi.yaml on ak1ra-lab/smartscan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
smartscan-0.3.1.tar.gz -
Subject digest:
b2bbf7ab62c863e8c0095430cd038ed6c7e1e638a2b24757d94f50bc816fa0c2 - Sigstore transparency entry: 1814558493
- Sigstore integration time:
-
Permalink:
ak1ra-lab/smartscan@e7f06fddbecd93956f8f761adca95c82b6a44b2e -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/ak1ra-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@e7f06fddbecd93956f8f761adca95c82b6a44b2e -
Trigger Event:
push
-
Statement type:
File details
Details for the file smartscan-0.3.1-py3-none-any.whl.
File metadata
- Download URL: smartscan-0.3.1-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aa9ebf314f40b9a6ecc6308d9de888c076b763842dfa61c409c0ff4c7932aa3
|
|
| MD5 |
8bf38e9d696eaae9060d2f99101eb138
|
|
| BLAKE2b-256 |
84a3a97bf0deb7559c16cb8760fce506967b43c80d3902f297c2482583507f22
|
Provenance
The following attestation bundles were made for smartscan-0.3.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yaml on ak1ra-lab/smartscan
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
smartscan-0.3.1-py3-none-any.whl -
Subject digest:
5aa9ebf314f40b9a6ecc6308d9de888c076b763842dfa61c409c0ff4c7932aa3 - Sigstore transparency entry: 1814558591
- Sigstore integration time:
-
Permalink:
ak1ra-lab/smartscan@e7f06fddbecd93956f8f761adca95c82b6a44b2e -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/ak1ra-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@e7f06fddbecd93956f8f761adca95c82b6a44b2e -
Trigger Event:
push
-
Statement type: