Skip to main content

Network Discovery

Network Discovery finds the servers, computers, printers and network devices in your network and keeps them up to date as objects in Starhive, along with their installed software, services, Windows updates, processors, network interfaces and disks.

Beta

Network Discovery is in beta. It's rolling out gradually and may not be available in every workspace yet.

How it works​

  1. A Collector that you install inside your network does the scanning. It only connects out to Starhive, so no firewall needs opening. See Install a Collector.
  2. Credentials let it log in to hosts (SSH, WinRM or SNMP) and read more than their open ports tell. Their secrets are encrypted in your browser for the Collectors you choose, so Starhive can't read them. See Credentials.
  3. A scan profile says what to scan, from which Collector, with which credentials, and how often. See Scan profiles.
  4. Each scan writes what it found to the Discovery space: a new object for a device found for the first time, and an update to its object on later scans. Each scan's results are in its scan history.

What a scan touches and reads describes the network traffic and what is read from each kind of host, for your security and network teams.

Network Discovery is under Settings → Discovery, for workspace owners and admins.

Set up the Discovery space​

Before the first scan, create the space devices are written to: on the Discovery settings page, under Space, click Create space. It creates a space called Discovery with these types:

TypeHolds
DeviceThe parent of every device type below, with the attributes all devices share. It holds no objects of its own.
ComputerThe parent of Server and Workstation, with the attributes computers share. It holds no objects of its own.
Server, WorkstationComputers, with their operating system, hardware, firmware version and date, processors, installed software, services, Windows updates, pending updates, network interfaces, disks and total storage.
PrinterPrinters, with their page count and supplies.
Network deviceSwitches, routers, firewalls and access points.
Unclassified deviceDevices that answered but couldn't be identified.
SoftwareOne object for each version of a package or program, shared by every device that has it.
ProcessorOne object for each processor model, shared by every device that has it.
ServiceOne object for each service that starts with a computer, such as ssh or MSSQLSERVER, shared by every computer that has it.
Windows updateOne object for each installed Windows update (its KB number), shared by every computer that has it.
Network interfaceOne object for each network interface of a device.
DiskOne object for each disk of a computer, with its model, serial number, size, and whether it's an SSD or a hard disk.
ConnectionOne object for each connection between two devices a scan saw open, with its port, service and the programs at each end. See Connections between devices.

Device and Computer are inherited by the device types, so keep them: the types below them depend on them.

Devices reference their software, services, Windows updates, processors, network interfaces and disks, so you can, for example, find every server with a given version of a package from that version's object.

When a newer version of the space is available, the space shows Update available. Click Update space to add the types and attributes it brings. Nothing you've changed or added is removed.

If you delete the Discovery space, scan profiles stop writing to it, and the page offers Create space again.

What kind of device is it?​

Each device is written to the type of its kind. The kind is decided by the best information a scan has, and a kind decided on better grounds isn't overridden by weaker ones later:

  1. Credentialed scan: a host the Collector logged in to tells what it is. Windows says whether it's a server or a workstation. A Linux host with a desktop, or a Mac, is a workstation. A Linux virtual machine without a desktop is a server, whatever chassis its hypervisor reports. Other hosts are told apart by their chassis, and are servers when nothing else tells.
  2. SNMP: a device with a printer MIB, or that its agent lists as a printer and not as a computer, is a printer. One that switches is a network device. A computer is taken for a server, as SNMP can't tell a workstation, even when it forwards traffic, as a host running containers may. Anything else that routes is a network device.
  3. Open ports: a host that answers on a printer port, but not on SSH, RDP or WinRM, is a printer. It may answer on others too, such as its web interface.

Anything else is an unclassified device. The device's Classified by attribute says how its kind was decided.

When a device's kind changes, for example once a credential gets into a host that was unclassified, its object is moved to the new kind's type, keeping its values. If the move would drop values in attributes the new type doesn't have, the object stays where it is.

Statuses​

The Discovery status attribute tells whether something is still there:

  • Devices are Active while scans find them, and become Stale when they haven't been found in the profile's last three scans. Failed, cancelled and empty scans don't count, so an outage or a wrong range doesn't make a whole network stale. A stale device that's found again is Active again.
  • Software, processors, services and Windows updates are Active while a discovered device has them, and Removed once none does. They're Active again if a device has them later.
  • Network interfaces and disks are Removed once their device no longer lists them. A disk keeps its object when the host gives it another name, for example after a reboot, as it's recognised by its serial number where it reports one. A disk without one, as virtual machines' disks often are, is recognised by its name, so a new name gives it a new object.
  • Connections are Active while scans see them, and Removed once no scan has seen them for a week. They're Active again if a scan sees them later.

Discovery status is an option attribute, so it holds only these values. So are Online status (below) and Last scan, which tells how the device's last scan went: Fully scanned, Partly scanned, Reachable only, No credential, Host key changed or Error, as the scan's history shows it. A space created before they became options keeps them as text attributes, as Update space can't change an attribute's type once objects have values. Discovery writes the same values to them.

Network Discovery never deletes objects, so whatever else in Starhive refers to them keeps working. If you delete a device's object yourself, the next scan that finds the device creates a new one.

Online or offline​

Discovery status says whether a device is still there, over days. To know whether it's up right now, turn on the scan profile's Presence check. Every 5, 15 or 60 minutes, the profile's Collector then checks whether each device it found still answers, and sets two attributes on the device. A device is checked from the profile's first scan after the presence check is turned on:

  • Online status: Online once the device answers, and Offline once it has missed two checks in a row, so one lost packet doesn't count as an outage. A scan that finds the device counts as a check it answered.
  • Online status since: when the status last changed.

They're written only when the status changes, so an automation can act on it, for example to notify someone when a server goes Offline. If the Collector itself stops checking, for example because it's offline, the statuses stay as they were: a device that wasn't checked isn't taken as offline.

A device shows as Offline about two intervals after it goes down: the first missed check, then the second, each up to a minute late. With Every hour, that can take two hours, so choose a shorter interval for devices you want to be alerted about quickly.

  • A device is checked by the profile that found it last. If two profiles scan the same addresses, the presence check of whichever found a device last applies to it.
  • A device is checked on the ports scans have found it answering on. One that has never answered on a port, only to ping, isn't checked, so it gets no Online status, nor Offline when it goes Stale.
  • A device that is checked and goes Stale is Offline too, and is no longer checked.
  • If you turn the presence check off, or delete the profile, its devices are no longer checked and keep the last status they had.

A presence check only tells whether a device answers. It doesn't measure response times or watch services, as a monitoring tool does. It needs Collector 0.5.0 or later, and a space updated to add the two attributes: if the space shows Update available, click Update space. Starhive refuses the presence check once it knows the profile's Collector runs an older release. Until the Collector has checked in it can't tell, and an older Collector then never checks: its devices are written Online when a scan finds them, but never Offline, until it's updated.

Connections between devices​

A scan of a host reads the network connections it has open, so Discovery can show which devices talk to which: an application server to its database, a host to its file server or directory. Each connection is a Connection object, named like app01 → db01 :5432 PostgreSQL, with:

  • From and To: the device that connected and the one it connected to.
  • Port and Service: the port connected to, and what usually listens there.
  • Client program and Server program: the programs at each end, where the hosts tell. On Linux, other accounts' programs are named only with an optional sudoers line.
  • First seen, and its Discovery status.

To see what a device talks to and what talks to it, open the device and go to Relationships: the Graph shows its connections in both directions. Each device also lists its Listening ports, such as 22 (sshd), 5432 (postgres).

A connection is one object, whichever end's scan saw it: a database server sees its clients connect in, and each client sees itself connect out. An end that isn't a device Discovery knows is shown by its address in From address or To address, and is joined to the device once a scan discovers it. Connections with addresses on the public internet are one object for each port, from or to Internet, rather than one for each visitor.

Left out are a host's connections to itself, to its own containers and virtual machines (on its Docker, Podman, Kubernetes, libvirt or LXC networks), and the Collector's own login while it scans the host.

A scan sees only the connections open at its moment. A connection a service keeps open, such as a database pool, a file share, a directory or a message queue, is seen at every scan. A short request, such as a web call now and then, is seen only when it happens to be open, so the picture fills in over several scans. That's also why a connection stays Active for a week after a scan last saw it.

Connections need Collector 0.6.0 or later, and on Windows the restricted endpoint set up again with that release (see Windows hosts). The space needs updating to add the Connection type: if it shows Update available, click Update space.

Every device also has a Discovery ID, Discovery's own id for it, which stays the same whatever else of the device changes. A connection's From and To are found by it.

Recognising a device across scans​

A device keeps its object from scan to scan, even when its address changes. It's recognised by the strongest identifier it has, in this order: its serial number and hardware UUID together, its hardware UUID, a cloud instance ID, its serial number, a MAC address, its fully qualified name, its name and one of its addresses, and finally the address it was last found at.

Two safeguards keep different machines from being merged:

  • A device whose serial number or hardware UUID differs from a known device's is never taken for it on weaker grounds, such as a shared name or address.
  • If a device matches several known devices equally well, it's written to none of them, and its scan result says Ambiguous.

Because DHCP hands addresses to other devices over time, matching by address alone is limited: it's only used where nothing better tells the devices apart.