SnapFS Scanner Agent
The SnapFS Scanner Agent runs file system scans on machines that have direct access to storage (local disks, network mounts, etc.).
What it does
- Runs
snapfs scanlocally on demand - Works with local filesystems and mounted storage
- Runs continuously in the background
- Designed for servers, NAS hosts, and storage-adjacent machines
The agent does not:
- schedule scans itself
- publish scan results directly
- require special filesystem access beyond what
snapfsneeds
Requirements
- Python 3.8+
- The
snapfsCLI installed and available onPATH - Network access
Installation
Using pip
pip install snapfs-agent-scanner snapfs
Run the agent:
snapfs-agent-scanner
With explicit configuration:
snapfs-agent-scanner \
--gateway https://localhost:8000 \
--agent-id scanner-01 \
--scan-root /mnt/data
Docker
docker run --rm \
-e SNAPFS_AGENT_ID=scanner-01 \
-e SNAPFS_SCAN_ROOT=/mnt/data \
-e GATEWAY_WS=ws://gateway:8000 \
-v /mnt/data:/mnt/data \
ghcr.io/snapfsio/snapfs-agent-scanner:latest
The container runs the scanner agent continuously and executes scans when requested.
Running as a Systemd Service (Linux)
The agent includes a simple systemd service for Linux hosts.
Install and enable it:
sudo ./systemd/install.sh
To uninstall:
sudo ./systemd/uninstall.sh
Configuration
The agent can be configured using CLI flags or environment variables.
CLI Options
snapfs-agent-scanner [options]
--gateway <url> Gateway URL (http/https/ws/wss)
--gateway-ws <url> Explicit WebSocket URL
--ws-path <path> Gateway path (default: /agents)
--agent-id <id> Stable identifier for this agent
--scan-root <path> Filesystem root to scan
--version Print version and exit
Environment Variables
GATEWAY_WS Gateway WebSocket URL
GATEWAY_HTTP Reserved for future use
SNAPFS_AGENT_ID Agent identifier
SNAPFS_SCAN_ROOT Filesystem root for scans
Metadata
Release files for snapfs-agent-scanner 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snapfs_agent_scanner-0.2.0.tar.gz | 14.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snapfs_agent_scanner-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.2 kB
Release files / snapfs_agent_scanner-0.2.0.tar.gz
| Download URL | snapfs_agent_scanner-0.2.0.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8ab621e418f7ba480f234031e9fc39e1472ba5a1f2ebef7d43cd0152a0ac948
|
|
BLAKE2b-256 checksum How to use checksums |
b7afbc425811386c812dc394d573abe12b3fe087ac4caef28e3720e8ad2a091a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / snapfs_agent_scanner-0.2.0-py3-none-any.whl
| Download URL | snapfs_agent_scanner-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8fcf26bc2317ae8b900fd707df29d02b49b78e5e80c6085a22d2707d9e816a8
|
|
BLAKE2b-256 checksum How to use checksums |
35f19e1df05836d4d9f14bd4bf7d65d839d51335c067a89f1b66ada42fb74940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|