π¦ ClawHub
Netmap
by @wrentheai
Scan and map all devices on the local network. Discovers IPs, hostnames, vendors, and device types. Tracks when devices first appeared and were last seen. Su...
TERMINAL
clawhub install netmapπ About This Skill
name: netmap description: | Scan and map all devices on the local network. Discovers IPs, hostnames, vendors, and device types. Tracks when devices first appeared and were last seen. Supports labeling devices with friendly names and searching by IP, hostname, MAC, or type.
USE WHEN: User asks what's on their network, wants to find a device's IP (printer, NAS, TV, etc.), wants to see new/unknown devices, or needs to diagnose connectivity issues. Also use when an IP is needed for a specific device (e.g. "what IP is my printer?").
DON'T USE WHEN: User asks about internet speed, WiFi signal strength, or remote networks they're not connected to.
netmap
Scans the local network and maintains a persistent device database at ~/.config/netmap/devices.json.
Requirements
nmap must be installed: brew install nmapscripts/netmap.pyCommands
# Discover all devices on the network (fast, ~30-60s)
python3 scripts/netmap.py scanDeep scan β also port-scans each device to identify type (slower, ~2-3min)
python3 scripts/netmap.py scan --deepOverride subnet (auto-detected by default)
python3 scripts/netmap.py scan --subnet 10.0.0.0/24List all known devices
python3 scripts/netmap.py list
python3 scripts/netmap.py list --times # include first/last seenFind a device by IP, hostname, MAC, vendor, or device type
python3 scripts/netmap.py find printer
python3 scripts/netmap.py find 192.168.1.12
python3 scripts/netmap.py find CanonLabel a device with a friendly name
python3 scripts/netmap.py label 192.168.1.12 "Canon Printer"
python3 scripts/netmap.py label AA:BB:CC:DD:EE:FF "Kevin's iPhone"Show devices first seen in the last N minutes
python3 scripts/netmap.py new --minutes 30Export device database as JSON
python3 scripts/netmap.py exportContinuous watch mode (scans every 2min by default)
python3 scripts/netmap.py watch
python3 scripts/netmap.py watch --interval 60
Notes
sudo (or they appear blank without it)scan --deep first time to populate device types, then scan for fast refreshesπ Tips & Best Practices
sudo (or they appear blank without it)scan --deep first time to populate device types, then scan for fast refreshes