No history yet

CMDB Architecture and Relationships

The CMDB's Blueprint

At the heart of the ServiceNow CMDB is a structured table hierarchy. Think of it like a family tree. At the very top sits the base table, cmdb_ci (Configuration Item). This is the great-ancestor of all other CI classes in the system.

Every other CI class, like Server (cmdb_ci_server), Database (cmdb_ci_db_instance), or Network Gear (cmdb_ci_netgear), is a child of this base table. This is done through a concept called table extension, or inheritance. A child table inherits all the fields, or attributes, of its parent table. So, every server CI will have a name, asset tag, and operational status because those attributes exist on the base cmdb_ci table.

The hierarchy gets more specific as you go down. For example, the Server class has its own children, like Windows Server (cmdb_ci_win_server) and Linux Server (cmdb_ci_linux_server). These child classes inherit everything from the Server class and the base CI class, but they also have their own unique attributes. A Windows Server might have an attribute for its specific patch level, which wouldn't make sense for a Linux Server.

This inheritance structure is efficient. It avoids redundancy by defining common attributes at a higher level and allows for specific details at the lower, more granular levels. This ensures that data is consistent and logically organised.

The Common Service Data Model

A well-structured CMDB is more than just a list of assets. It needs a blueprint that connects technical components to the business services they support. This is where the Common Service Data Model (CSDM) comes in. It's ServiceNow's standard framework for modelling services and managing data within the CMDB.

CSDM isn't a separate product you install; it's a prescriptive guide. It provides a standard set of tables and relationships to ensure your CMDB accurately reflects how your organisation operates. By following the CSDM, you can answer critical questions like, "If this server goes down, which business applications will be affected?" or "Which departments use this email service?"

The framework is organised into several domains, such as the Design domain for application portfolios, the Manage Technical Services domain for technical service offerings, and the Sell/Consume domain for business-facing services. This model bridges the gap between your IT infrastructure and the actual services your business consumes, making the CMDB a strategic tool rather than just an IT inventory.

Lesson image

Adopting the CSDM framework ensures that as you build out your CMDB, you're creating a sustainable and valuable map of your entire IT ecosystem. It standardises where different types of data should live, making processes like incident management, change management, and asset management more effective.

Managing the Classes

To manage this complex hierarchy of tables, ServiceNow provides the CI Class Manager. This is your central console for viewing the entire CMDB class structure, creating new classes, and defining the rules that govern them.

One of the most critical functions within the CI Class Manager is setting up Identification and Reconciliation rules. These rules tell the system how to uniquely identify a CI. For instance, a server might be uniquely identified by its name and serial number. When new data comes into the CMDB, whether from an automated discovery tool or a manual import, the Identification and Reconciliation Engine (IRE) uses these rules to check if the CI already exists. If it does, the existing record is updated. If it doesn't, a new one is created.

Without these rules, you'd quickly end up with a CMDB full of duplicate records, making it unreliable. For example, one tool might discover a server named SVR01, and another might find svr01.mycompany.com. Proper identification rules ensure the system recognises these as the same device, preventing a messy and inaccurate CMDB.

Proper identification rules are the foundation of a healthy CMDB, preventing duplicate CIs and ensuring data trustworthiness.

Connecting the Dots

A CMDB's true power isn't just in the CIs themselves, but in the relationships between them. Mapping these dependencies is essential for understanding how your IT environment functions as a whole.

ServiceNow provides a set of suggested relationship types to standardise these connections. The most common type is Depends on::Used by. For example, an Apache Web Server application Depends on a Linux Server. Conversely, the Linux Server is Used by the Apache Web Server. Establishing these links is vital for impact analysis. When you plan a change to the Linux server, you can immediately see that the Apache application will be affected.

While you can create these relationships manually, this approach is prone to errors and quickly becomes unmanageable in large environments. Automated discovery tools are the preferred method. They can scan your network and automatically map these dependencies, providing a far more accurate and up-to-date picture of your infrastructure.

To visualise these complex connections, you can use Dependency Views. This feature generates an interactive map that shows a CI and all its upstream and downstream relationships. It’s a powerful tool for troubleshooting incidents. If an application is down, you can pull up its dependency map to see if any of the underlying servers, databases, or network devices are reporting an issue.

This visual context helps teams quickly identify the root cause of an outage, reducing downtime and improving service reliability. It turns the CMDB from a static database into a dynamic, operational tool.

Quiz Questions 1/6

What is the name of the base table from which all other Configuration Item (CI) classes in the ServiceNow CMDB are extended?

Quiz Questions 2/6

What is the primary purpose of the Common Service Data Model (CSDM)?

Understanding the architecture of the CMDB is fundamental to leveraging its power within ServiceNow for effective IT service management.