Cable discovery
Edition: PROPro ENTERPRISEEnterprise, off by default
What it does
Every switch already knows its neighbours: LLDP and CDP name the device and the port at the other end of each cable. Cable discovery reads those tables from the switches the Network devices connector already collects, compares them with the cables in NetBox, through every patch panel, and shows what it found on the site's own topology. Nothing is written to NetBox until a person applies it.
A cable is recorded when a project hands over, and from then on it changes in the cabinet, not in NetBox: a drive moved to another port, two access points swapped, a PLC added to a cell switch, or a direct cable entered where the run really goes through two patch panels. Cable discovery finds these, and knows the difference between a direct cable and a run through panels.
What it reads
Cable discovery is a step at the end of each Network devices run. The run is already signed in to every switch in its scope, so it asks for the neighbour tables too, with the same read-only show commands on the same fixed list. The full list, and when each command is sent, is in What each connector reads.
| Source | What it reads |
|---|---|
| Cisco IOS and IOS-XE | Including Industrial Ethernet and Stratix models that run IOS: show lldp neighbors detail and show cdp neighbors detail. |
| Siemens SCALANCE | X, XC and XR switches and the S and SC appliances: show lldp neighbors detail, and show lldp status for the ports where LLDP is switched off. |
| VMware vCenter | What each ESXi host's physical NIC hears by CDP or LLDP, as a second witness for the server side of a link. |
Each neighbour is matched to one NetBox device by name, PROFINET station name, serial, MAC or address, and to one interface, PROFINET port numbers included. Two candidates, or none, is a question for you, never a guess. Each link is traced in NetBox from end to end, through patch panels, front and rear ports and media converters, as the Physical view traces cables.
Setting up
Cable discovery is off by default, three times over: an administrator turns it on for the install, someone turns it on for a Network devices job, and a job starts at Report only.
Reading the results
The review is the site's logical topology in a discovery mode. It opens on what was found: only the devices involved, on their Purdue levels. Colour is the state, the line is the evidence, and the links waiting for you carry a slow, quiet stream of dots. A review that is waiting shows on the Overview's Needs you, on the site's Topology and Physical heads, and on the Network devices jobs, each with how many links are waiting and how many questions.
- A new cable, with its evidence. Select a link, on the drawing or in the list beside it, and the panel says why it is there: what each end reported (the protocol, the name and port it heard, the platform and when) and how each end was matched to NetBox, the weaker matches called out. It suggests a label, the two device names joined by
-C-in name order, and a cable type when both interfaces agree on a medium; both can be changed or cleared before you apply. - A conflict, shown as a pair. When a switch hears one device on a port where NetBox has another, the review draws the cable NetBox has beside the one the switch reports. Two ports crossed over are recognised as a swap, with a link to the other half. A conflict is never applied: you correct NetBox, and the next run confirms it.
- Through the patch panels. A link that NetBox records through patch panels is a confirmation, not a new cable. The panel lists every hop NetBox has. A path that stops inside a panel is a question that names the panel and port, never a direct cable. Where NetBox has no cable at all, the proposal says so, so a run through an unrecorded panel goes into NetBox as panel cables instead.
- Devices NetBox does not know. A neighbour that matches no NetBox device is drawn as a dashed card beside the switch that heard it, with everything it sent: name, platform, address, chassis ID and its port. Add in NetBox opens NetBox's form; the next runs plan its cable. A port with several neighbours, behind an unmanaged switch or a phone, is a question, not a cable.
- Written. Once a link is applied, its panel, its list row and the run say which cable was created or marked, with Open the cable in NetBox.
How certain
Every link says which rung of the evidence ladder it stands on, in words, never as a percentage, and the line on the drawing is styled to match.
| Evidence | Line | What it means |
|---|---|---|
| Confirmed from both ends | solid | Both switches were read and each reports the other. The only links the one bulk action, Apply all confirmed from both ends, will write. |
| One end reports it; the far end is not collected | dashed | Usual for end devices such as a PLC or an HMI. Proposed for a person, one at a time. |
| One end reports it; the other was read and does not | dashed | Both ends could have spoken and only one did. Proposed for a person, with that reason. |
| A vCenter hint only | dotted | An ESXi host's NIC names the switch port, and the switch has not confirmed it. |
| Seen once | faint | A link must be seen in two runs in a row before it is proposed at all. |
What it writes
- Writes a link only when a person applies it, one at a time, or confirmed-from-both-ends links in one go.
- New cables get the two ends, status connected, the tag
cinq-lldpand three custom fields: the source, last seen and verified dates. A confirmation adds only the marks, never touching the cable itself. - Re-reads both ends and every cable on the path at the moment of writing; anything that changed since the plan is held, with the reason.
- Records every write in the audit log and on the run, with NetBox's own change time.
- Undo, per run, reverses what it wrote where NetBox still has the cable as written, and lists what changed since and was left alone.
- After a person's first Apply on a job, an Automatic level can be chosen. It writes only links confirmed from both ends, seen twice, within the job's limit.
What it never does:
- It never deletes a cable that NetBox has, and never moves a cable's ends.
- It never applies a conflict; NetBox's cable stays as it is until you change it.
- It never changes the type, colour, label, length or status of an existing cable.
- It never draws a direct cable where NetBox has the run through a patch panel.
- It never sends a command that is not on the fixed read-only list, and never enters configuration mode.
- It never writes a one-sided link or a vCenter hint automatically.
Limits
- Cable discovery works on the Network devices connector's switches.
- Reading neighbours through a Relay edge, and SolarWinds as a source of neighbours, are not available yet.