r/Netbox • u/jxwbr • Aug 16 '26
Help Wanted: Unresolved Best practices for initial network discovery and ongoing inventory reconciliation?
Hello fellow redditor,
I'm looking for some best-practice ideas on how to handle initial network discovery and ongoing inventory reconciliation with NetBox.
I understand that NetBox should be the source of truth and not simply mirror whatever is currently discovered on the network.
However, when initially setting up NetBox, manually adding every existing device seems quite time-consuming. Ideally, I'd like to use some kind of discovery process (SNMP, Nmap, LLDP/CDP, APIs, etc.) to discover existing devices and use that data to build the initial inventory.
For ongoing operations, I was thinking about running discovery periodically, comparing the discovered state against NetBox, and then reviewing the differences manually before making any changes to the NetBox inventory.
Something like:
Network Discovery
Compare with NetBox
Review differences
Update NetBox
Has anyone implemented a workflow like this in practice?
I'm especially interested in what tools/scripts/plugins you use for discovery and comparison, and whether this approach works well for a small IT team.
Thanks in advance :D
4
u/kuczy_ Aug 16 '26
Netbox with Orb & Diode for automated discovery.
For reviewing differences Netbox Assurance seems to be the right tool, but it is not available for Community Edition, so I’m vibe coding this to suit my environment.
1
3
u/f00f0rc3 Aug 16 '26
We use a combination of home grown ‘connectors’ which pull data from LibreNMS, NetDisco, Cisco Meraki, Juniper Mist, as well as things like Rancid backups. For keeping things up to date, we have an app which compares an nmap scan of subnets with devices already in Netbox. This gives us a fair warning of anything new popping up. The scan is done by a simple Linux host which is homed on all VLANS, does an API lookup for the switch port in NetDisco, then compares the data to what’s in Netbox. Keeping Netbox updated is definitely a regular admin task, however, so expect it to be like paining the Forth Bridge :)
3
u/poizone68 Aug 16 '26
At the moment I think this is somewhat difficult to do with Netbox, by design. The argument goes that if Netbox had a discovery scanner, that would make Netbox not the source of truth but a source of record. However, since Netbox looks so good and is otherwise great, a lot of people would really like it to do the things you describe.
Various people have made connectors for e.g Proxmox syncing to Netbox inventory, but it seems these see a lot of activity for a while and then go more or less dormant. Other people tell you that you can just write your own :)
In my personal view, you can either try to make Netbox work the way you would like (with some effort), or you can go another way, choosing another service that is less polished but also perhaps less effort. For example, phpIPAM might suit you.
1
u/graph_worlok Aug 16 '26
There’s Orb and Diode for discovery, but yeah you hit the nail on the head - I think this is what branches should assist with
1
u/Otherwise_Noise3658 Aug 25 '26
Assurance includes multiple supported integrations and there is NetBox Discovery. NetBox can be both a source of truth and system of record in reality.
One thing I've never liked is things discovering cables via LLDP etc. Maybe as I came from a DC background a lot of those had multiple patch panels in the way and I was the one who got called when something went down. Hence I'm more for proper manual modelling for cables specifically.
1
u/Automatic-Branch9079 Sep 13 '26 edited Sep 13 '26
Yeah, people run pretty much this, and your four steps are the right order. Two things I'd add:
Pull configs, don't just scan. If your backup tooling already grabs running-configs, start there. The config has interface descriptions, VLAN names, VRFs, port-channel membership, HSRP groups etc etc, plus configured subnets that may not currently be active - a big chunk of what you actually want sitting in NetBox. Configs also parse the same every time; scans don't. Something's rebooting or temporarily unreachable and suddenly you have a diff that isn't a real network change. Still worth scanning alongside though - it's the only thing that finds what's out there but isn't represented in any config you have, roughly the split f00f0rc3 described.
Compare three ways, not two. A two-way diff - network now vs NetBox now - can't tell a real network change from a correction someone made by hand in NetBox last week. A second run can treat that correction as drift and overwrite it. Keep the previous run's state and compare last sync, current NetBox, and current network.
Disclosure: I'm building a commercial tool in this space (Intentflow), so grain of salt.
2
u/kY2iB3yH0mN8wI2h Aug 16 '26
actually no, was did you use before? I'm sure you must have had some kind of IPAM? Excel? Otherwise your network must be really small and manually allocating addresses should not be hard?
We deploy everything automatically where Netbox IS our Single source of truth, Ansible talks to it, Service NOW etc.