Infrastructure

Documenting Your Infrastructure: NetBox, CMDB and IPAM

Out-of-date spreadsheets and IP addresses that live "in someone's head" are an operational risk. Documenting well is not bureaucracy: it is a reliability and security function. We look at what CMDB, IPAM and DCIM are, and why NetBox has become the source of truth for thousands of datacenters.

business EasyDataHost calendar_today November 29, 2026 schedule 8 min read

Almost every organization that runs infrastructure has, in some digital drawer, a spreadsheet that tries to inventory its servers, its IP addresses or its access credentials. Almost all of those spreadsheets are out of date. And almost all of them coexist with critical knowledge that is written down nowhere: it lives solely in the head of the person who set the system up years ago.

That model works until it doesn't. And when it stops working, it usually does so at the worst possible moment: during an incident, in the middle of a migration or the day that key person leaves the company. Documenting infrastructure seriously is not an administrative chore you can postpone indefinitely: it is an architectural decision with a direct impact on reliability, security and your ability to recover.

In this article we explain the three pieces that make up useful infrastructure documentation (CMDB, IPAM and DCIM), why NetBox has become the open-source standard for unifying them, and how to turn documentation into a living source of truth that feeds automation instead of a dead document nobody ever looks at.

The Chaos of Undocumented Infrastructure

The most recognizable symptom of documentation chaos is the phrase "don't touch that server, we don't really know what it does". A team powers on a machine that has been running for years, nobody remembers which service depends on it, and out of fear of breaking something they decide never to turn it off. You accumulate ghost servers, assigned IPs nobody claims, VLANs with no clear purpose and firewall rules that outlive the projects that justified them.

Behind all of this is an underlying problem called the bus factor: the number of people who would have to "be hit by a bus" for the organization to lose critical knowledge. When the bus factor is one, the infrastructure depends on a single person's memory. If that person leaves, changes roles or is simply on holiday during an outage, the knowledge is lost or becomes inaccessible exactly when it is needed most.

Spreadsheets make the problem worse rather than solving it. An IP spreadsheet validates nothing: it lets you assign the same address twice, it doesn't warn you about subnet overlaps and it doesn't reflect changes made directly on the equipment. The result is IP conflicts, services that stop responding after an "innocent" change and hours wasted mentally rebuilding a topology that should have been written down.

Documentation Is a Reliability and Security Function

There is one idea worth internalizing: you cannot protect, patch or recover what you do not know exists. Documentation is not a luxury you add when there is spare time; it is a prerequisite for almost every operations and security function in a datacenter.

On the security side, the asset inventory is the starting point of vulnerability management. When a critical CVE is published, the first question is "how many of my systems are affected, and where are they?". Without a reliable inventory, that question has no quick answer, and the exposure window stretches out. We explain this in detail in our article on patch and CVE management: the quality of the inventory determines the speed of the response.

On the reliability side, documentation is the difference between a thirty-minute recovery and a three-day one. In an incident, knowing which services depend on which servers, what IP each component has and which rack it is physically located in lets you scope the problem down in minutes. Without that information, incident response becomes archaeology: reconstructing, through guesswork, a reality that was never written down.

Key takeaway:

Infrastructure documentation does not compete with the "real" work: it enables it. Every minute invested in keeping a reliable inventory is paid back many times over during the first incident, the first audit or the first migration.

The Three Pieces: CMDB, IPAM and DCIM

Documenting a complete infrastructure means answering three distinct questions: what assets exist and how they relate, what IP addressing they use and where they are physically located. Each question has its own discipline and its own tooling:

account_tree CMDB

Configuration Management Database

Inventory of assets and their relationships: servers, VMs, services and dependencies. The basis of ITIL and of incident response.

lan IPAM

IP Address Management

Addressing management: subnets, VLANs, assigned IPs and DNS. Goodbye to IP conflicts and the address spreadsheet.

dns DCIM

Data Center Infrastructure Management

The physical world: racks, units, power, cabling and the location of each device within the datacenter.

The CMDB is the logical heart: a catalog of configuration items that not only lists servers and virtual machines but models the relationships between them. Knowing that the billing service depends on three VMs, which in turn run on two hypervisors connected to a specific storage array, is what lets you assess the impact of any change before you make it. It is the basis of ITIL and the most valuable asset during incident response.

The IPAM solves addressing. As soon as a network grows from a few dozen to a few hundred addresses, managing it in a spreadsheet becomes unworkable. A real IPAM knows the subnets, the prefix hierarchies, the VLANs and which IPs are free or in use, and it prevents two devices from receiving the same address. Well integrated with DNS, it becomes the authoritative source for "what address each thing has".

The DCIM documents the physical world: which rack and which unit each server is mounted in, how it is cabled, which PDU powers it and how much power it draws. It is what lets a remote-hands technician find the right piece of equipment first time, and what prevents electrical or thermal capacity surprises when you plan for growth.

Piece What it documents Tools
CMDB Configuration items (servers, VMs, services) and their dependencies NetBox, i-doit, Device42, GLPI, ServiceNow
IPAM Subnets, VLANs, assigned IPs, prefixes and DNS records NetBox, phpIPAM, Infoblox
DCIM Racks, units, power, cabling and physical location NetBox, Device42, openDCIM

NetBox: The Source of Truth for Network and Datacenter

NetBox is an open-source tool that started inside DigitalOcean's network team and is today practically a de facto standard for documenting infrastructure. Its great strength is unifying IPAM + DCIM and much of an infrastructure CMDB into a single coherent data model, instead of spreading that information across three tools that never quite line up with each other.

The concept that defines NetBox is the source of truth: a single authoritative database that describes how the infrastructure should be configured. NetBox does not monitor or discover the real state of the network on its own; it documents the intended, desired state. That distinction matters, because it turns NetBox into the starting point for automation rather than a passive reflection of what already exists.

Its data model is rich and hierarchical: sites and regions for location, racks with their units, devices and device types with ports and interfaces, virtual machines and clusters, prefixes and IP addresses, VLANs, provider circuits and point-to-point cabling. All of it interrelated, so that an IP is not a stray piece of text but an entity attached to an interface, which belongs to a device, which sits in a rack, which sits in a site.

The piece that makes that whole model useful is NetBox's REST API (and GraphQL). Any inventory data is queryable and modifiable programmatically, which lets you integrate NetBox with the rest of your operations stack. The official NetBox documentation details both the data model and the API endpoints, and is the recommended entry point for designing a serious deployment.

Documentation as Code: The Source That Feeds Automation

The classic problem with all documentation is that it drifts out of sync: you write it once, reality changes and the document goes stale. The way to break that cycle is to stop treating documentation as text you read and start treating it as data you execute. If the inventory feeds the real configuration of your systems, keeping it up to date stops being an act of discipline and becomes a consequence of operating.

This is where NetBox connects with infrastructure as code. NetBox can act as a data source for Ansible through its dynamic inventory: instead of maintaining a hosts file by hand, Ansible queries NetBox and discovers which machines to manage, with what IPs and in which groups, straight from the documented inventory. Likewise, it integrates with Terraform through its official provider, letting you reserve prefixes or IP addresses in NetBox as part of provisioning.

The resulting pattern is powerful: NetBox describes the desired state, the automation tools apply it, and any drift between what is documented and what is real can be detected and corrected. Documentation stops being a mirror you have to keep wiping by hand and becomes the master blueprint that the configuration is generated from. As a result, it does not drift out of sync, because the whole system is built from it.

Alternatives to NetBox

NetBox is not the only option, and the choice depends on each organization's focus. The most relevant alternatives:

  • check_circle GLPI: a very widespread open-source solution that combines a CMDB with ticket management (ITSM) and workstation asset tracking. Strong on support and helpdesk, more oriented to corporate IT than to network and datacenter.
  • check_circle i-doit: a powerful and flexible CMDB, with open-source and commercial editions, widely used in environments that follow ITIL strictly and need to model complex relationships.
  • check_circle Device42: a commercial platform that stands out for its automatic discovery of assets and dependencies, useful when you want to reduce the manual inventorying workload.
  • check_circle NetBox: the reference when the focus is on network and datacenter, you prioritize the source-of-truth philosophy and you want to integrate documentation with automation through an API.

For a hosting provider or a network-oriented infrastructure team, NetBox usually wins on its data model and its automation ecosystem. For an organization whose priority is the lifecycle of business services and the helpdesk, a CMDB like GLPI or i-doit may fit better, or even be combined with NetBox as the source of truth for the network layer.

Best Practices and Compliance (NIS2 and ISO 27001)

Having the tool is only half the job; the other half is keeping it alive. These practices make the difference between a reliable source of truth and yet another dead document:

  • check_circle Build it into your processes: documentation must be updated as part of provisioning or decommissioning a service, not as a separate task that "will get done eventually". If creating a VM without registering it in NetBox is impossible by process, the inventory does not degrade.
  • check_circle Automate discovery: use tools that compare the real state against the documented one and flag discrepancies, so you catch ghost servers or unregistered IPs before they cause problems.
  • check_circle Version your changes: NetBox records a change history and supports working with branches and change requests, so every alteration to the inventory is traced and auditable.
  • check_circle Treat the inventory as the single source: avoid duplicating the same information across spreadsheets, wikis and the tool. With a single source of truth, there are no contradictory versions to reconcile.

The compliance angle is far from minor. Both the NIS2 directive and the ISO 27001 standard explicitly require an up-to-date asset inventory as the foundation of risk management. You cannot demonstrate that you protect your assets if you cannot first demonstrate which assets exist. A documented, traceable inventory is therefore both a security control and audit evidence: it lets you answer "what assets do you have, who manages them and what do they depend on?" with data, not memory.

EasyDataHost: Documented Infrastructure Management

At EasyDataHost we manage our customers' infrastructure on the same principle we apply to our own: if it isn't documented, it isn't under control. Our managed services always start from a rigorous inventory as the basis of operation:

  • arrow_right A source of truth for network and datacenter with unified IPAM and DCIM: every IP, VLAN, server and rack documented and related.
  • arrow_right An asset inventory that feeds automation with Ansible and Terraform, so configuration and documentation never drift apart.
  • arrow_right A record of dependencies between services that speeds up incident response and makes maintenance windows predictable.
  • arrow_right A traceable, auditable inventory aligned with the requirements of ISO 27001 and NIS2, in our own datacenter in Spain.

If your infrastructure today lives in spreadsheets and in your team's memory, the first step to reducing risk is to write it down in a structured way. Contact our team and we will help you design a source of truth that works for you.

Frequently Asked Questions

What is the difference between a CMDB and an IPAM?

A CMDB inventories configuration items and their relationships (servers, VMs, services and dependencies): it answers what exists and what depends on what. An IPAM focuses on addressing (subnets, VLANs, IPs and DNS): it answers what address each thing has. They complement each other, and tools like NetBox integrate both into a single data model.

Is NetBox a complete CMDB?

NetBox started as an IPAM and DCIM tool and covers a large part of an infrastructure CMDB: devices, VMs, relationships, services and cabling. It is not a general-purpose CMDB in the classic ITIL sense (it does not manage tickets or the full lifecycle of business services), but it works as the source of truth for the network and datacenter, and its API lets you integrate it with ITSM tools when you need a full corporate CMDB.

Why is documenting your infrastructure important for NIS2 and ISO 27001?

Both require an up-to-date asset inventory as the foundation of risk management: you cannot protect, patch or recover what you do not know exists. A documented inventory lets you assess the impact of a vulnerability, demonstrate controls in an audit and respond to incidents with reliable data about which assets are affected and what they depend on.

Conclusion

Documenting your infrastructure is not a secondary administrative task: it is a reliability and security function that enables everything else. Out-of-date spreadsheets and unwritten knowledge are a risk you pay dearly for in the first incident or the first audit:

  • arrow_right Documentation is a prerequisite for security and recovery: you cannot protect or restore what you do not know exists, and a bus factor of one is an organizational vulnerability.
  • arrow_right CMDB, IPAM and DCIM answer three distinct questions: what assets exist and what they depend on, what addressing they use and where they are physically located.
  • arrow_right NetBox unifies IPAM, DCIM and part of the CMDB as a source of truth, and its API makes it the master blueprint that feeds Ansible and Terraform.
  • arrow_right Treating documentation as code prevents drift, and a traceable inventory satisfies the asset-inventory requirements of NIS2 and ISO 27001.
NetBox CMDB IPAM DCIM Infrastructure NIS2
schema

Your infrastructure, under control and written down

EasyDataHost: managed services with a documented inventory, unified IPAM and DCIM and automation with Ansible and Terraform. Infrastructure in Spain, 24/7 support.