Overview
How Scanopy discovers hosts and services on your network.
Daemons scan your network to discover hosts and services, then report their findings to the server.
How Discovery Works
Each daemon runs a single discovery. Every run does two things unconditionally: it scans the subnets it has been given, and it reports back which subnets it has interfaces on.
Network scanning
Scanning IP addresses on the configured subnets is what finds hosts in the first place. It:
- Detects open TCP and UDP ports
- Identifies services via pattern matching
- Performs reverse DNS lookups
- Collects MAC addresses, on directly connected subnets only
The daemon can scan any subnet its host can route to. How deep the scan goes depends on whether the host has an interface on the subnet.
Interfaced and routed subnets
| Interfaced (Layer 2) | Routed (Layer 3) | |
|---|---|---|
| How hosts are found | ARP sweep, plus a ping sweep | Ping sweep, then every address is probed over TCP |
| Host that answers nothing but ARP | Found | Not found |
| MAC addresses | Collected | Not collected, except from the ARP tables of SNMP devices |
| Speed | Fast | Slower, every address gets probed |
| Requires | An interface on the subnet | A route from the daemon's host to the subnet |
On a routed subnet, an address is recorded when it answers ping, or when something on it answers a probe: a service that responds to its protocol's probe, an endpoint that replies, a credential that authenticates. An open port alone isn't enough by default, because a firewall or load balancer in the path can complete the TCP handshake for addresses with nothing behind them. See Phantom Hosts.
Routers don't forward ARP, so a routed subnet yields no MAC addresses from the scan itself. When the daemon has SNMP access to the router or Layer 3 switch for that subnet, it reads the device's ARP table and records the hosts and MAC addresses listed there for the subnets the device has interfaces on.
In this example, Daemon 1 scans its own LAN at Layer 2 and a routed subnet at Layer 3. Daemon 2 runs inside an isolated segment and scans it at Layer 2.
To decide where daemons go, see Planning Daemon Deployment.
On very large interfaced subnets the daemon caps how many addresses it ARP scans, governed by the ARP Scan Cutoff scan setting.
What credentials add
Everything beyond ports, names and addresses comes from a credential. Each one unlocks a different source:
Containers
Network Controllers
- Aruba Instant On — Discover Instant On switches, access points and gateways, their ports, the uplinks between them, and the MACs attached to each port.
- UniFi Controller — Discover UniFi-managed switches, access points and gateways, their ports, and the LLDP neighbors and uplinks the controller sees.
Virtualization
- Proxmox VE — Discover Proxmox VE nodes and the VMs and LXC containers on each, with their addresses.
- libvirt (KVM) — Discover the KVM virtual machines a libvirt host runs, running or stopped, matched to the hosts the scan finds by their MAC addresses.
Host Management
- Wake-on-LAN — Wake sleeping hosts before a scan so they are discovered.
- SSH — Run your own script on a host and record the system details and interfaces it reports.
Network Monitoring
A host reached through more than one source is still one host — everything flows into the same ingestion and matching path, so a device a controller reports and the same device found by a subnet scan are recognized as one.
In this section
- Scans and Settings — how often a scan runs, how deep it goes, and every setting that governs it
- Rescanning a Host — re-checking one host without sweeping its subnet
- Naming and Deduplication — how a discovered host gets its name, and how Scanopy avoids creating it twice