Network discovery
Network discovery
A network sweep asks an agent to find the SNMP devices in address ranges you
allow, profile each one, and upload what it finds to Blueprintr: interfaces,
addresses, LLDP and CDP links, routes, and, from agent 0.3.0, the BGP sessions
and OSPF and IS-IS adjacencies each device holds. The agent sweeps only the
ranges in the discovery block of its own configuration. Blueprintr can narrow
a sweep to some of them but never widen it, and the SNMP credentials stay on
the agent. An agent with no discovery block sends no SNMP at all.
Blueprintr can draw a finished sweep as a blueprint, as Drawing your network describes.
The discovery policy
"discovery": {
"cidrs": ["10.0.10.0/24", "10.0.20.0/23"],
"exclude": ["10.0.10.250"],
"credentialSets": [
{ "name": "netops", "version": "3", "user": "netops", "securityLevel": "authPriv",
"authProtocol": "sha256", "authPassphrase": "env:SNMP_NETOPS_AUTH",
"privProtocol": "aes128", "privPassphrase": "env:SNMP_NETOPS_PRIV" },
{ "name": "dc", "version": "2c", "community": "file:/etc/continuum-local/dc-community",
"cidrs": ["10.0.20.0/24"] }
],
"credentialTrial": "sequential",
"collectors": { "deny": ["arp", "fdb"] },
"collectContact": false,
"packetsPerSecond": 50
}
| Setting | Default | What it limits |
|---|---|---|
cidrs | none (no sweeps without it) | The addresses a sweep may probe. IPv4 only, in plain dotted-decimal: 010.0.20.5 and similar spellings are refused |
exclude | none | Addresses or blocks a sweep never probes |
maxSweepPrefix | 22 | The largest block allowed in cidrs, as a prefix length. It can never be set below 16 |
maxHosts | 65534 | Addresses in one sweep |
packetsPerSecond | 50 | SNMP packets a second, shared by every sweep and probe the agent runs. 1 to 5000 |
concurrency | 16 | Devices profiled at once. 1 to 256 |
timeoutMs, retries | 1500, 1 | Per request |
deviceBudgetMs | 60000 | Time allowed per device, every collector included |
port | 161 | The SNMP port |
maxRowsPerTable, maxVlanWalks | 20000, 64 | Rows read from one table on one device, and VLANs walked one by one on switches that keep a forwarding table per VLAN |
An SNMP probe of one device is the exception to cidrs and exclude: it may
also reach a host in its integration's allowedHosts, on the port the probe
gives, and tries each credential set that applies to that host. A set without
its own cidrs applies to every host, host names included.
SNMP credentials
Use SNMPv3 with authPriv wherever your devices support it. SNMPv1 and v2c
send the community string in clear text in every request, so anything on the
path, and any device the sweep reaches, can read it. SNMPv3 authPriv
authenticates and encrypts each request.
| Version | Needs |
|---|---|
"1", "2c" | community |
"3" | user and securityLevel (noAuthNoPriv, authNoPriv or authPriv), then as the level requires authProtocol (md5, sha, sha224, sha256, sha384, sha512) with authPassphrase, and privProtocol (des, aes128, aes192, aes256, or aes192b and aes256b for devices using the Blumenthal key extension) with privPassphrase. Optional contextName |
Passphrases must be at least 8 characters. Any community or passphrase can be an
env:NAME or file:/path reference instead of the value.
Give each credential set the ranges it belongs to with its own cidrs, each
inside discovery.cidrs. A set with cidrs is only tried against those
addresses.
credentialTrial sets how the sets that apply to an address are tried:
"parallel"(the default) sends every applicable set at once. A dead address costs one timeout, but every applicable community reaches every address."sequential"tries them one at a time, in the order written, and stops at the first that answers. Communities are not sprayed, and a dead address costs one timeout per set.
Communities and passphrases never appear in a request from Blueprintr or in a result, and are masked in the agent's logs. Blueprintr does not keep which credential set or SNMP version a device answered.
What your network sees
- UDP from the agent's host to port 161 (or
port) on addresses in the ranges: SNMP GET, GETNEXT and GETBULK requests. A probe of one device may also send them to a host in its integration'sallowedHosts, on the port the probe gives. SNMPv3 opens each device with the standard engine discovery request, which has an empty user name. - At most
packetsPerSecondpackets a second across everything the agent sends over SNMP. - The agent does not send ICMP, scan ports or open raw sockets, and needs no root access.
- On older Cisco IOS switches, walks of the per-VLAN forwarding table use
community@vlan, or with SNMPv3 thevlan-Ncontext, which the switch must permit for that user.
A device that logs or traps SNMP authentication failures does so for each credential set that does not match it. Tell whoever watches your intrusion detection before the first sweep, and add the agent's address to any device that limits SNMP to named managers.
What a sweep collects
Each responding device is classified before any table is walked: sysObjectID
gives the vendor, sysDescr the operating system, version and model, and one
request for a dozen objects shows whether it bridges, routes, prints, runs on
batteries or is a general-purpose host. The class picks which collectors run,
so a core switch is walked for neighbours, VLANs and forwarding tables while a
printer is asked for its supplies. Every device is also asked for its system
group: name, description, uptime, location and, unless collectContact is
false, contact.
| Collector | Reads |
|---|---|
interfaces | Name, description, type, speed, MTU, MAC address, state, and traffic, error and discard counters |
addresses | The device's own IP addresses and masks |
entity | Model, serial number, hardware, firmware and software revisions, and stack members |
lldp, cdp | Neighbours, from LLDP and from Cisco's CDP |
bridge | Which bridge port is which interface |
vlans | VLANs and the ports in each |
fdb | The forwarding table: which MAC address is behind which switch port |
arp | The ARP table: the MAC address behind each IP address |
routes | The routing table, up to 5,000 routes |
bgp | From agent 0.3.0. Each BGP session: the peer's address, AS and router ID, the local address and AS, the state, how long it has been established, the address families, EVPN included, and prefix counts |
ospf | From agent 0.3.0. OSPFv2 and OSPFv3 neighbours: router ID, address, interface, area and state |
isis | From agent 0.3.0. IS-IS adjacencies: the neighbour's system ID, level, state, interface and addresses |
health | CPU, memory, temperature, load and sessions, where the device reports them |
hostResources | Storage, memory, processor load, users and processes on servers |
vmware | The ESXi version, and each virtual machine's name, guest OS, memory, power state and CPUs |
printer | Supplies and their levels |
ups | Battery state |
Choose collectors with "collectors": { "allow": [...] } or
{ "deny": [...] }. A name that is not a collector stops the agent at start.
Routing sessions
The bgp, ospf and isis collectors come with agent 0.3.0. They run on
routers, layer 3 switches, firewalls and wireless controllers, and on servers
that forward IP, such as FRR on Linux. Layer 2 switches and access points skip
them. What they read is what the
Routing view
draws, and the results page lists it under each device. A server that reports a
routing session, such as a route server, is drawn with its sessions whether or
not an LLDP or CDP link reaches it.
They read session tables only. A sweep never reads a BGP route table, the OSPF link-state database or the IS-IS link-state database. Each of the three has a third of the device's time limit, at most 20 seconds, and keeps what it read when that runs out, so a router with thousands of sessions does not hold up the rest of its sweep. A device's list stops at 2,000 BGP sessions, 1,000 OSPF neighbours or 1,000 IS-IS adjacencies, and its warnings say so. A device that serves none of these tables costs about a dozen extra requests.
| Platform | BGP sessions from | EVPN marked | OSPF | IS-IS |
|---|---|---|---|---|
| Arista EOS | ARISTA-BGP4V2-MIB and BGP4-MIB | Yes | Yes | No |
| Arista cEOS | ARISTA-BGP4V2-MIB and BGP4-MIB, not confirmed | Not confirmed | Not confirmed | No |
| Cisco NX-OS and N9Kv | CISCO-BGP4-MIB and BGP4-MIB | When the address family's name is L2VPN EVPN | Yes | No |
| Cisco IOS-XE | CISCO-BGP4-MIB and BGP4-MIB | As NX-OS | Not confirmed | Not confirmed |
| Cisco IOS-XR | CISCO-BGP4-MIB and BGP4-MIB | As NX-OS | Yes | Not confirmed |
| Juniper Junos, vJunos and vQFX | BGP4-V2-MIB-JUNIPER and BGP4-MIB | Not confirmed | Yes | Not confirmed |
| Nokia SR Linux 24.10 and later | TIMETRA-BGP-MIB | Yes | No | No |
| Nokia SR OS | TIMETRA-BGP-MIB | Yes | Not confirmed | Not confirmed |
| Cumulus Linux | CUMULUS-BGPVRF-MIB, and FRR's MIBs once set up as below | No | Through FRR, once set up | No |
| FRR on Linux | FRR's BGP MIBs, once set up as below | No | Yes | Yes |
| MikroTik RouterOS | No | No | No | No |
Each row follows the vendor's published MIBs. The collectors are tested against
simulated devices built from those MIBs, and not yet against each vendor's own
hardware: "Not confirmed" means the platform may serve the table, but that has
not been checked. BGP4-MIB lists IPv4 sessions only, so IPv6 and unnumbered
sessions come from the vendor MIBs where the platform has one. A device with no
routing sessions over SNMP, such as MikroTik, still shows the next hops from
its routing table in the Routing view. On Junos, sessions in a routing instance
other than the default may need routing-instance-access in the SNMP
configuration.
SNMP views
If a device limits what SNMP may read with a view, add these subtrees to the view the agent's community or user reads through, or the device answers with nothing. They leave out the route and link-state tables.
| MIB | Subtrees |
|---|---|
| BGP4-MIB | 1.3.6.1.2.1.15.2, 1.3.6.1.2.1.15.3, 1.3.6.1.2.1.15.4 |
| OSPF-MIB | 1.3.6.1.2.1.14.1, 1.3.6.1.2.1.14.7, 1.3.6.1.2.1.14.10 |
| OSPFV3-MIB | 1.3.6.1.2.1.191.1.1, 1.3.6.1.2.1.191.1.7, 1.3.6.1.2.1.191.1.9 |
| ISIS-MIB | 1.3.6.1.2.1.138.1.1, 1.3.6.1.2.1.138.1.3, 1.3.6.1.2.1.138.1.6 |
| IS-IS draft MIB (Junos) | 1.3.6.1.3.37.1.1, 1.3.6.1.3.37.1.3, 1.3.6.1.3.37.1.6 |
| FRR's draft BGP4v2 MIB | 1.3.6.1.3.5.1.1.2, 1.3.6.1.3.5.1.1.4 |
| ARISTA-BGP4V2-MIB | 1.3.6.1.4.1.30065.4.1.1.2, 1.3.6.1.4.1.30065.4.1.1.4, 1.3.6.1.4.1.30065.4.1.1.8 |
| CISCO-BGP4-MIB | 1.3.6.1.4.1.9.9.187.1.2, 1.3.6.1.4.1.9.9.187.1.3 |
| CISCO-IETF-ISIS-MIB | 1.3.6.1.4.1.9.10.118.1.1, 1.3.6.1.4.1.9.10.118.1.3, 1.3.6.1.4.1.9.10.118.1.6 |
| BGP4-V2-MIB-JUNIPER | 1.3.6.1.4.1.2636.5.1.1.1, 1.3.6.1.4.1.2636.5.1.1.2.1, 1.3.6.1.4.1.2636.5.1.1.2.4, 1.3.6.1.4.1.2636.5.1.1.2.6 |
| TIMETRA-BGP-MIB | 1.3.6.1.4.1.6527.3.1.2.14.2.2, 1.3.6.1.4.1.6527.3.1.2.14.4.7, 1.3.6.1.4.1.6527.3.1.2.14.4.8 |
| CUMULUS-BGPVRF-MIB | 1.3.6.1.4.1.40310.7.2, 1.3.6.1.4.1.40310.7.3 |
The next hops come from the routing table the routes collector reads:
1.3.6.1.2.1.4.24.7, with 1.3.6.1.2.1.4.24.4 and 1.3.6.1.2.1.4.21 on devices
that serve only the older tables.
FRR and Cumulus Linux
FRR serves its routing MIBs through the machine's own SNMP agent, over AgentX. On the router:
- in
snmpd.conf,master agentx, and an address and a community or user the agent can reach; - in
/etc/frr/daemons,-M snmpin the options of each daemon to read:bgpd,ospfd,ospf6dandisisd; - in the FRR configuration, the line
agentx.
Then restart snmpd and FRR. IPv6 and unnumbered BGP sessions come from FRR's draft BGP4v2 table, which needs FRR 8.5 or later.
Cumulus Linux runs FRR the same way. Its snmpd answers only on localhost until
you give it a listening address with nv set system snmp-server
(nv set service snmp-server on older 5.x releases), and its LLDP table over
SNMP needs lldpd started with AgentX (-x).
Collector lists written before 0.3.0
A collectors allow list written before 0.3.0 does not name bgp, ospf or
isis, so they do not run until you add them to it. A deny list that leaves
them out, or no list, runs them. Add the three names only once the agent runs
0.3.0: an older agent does not know them, and stops at start.
Personal data
The ARP table (which address each laptop and phone has), the forwarding table
(which switch port each device is behind) and the contact field identify people
rather than network equipment. If your data protection review rules them out,
deny arp and fdb, and set "collectContact": false, which stops the agent
asking for the contact field at all.
With any of those off, an SNMP probe Blueprintr sends for named objects or a
subtree returns only the objects the permitted collectors read. The IPv6
neighbour cache and vendor tables with the same kind of data are withheld too,
and a request that could return nothing else is refused before a packet is
sent. Denying bridge or vlans leaves forwarding table rows without port and
VLAN names.
Blueprintr drops a device's contact field before storing a sweep, whatever these settings say.
Network drawings show each network device's MAC address and ARP tables to
everyone who can read the blueprint, as
Device tabs
describes. From agent 0.4.0 the agent also looks up the name your DNS servers
give each address in an ARP table and sends it with the entry; denying arp
stops those lookups.
Running a sweep
Sweeps are in Network sweeps, below the Continuum Local panel in
Settings → Continuum Local on the organisation or team. You need
continuum_integrations.manage there, and the organisation that owns the agent
needs an Enterprise plan.
Only agents that are online, report discovery ranges and are not already sweeping are offered. The others are listed with the reason. An agent reports its ranges from version 0.2.0.
Pick from the ranges the agent reported, or type smaller ones inside them. Choosing none sweeps all of them.
Time limit is the agent's default (one hour), or 15 minutes to 4 hours. Stop after (hosts, optional) sweeps only the first that many addresses in the ranges.
The run appears under Recent sweeps as Waiting for the agent, then Running.
An agent runs one sweep at a time, for 5.5 hours at most. It uploads results as it finds them and reports progress every five minutes, and a run that hears nothing from its agent for 20 minutes is marked Agent stopped reporting. A sweep that runs out of time, or whose agent stops, keeps everything uploaded before then.
To stop one, choose Cancel, then Stop it. Everything already uploaded is kept. The agent is told at its next upload and stops probing there.
Schedules
Under Schedules, choose Add a schedule, then the agent, How often (Every day or Every week), First run (your time), Time limit and the ranges, and Save schedule. Pause and Resume stop and restart a schedule. A scheduled sweep that comes round while its agent is offline or already sweeping is skipped, and the next one runs as normal. Missed sweeps are not run later.
Reading the results
Watch opens a running sweep, whose page updates every few seconds, and View results opens a finished one. The page shows who started it, or that a schedule did, the ranges and any warnings, then two sections:
| Section | Shows |
|---|---|
| Devices | Name, class, vendor, model, management address, version, interfaces up and down, and addresses learned. Search by name, address, vendor or model, and select a name to open the device. A switch opens as a front panel of its ports and the addresses learned on each. |
| Links | Connections between two devices the sweep reached, from LLDP and CDP, with the port at each end. Links arrive at the end of a sweep. Neighbours outside the ranges, such as phones and access points, are counted but not listed. |
From agent 0.3.0, opening a device also shows, when it reported any, its local AS, router IDs and IS-IS system ID under Routing, then its BGP sessions, OSPF neighbours and IS-IS adjacencies.
Create Blueprint, in the header of a finished sweep's page, draws it as a blueprint, or updates an earlier drawing from it. Draw as Vellum, beside it, draws a snapshot of the sweep as a standalone Vellum drawing instead. See Drawing your network.
The page never shows which SNMP credential or version a device answered.
A sweep that finds no devices usually means the credentials in the agent's
discovery block do not match the devices, or a firewall blocks UDP port 161
between the agent and them.
What Blueprintr keeps
| Question | Answer |
|---|---|
| What | The devices, ports, routes and links each sweep finds, from agent 0.3.0 the BGP sessions and OSPF and IS-IS adjacencies each device reports, and the MAC and IP addresses those devices have learned. Never a device's contact field or anything about the SNMP credentials |
| Why | To show your estate on the results page, and to draw it when someone asks |
| Who can see it | People who can manage Continuum integrations for the organisation or team. Blueprintr staff see only how many sweeps ran |
| How long | 90 days from when a sweep starts, except that the latest complete sweep from each agent is kept until a newer one completes. Deleting an agent deletes its sweeps |
A drawing made from a sweep is part of its blueprint, so the blueprint's readers see it, and it stays after the sweep is deleted. See Who sees a drawing.
Testing on one host first
On the agent's host, continuum-local probe profiles one device and prints its
class and the collectors it would run, and continuum-local discover sweeps
the policy's ranges and prints a report without sending anything to Blueprintr.
On the Linux packages, run them with sudo: they then run as the
continuum-local account, with the service's environment file.