network-device-discovery
Installation
SKILL.md
Network Device Discovery Skill
Production-tested patterns for discovering, scanning, and managing network devices over HTTP/HTTPS. Extracted from GUDE Deploy — a commissioning tool for 120+ rack-mounted PDU devices.
Section 1: Interface Enumeration
Rule 1: netifaces2 leaks memory on Windows — parse ipconfig instead
The netifaces2 C extension calls GetAdaptersAddresses on Windows and leaks unboundedly
(8-22 GB) on machines with AMD GPUs + multiple virtual adapters. It never returns.
Fix: Use subprocess.run(["ipconfig", "/all"]) parsing on Windows. Keep netifaces2 for Linux/macOS.
import platform