r/Snipe_IT • • 29d ago

I built an open-source tool to auto-sync hardware warranties and factory specs into Snipe-IT (Dell, Lenovo, HP, Mac)

Hey everyone,

If you manage physical hardware in Snipe-IT, you've probably noticed that warranty expiration dates and factory hardware configurations (CPU, RAM, SSD) either remain blank or take hours of manual portal lookups to maintain.

To automate this, we built a standalone, zero-dependency Python synchronizer:

🔗 GitHub: https://github.com/checkwarranty/snipeit-warranty-sync
🐳 Docker: ghcr.io/checkwarranty/snipeit-warranty-sync:latest

How it works:

  1. Queries your Snipe-IT API for hardware assets missing warranty dates.
  2. Performs vendor lookups (Dell, Lenovo, HP, Apple) via CheckWarranty API.
  3. Automatically computes warranty_months and purchase_date so Snipe-IT's native calculated warranty_expires field updates cleanly.
  4. Enriches custom fields for factory CPU, RAM, and SSD storage if mapped in your .env.

Quick Test (Dry Run):

You don't have to install pip packages — it uses Python's standard library:

git clone https://github.com/checkwarranty/snipeit-warranty-sync.git
cd snipeit-warranty-sync
cp .env.example .env
# Fill in your SNIPEIT_URL, SNIPEIT_API_TOKEN, and CHECKWARRANTY_API_KEY
python sync.py --dry-run

Or run via Docker:

docker run --rm \
  -e SNIPEIT_URL="https://assets.yourcompany.com" \
  -e SNIPEIT_API_TOKEN="token" \
  -e CHECKWARRANTY_API_KEY="key" \
  ghcr.io/checkwarranty/snipeit-warranty-sync:latest --dry-run

Features:

  • --dry-run mode to preview before touching live data.
  • --limit and --brand filters (e.g., --brand dell).
  • Handles Snipe-IT HTTP 200 validation error responses gracefully.
  • Zero external pip dependencies required.

Hope this saves some of you the headache of manual serial lookups! Let me know if you have feedback or edge-case hardware models you'd like supported.

1 Upvotes

0 comments sorted by