Download CVCV

The ServiceNow CMDB explained step by step, by following one server through it

ServiceNowCMDBCSDMITOMITAMSolarWinds


An engineer wants to reboot a database at 2pm. Who breaks?

Nobody can answer that from memory. The knowledge is real, but it is scattered. Some of it is in a wiki nobody updated. Some is in three people’s heads. Some is in a spreadsheet a manager keeps.

So the reboot happens. Payroll goes down. The answer arrives through the helpdesk queue.

Everything in this article exists to turn that question into something you can look up.

How to read this

Most guides to this topic are glossaries. A glossary is the worst possible shape for this material, because each piece only makes sense once you understand the piece before it.

So we will do it differently. We will take one server and follow it.

Call it prod-db-04. It holds the payroll database. We will walk it through all six layers of the stack and watch what each one does to it.

Every section ends with a recap. There is a glossary at the bottom with every term in one line. You do not need any prior background.

One note before we start. ServiceNow renames and reorganises things regularly, so everything here was checked in August 2026. The parts most likely to age are the CSDM version number and the AI features.

By the end you will be able to answer the 2pm question yourself, and explain why it needs six layers to answer.

The six layers

Each layer exists because the one before it would otherwise be unreliable.

Layer Its job The tools
1. Where records live Decide what a record is called and how it nests CMDB tables, CI Class Manager, CSDM
2. How data gets in Fill it without anybody typing MID Server, Discovery, Service Mapping, Service Graph Connectors
3. Settling arguments Remove duplicates, decide who to believe IRE
4. The money side Track cost, contracts, physical lifecycle HAM Pro, SAM Pro
5. Who uses it The teams and modules that read it Change, Incident, Event Management, Vulnerability Response
6. Keeping it clean Stop it rotting CMDB Health, Data Manager, Data Certification

Six layers, six jobs. Let’s walk.


Layer 1: Where the record lives

What a CMDB is

A CMDB is a database of your technology and how it connects. The letters stand for Configuration Management Database. Nobody says the long version out loud.

Picture a map of a city. Not a list of buildings. A map, with roads showing what connects to what.

That is the shape of it. Each thing is a dot. Each connection is a line between dots.

What a CI is

Each dot is a CI, short for Configuration Item.

A CI is one piece of technology. A laptop. A server. A database. An application. prod-db-04 will be one CI.

Why the lines matter more than the dots

A list of your servers is an inventory. Inventories are easy, and most companies already have one.

The 2pm question needs the lines. You start at prod-db-04, follow the lines upward, and find payroll sitting on top of it.

This is worth pausing on. It is a common way these projects disappoint: good dots, no usable lines. They can tell you what you own. They cannot tell you what it does.

Classes: what kind of thing is it?

Our server needs a type. In ServiceNow these types are called classes, and each class is a database table.

Some you will see constantly:

Class What goes in it
cmdb_ci The root. Everything inherits from it
cmdb_ci_computer Laptops and desktops
cmdb_ci_linux_server Linux servers, where prod-db-04 will go
cmdb_ci_win_server Windows servers
cmdb_ci_appl Applications
cmdb_ci_db_instance Databases

CI Class Manager is the screen where you look at these types and see what each one holds.

This sounds like filing. It matters more than that.

The class decides which fields exist. It decides which rules run later in Layer 3. It decides whether the teams in Layer 5 can find the record at all.

Put prod-db-04 in the wrong class and it becomes invisible to the people who need it, while looking perfectly fine in the table.

CSDM: agreeing on names

Here is what goes wrong without agreed names.

One team calls payroll a business service. Another calls it an application service. A third makes a business application record for it.

Now three true facts about payroll live in three places. None of them are connected. The 2pm query finds one of them at random.

CSDM is the fix. It stands for Common Service Data Model. It is ServiceNow’s published list of what the tables are called and what each one means.

Think of street names. A naming convention does not tell you where to build. It guarantees that when two people say “Second Avenue” they mean the same road.

That is all CSDM does. It is an agreement, not software you install.

When a job description says “CMDB architecture,” this is mostly what it means.

CSDM has layers, and you build them in this order:

  1. Foundation. Companies, locations, users, groups. Everything else points at these. You cannot record who owns prod-db-04 before the owning department exists.
  2. Design. Business capabilities and business applications. Payroll, described in business words.
  3. Manage Technical Services. Where payroll gets connected down to real servers and databases. This is the layer the 2pm question travels through.
  4. Sell/Consume. How people actually consume the service, with promises attached.

A Build layer was added later, covering lifecycles. The current published version is CSDM 5, from 2025, which extends the model past IT into things like data, facilities and networks.

Recap of Layer 1. A CMDB is a map, not a list. Each thing on it is a CI. The lines between CIs are the valuable part. Every CI has a class, and the class decides what is possible later. CSDM is the agreement about naming so that everyone draws the same map.

Right now the map is empty. Something has to fill it.


Layer 2: How the server gets found

Nobody types this in. There are two ways to fill the map, and real setups use both.

The MID Server: a helper inside the building

ServiceNow runs in the cloud. Your servers do not.

The platform cannot reach prod-db-04 directly. A firewall exists specifically to stop that.

So you install a MID Server. It is a small program running on a machine inside your network. It asks ServiceNow for jobs, does them locally, and sends the answers back out.

Think of an embassy. One trusted office inside the country, working for someone outside it.

It is not installed on every machine. It is one helper per network area.

Why this matters in practice. Where you put MID Servers decides what can be found. When someone says “Discovery isn’t finding anything,” a very common cause is a MID Server with no route or no password to that part of the network.

One more useful fact. MID Servers update themselves to match your ServiceNow version. So when you upgrade the platform, leave time for them too.

Discovery: knocking on every door

Discovery is the scanner. It starts from IP addresses and works upward: address, then machine, then what is running on it.

This is called horizontal discovery. It sweeps sideways across everything you own.

The way it finds our server is a house call, in four steps:

  1. Port scan. Knock on the door. A probe named Shazzam checks which ports are open. Open ports are the first clue. Port 22 suggests Linux. Port 135 suggests Windows. Port 161 suggests a network device.
  2. Classification. Ask who lives here. Linux server, Windows host, router, printer. The answer picks the class from Layer 1.
  3. Identification. Check ID. Collect serial number, hostname, MAC address. Then find out if we already know this machine. Layer 3 takes over here.
  4. Exploration. Come inside and look around. Installed software, running processes, CPU, memory, and the connections to other CIs.

Why four steps and not one? Deep questions are slow and need passwords. Knocking cheaply first, then narrowing down, is what lets you scan thousands of addresses on a schedule.

Service Mapping: following the pipe

Discovery has now found prod-db-04. It has also found four hundred other machines. It has no opinion about which ones belong together.

That is a real limit. Discovery tells you what you have. It does not tell you what matters together.

Service Mapping solves that. You give it a starting point, usually a web address. It follows the actual path a request takes: web address, then load balancer, then app server, then database.

Discovery walks every street in the city. Service Mapping starts at your kitchen tap and traces the pipe back to the reservoir, ignoring every house on the way.

This is the step that connects payroll to prod-db-04. Which means this is the step that makes the 2pm question answerable at all.

Service Graph Connectors: just ask someone who knows

Sometimes scanning is the wrong idea, because something else already has better data.

Your device management tool already knows every company laptop. It even knows the ones that are switched off, which no scan can find. Your security agent already has a list. Your monitoring tool already knows how the applications fit together.

Service Graph Connectors are ready-made pipes from those tools into the CMDB. They are listed in the ServiceNow Store and you install them rather than build them.

The three people most often try to build by hand already exist: Microsoft Intune, SentinelOne and Dynatrace.

Check the Store before writing any integration. On many projects this is the biggest single saving available. It is also safer, because a ready-made connector already handles Layer 3 correctly, and a hand-built one usually does not.

Where this gets hard: containers

prod-db-04 is easy. It has a serial number and it will still be there next month.

Containers are not easy. ServiceNow will happily record clusters, nodes and pods as CIs.

Here is the trap, and it appears months later. Pods are CIs, and the count only goes up. Without a cleanup rule, every container that ever ran stays forever.

The fix is not in this layer. It is a cleanup rule in Layer 6. Which is why you design those two together, not one after the other.

The modelling trick is to keep the permanent thing permanent. Record the logical Application Service, which stays, and let short-lived pods come and go underneath it. Then a deployment does not break your map.

Recap of Layer 2. A MID Server is your helper inside the firewall. Discovery scans sideways to find machines, in four steps: knock, ask, check ID, look around. Service Mapping traces one service downward, and that is what produces the connections you actually need. Service Graph Connectors skip scanning by copying from a tool that already knows. Containers work, but they pile up unless you plan to remove them.


Layer 3: Two tools disagree about our server

Discovery found the machine and called it prod-db-04.

The device management tool found the same machine and called it PRODDB04.corp.local.

Both are telling the truth. Neither knows the other exists.

Leave it there and you now have two CIs for one server. That is worse than having none, because the map looks complete and is lying.

It gets worse. Both tools also report how much memory it has, and they disagree. So whichever ran last wins, every time.

The IRE fixes both problems. It stands for Identification and Reconciliation Engine.

Think of passport control. It stands in front of the CMDB. Everything coming in should pass through it. And it does two jobs, which the name spells out.

Job one, identification: have I seen you before?

Identification rules are match rules. You set them per class.

Match on serial number. Or on name plus class. If something arriving matches a CI you already have, update that one. If it matches nothing, make a new one.

This is what turns our two records back into one.

It is also why the class decision in Layer 1 mattered. Rules are attached to classes. A record that arrives as the wrong class gets checked against the wrong rules, and slips through as new.

Job two, reconciliation: whose answer do we keep?

Two witnesses, one event, different stories. Reconciliation rules decide in advance who is believed, field by field.

The device tool is trusted for operating system version. Discovery is trusted for network settings. Everyone else is refused permission to write those particular fields, even with newer data.

Now the part that catches almost everyone. Smaller numbers win.

It is not a score. It is a finishing position. First place beats second. So 100 beats 200.

Rule type The question Example
Identification Have I seen this before? Serial number matches, so update instead of adding
Reconciliation Whose value do I keep? Intune at 100 beats Discovery at 200 for OS version

Get that backwards and your worst source quietly outranks your best one. Nothing breaks. Nothing warns you. The map looks right on launch day and goes wrong slowly for a year.

One extra note if you inherit someone else’s setup. Older data source precedence rules still exist but are outdated. Where both apply, the reconciliation rule wins.

The side door

Passport control only works if there is no way around it. There is a way around it.

The IRE is a piece of code you call, not a lock on the tables. So a normal import does not use it.

Load a spreadsheet straight into a cmdb_ci_ table and it writes right through. No ID check. Happily making second copies of things you already have.

You have to send it through on purpose. In an import that means a small script using CMDBTransformUtil. If you are fetching data yourself with code, call SNC.IdentificationEngineScriptableApi.createOrUpdateCI() directly.

Remember this one. It matters enormously later, because a big import is exactly what a migration is.

Recap of Layer 3. The IRE is passport control. Identification rules stop duplicates by matching on things like serial numbers. Reconciliation rules decide which source to trust per field, and smaller numbers win. Normal imports skip the IRE unless you deliberately route them through it.


Layer 4: Finance has a different question

Everything so far has been about running things. Meanwhile finance wants to know what prod-db-04 cost, when its warranty ends, and whose budget it sits in.

None of that belongs on the map.

So there are two records for one server. One CI, and one asset in a table called alm_hardware.

Same server, two files, on purpose. Like a person having a medical record and a bank record.

The CI knows the address, the operating system, and what depends on it. The asset knows the purchase order, the cost, the warranty and the storeroom.

They are also separate because they end at different times. The CI stops existing when the machine is destroyed. The asset record has to outlive it, for accounting.

HAM: tracking the physical thing

HAM is Hardware Asset Management. It follows the physical journey:

On Order → In Stock → In Use → In Maintenance → Retired → Disposed

There are more states than these six, but that is the journey. Each state can also carry a reason, called a substate. In Stock, Pending Repair is a very different situation from In Stock, Available.

Stockrooms are where things sit before someone gets them. This is where automation pays off. With Flow Designer you can raise a purchase request automatically when a stockroom runs low, instead of finding out the morning someone needs a laptop.

SAM: tracking the money

SAM is Software Asset Management. It compares what is installed against what you bought.

That comparison is the whole product. Picture a cinema counting tickets sold against seats occupied. Both kinds of mismatch cost money, in opposite directions.

It runs as a loop:

  1. Find what is installed.
  2. Compare it to what you paid for. The result is your license position for each product.
  3. Then two things happen at once. Reclamation deals with having too many: find software nobody has opened in 90 days, warn the user, give them a chance to object, then uninstall it. Remediation deals with having too few, which is the dangerous direction.
  4. Renew using the cleaned-up numbers, so every license you took back reduces next year’s bill.

Why does anyone fund this? Because of the true-up, which is when a software vendor audits you.

Walk in without good numbers and you pay for whatever they find. Walk in having already taken back the unused expensive seats and the number is yours to argue about.

This is often where a CMDB project pays for itself in actual money. Worth knowing the day someone asks you to justify it.

Recap of Layer 4. One server has two records: a CI for running it, an asset for paying for it. HAM tracks the physical journey from order to disposal. SAM compares installed against purchased, takes back unused licenses, and gives you defensible numbers when a vendor audits you.


Layer 5: Who actually reads the record

A CMDB nobody reads is an expensive list. So here is prod-db-04’s week.

Tuesday: a change request. An engineer asks permission to patch it.

The request lists the affected CI. The map turns that into a blast radius: payroll, its owner, the hours it may not be down. A group called the CAB, or Change Advisory Board, looks at that and approves or moves the window.

That is the 2pm question, asked in advance, by a form.

2am: a page. Monitoring sends an event. Event Management filters and groups the noise into one alert, then attaches that alert to a CI by matching the machine name, address or MAC.

Here is the bit worth learning. Alerts attach to infrastructure. Then the impact travels up the lines to the service.

Think of a power cut. You notice it at the lamp. The fault is at the substation. Only the wiring diagram lets anyone say “the whole block is dark” instead of “one bulb is out.”

That is the difference between a 2am page saying CPU high on prod-db-04 and one saying payroll is degraded. That difference is the entire point of this layer.

Thursday: it keeps happening. Incidents get service back. Problem Management finds the cause so it stops recurring.

The map makes that possible, because a problem record can point at the one CI that several separate incidents share. That is a query, not a hunch.

The number everyone quotes here is MTTR, mean time to resolution. The CMDB’s honest contribution is small but real. It removes the “which machine is this even about” stage from the start of every investigation.

Friday: a security finding. A scanner reports a vulnerability with a machine identifier. Vulnerability Response tries to match it to a CI, falling back to lookup rules when the first match fails.

Get matching right and the finding arrives with an owner and a service already attached. Get it wrong and you have thousands of findings nobody can act on. That is the normal failure of security tools bolted onto a weak CMDB.

Quarterly: an auditor. Rules like SOC 2 want proof that changes were approved and that you know where sensitive data lives. Both are queries against this stack.

Recap of Layer 5. Change uses the map to see what an outage would hit. Event Management attaches alerts to machines and lets impact travel up to the service. Problem Management finds repeat causes. Vulnerability Response needs good matching or it drowns you. Auditors want all of it as evidence.


Layer 6: Eighteen months later the server is switched off

And nobody tells the CMDB.

This is how these systems die. Not dramatically. The map and reality drift apart, people stop trusting it, then they stop using it, and once nobody uses it there is no reason to maintain it.

A map of 50,000 things is wrong within a week unless something keeps it honest.

CMDB Health: the checkup

CMDB Health scores your data on three things, and each one catches a different illness:

Metric What it asks What it catches
Completeness Are the required fields filled in? Records that exist but say nothing
Correctness Any duplicates, stale or orphaned records? Failures the IRE should have stopped
Compliance Does it follow your own rules? Servers with no owner, for example

Each score is the share of records that fail. Watch the direction it moves, not the number itself.

Notice that Correctness is really a report card on Layer 3. If duplicates are climbing, your identification rules are wrong.

Two ways to remove dead records

CMDB Data Manager removes stale records automatically. It is two pieces, not one.

A policy picks which records qualify, for example “operational, but not seen by Discovery since March.” A separate retirement definition says what to actually do to them.

A policy with no definition attached does nothing. It will not tell you either. Check for the pair.

Data Certification is the human version. It sends a recurring task to a named owner asking them to confirm their records are still real.

Automatic removal is you clearing out the garage on a schedule. Certification is asking each person to come and identify their own boxes. Use certification where judgement is needed, especially for ownership.

It is also the only thing here that creates accountability instead of just measuring decay.

Where you see it, and where AI fits

All of this appears in CMDB Workspace, where records, health scores and cleanup tasks sit together.

On AI, two different things get mixed up.

Predictive Intelligence is ordinary machine learning trained on your own history. It groups related alerts, spots unusual behaviour, and sorts incoming tickets. It needs a lot of clean history, which makes it a reward for good governance rather than a shortcut past it.

Now Assist is the generative AI layer, and it has CMDB features in current releases.

Neither one fixes a bad data model. Both get more useful the further through this layer you already are.

Performance Analytics turns all of it into trends for managers. Duplicates falling, license spend falling, completeness rising. Slightly cynically, this is what keeps the work funded past year one.

Recap of Layer 6. Health scores your data on completeness, correctness and compliance, and correctness is really a test of your IRE rules. Data Manager removes dead records automatically, but needs both a policy and a definition. Data Certification asks humans to confirm. AI helps once the data is already good, not before.


Doing all this while the old system still runs

Everything above assumed an empty ServiceNow. Usually you are moving off something else, and often that something is SolarWinds Service Desk.

This is a heart transplant while the patient runs a marathon. The estate does not pause for you. New machines appear mid-project. The helpdesk keeps working in the old tool. Every week you spend cleaning old data is a week that data changes.

One thing to know about the name. SolarWinds is two separate product families. Service Desk is the ticketing and asset tool, and it is what compares to the CMDB. The monitoring products, NPM for networks and SAM for servers, are a different lineage. Service Desk can pull monitoring data in as assets, which is why people mix them up.

Why companies leave. Service Desk is decent, with discovery and integrations. What it lacks is a published data model, a real arbitration engine, service mapping, and license positions.

Companies leave when the question changes from “what do we own” to “what breaks if this reboots, and what are we overpaying for.”

Three things usually force it, and which one you are in decides your first deliverable:

  • An acquisition. You suddenly have two of everything and no shared names. CSDM alignment becomes the urgent thing.
  • A painful audit. You need defensible numbers by a date. SAM becomes the urgent thing.
  • Plain growth. The estate outgrew a tool that assumed someone was tidying it by hand. Ingestion and governance become urgent.

Step 1: Look before you touch

Pull the old system’s structure and contents. Work out which classes are really used and which fields are really filled in.

Then find the ghost assets: machines switched off years ago that nobody deleted. A rough but effective filter is anything not seen on the network for 90 days.

Export the relationships too. Machines can be rediscovered. Hand-drawn connections cannot.

Step 2: Decide what not to move

This step decides whether the project takes three months or a year. The instinct is wrong.

Do not plan to move everything.

For each class, ask whether a live source already exists. For laptops, servers and application layouts it usually does: your device tool, your security agent, your monitoring tool, Discovery.

For those, move nothing. Install the connector and let the class fill itself from something that will also keep it current.

You are moving house into a place with grocery delivery. Do not box up the food.

Move only what nothing can regenerate: purchase dates, costs, contract numbers, warranty dates, owners, and hand-drawn connections. History, basically. It is a much smaller pile than the full inventory.

Step 3: Build the new place first

Foundation data first, because everything points at it. Companies, locations, users, groups.

Then confirm your classes and line them up with CSDM. Then write your identification and reconciliation rules, and set the numbers deliberately, with live sources ranked ahead of the old import.

All of this before any record arrives. Importing into an instance with no IRE rules is how you create a duplicate mess that takes longer to clean than the migration took to run.

Step 4: Move the small pile

Pull the old data into an import set, which is a holding table, not the destination.

Write a transform map to line the columns up and tidy the values. The classic job is fifteen spellings of one operating system version becoming one.

Then route it through the IRE on purpose, using the side door warning from Layer 3. This bulk import is exactly the situation that trap waits for.

Run it in a test instance first. Read the identification results, not just the row counts.

Step 5: Turn on the live sources and watch

Start the Discovery schedules and the connectors. The map stops being a snapshot and starts being maintained.

Then watch CMDB Health, especially duplicates and orphans. That is where a wrong rule shows up as a number instead of as a surprise.

Run both systems side by side for a few weeks, with the old one read-only as a safety net. This period is called hypercare.

Switch the old system off once the health numbers hold. The saved license is your payback, already measured.

Questions worth asking before you start

Each of these changes the plan, which is why you ask before there is a plan.

  • How much of the current data do we expect to leave behind? If the answer is “none,” nobody has scoped this honestly yet.
  • Do our major applications have named owners? If not, that is foundation work, it is political rather than technical, and it blocks Data Certification completely.
  • Which comes first, clean hardware or clean licensing? They pull in different directions. The answer usually depends on whether an audit or a renewal is closer.
  • Which source should we trust for which fields? This sounds like a detail. It is the precedence configuration, and paper is the cheapest place to have that argument.
  • What is our removal policy? Every conversation is about getting data in. What takes it out decides whether this still works in two years.

What is actually hard

Not the technology, in the end.

Garbage in, garbage out. Move a messy database faithfully and you have built an expensive new home for bad data. Deciding what to leave behind is the real work, it is unglamorous, and it is the part that gets skipped.

Trying to do everything. Mapping every application before delivering anything produces a project that never shows value and then gets cancelled. Take one important service end to end first, ideally the one with the worst outage history, because that is the success people with budgets will notice.

Ownership is political. Data Certification only works if owners are named and accountable. Getting that list agreed is usually harder than every integration combined. Plan for it rather than discovering it.

The two silent failures. Precedence numbers backwards, and imports skipping the IRE. Both produce a system that looks right on launch day and is wrong a year later. On any instance you inherit, check those two first.

Back to 2pm

The engineer files a change against prod-db-04.

The form picks up the CI. It follows the lines that Service Mapping drew. It returns the payroll service, its named owner, and the hours when taking it down is acceptable.

So the answer to “who breaks?” is no longer somebody’s memory, or a stale wiki, or a spreadsheet. It is a lookup.

It took six layers to make it one. A place for the record to live. A way to fill it without typing. A way to settle arguments so it says one thing instead of three. A money layer so someone can afford it. Readers, so it gets used. And housekeeping, so it is still true next year.

Every acronym in this article is one of those six jobs wearing a costume.

Glossary

Term In one line
CMDB Configuration Management Database. The map of your technology and its connections
CI Configuration Item. One thing on the map
Class The type of a CI, which is also its database table
CI Class Manager The screen for inspecting CI types and their rules
CSDM Common Service Data Model. ServiceNow’s agreed naming and layering convention
MID Server A small program inside your network that runs jobs for the cloud platform
Discovery Scans IP ranges to find machines. Sweeps sideways
Shazzam The port-scanning probe that starts Discovery
Service Mapping Traces one service downward from its entry point to find its dependencies
Service Graph Connector A ready-made pipe from another tool into the CMDB
IntegrationHub The integration platform those connectors run on
IRE Identification and Reconciliation Engine. Passport control in front of the CMDB
Identification rule Match rule that stops duplicates, usually on serial number
Reconciliation rule Decides which source is trusted for which field. Smaller number wins
Import set A holding table for incoming data before it reaches the real tables
Transform map Maps holding-table columns to real columns. Skips the IRE unless told not to
ITAM IT Asset Management. The money and lifecycle side
HAM Hardware Asset Management. Order to disposal
SAM Software Asset Management. Installed versus purchased
License position What you own minus what you use, per product
True-up A vendor audit of your license usage
Reclamation Taking back software nobody uses
CAB Change Advisory Board. Approves risky changes
Event Management Turns monitoring noise into alerts attached to CIs
MTTR Mean time to resolution
Vulnerability Response Matches security findings to CIs and owners
CMDB Health Scores your data on completeness, correctness and compliance
CMDB Data Manager Removes stale records. Needs a policy and a definition
Data Certification Recurring task asking an owner to confirm their records
CMDB Workspace Where records, health scores and cleanup tasks live
Ghost asset A record for something that no longer exists
Hypercare Running old and new side by side after go-live