Scanner agent for SnapFS.
Project description
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
Project details
Release history Release notifications | RSS feed
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 snapfs_agent_scanner-0.2.0.tar.gz.
File metadata
- Download URL: snapfs_agent_scanner-0.2.0.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ab621e418f7ba480f234031e9fc39e1472ba5a1f2ebef7d43cd0152a0ac948
|
|
| MD5 |
2d3e20cac7b83bcefee613bfebfee36b
|
|
| BLAKE2b-256 |
b7afbc425811386c812dc394d573abe12b3fe087ac4caef28e3720e8ad2a091a
|
File details
Details for the file snapfs_agent_scanner-0.2.0-py3-none-any.whl.
File metadata
- Download URL: snapfs_agent_scanner-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8fcf26bc2317ae8b900fd707df29d02b49b78e5e80c6085a22d2707d9e816a8
|
|
| MD5 |
f159adc22113c79e690e7d2e8c1e86ec
|
|
| BLAKE2b-256 |
35f19e1df05836d4d9f14bd4bf7d65d839d51335c067a89f1b66ada42fb74940
|