- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi everyone,
I’m learning CMDB and would like to practice the implementation in my free ServiceNow instance. I’m comfortable with ITSM, scripting, business rules, Flow Designer, and integrations, but I’m not sure where to start with CMDB or how to bring those skills together in a practical project.
I’d like to learn how to bring data into ServiceNow through an integration, map it to the right CMDB tables and fields, handle identification and reconciliation, create CI relationships, and validate the results. I’m also interested in how CMDB data connects to CSDM and service mapping.
If you’ve built a similar learning project, could you recommend a good starting point, sample data source, or step-by-step resources? I’d especially appreciate advice on which parts can be practiced in a free instance and common beginner mistakes to watch for.
Thanks for any guidance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Hamza,
Great set of questions, and the good news is that almost all of this can be practised on a free Personal Developer Instance. With ITSM, scripting and Flow Designer already under your belt, you're well placed. Here's a path I'd suggest, in the order I'd do it.
1. Learn the plumbing before any integration
Spend your first sessions on how CMDB data gets in and stays healthy, because every later step depends on it:
- Identification and Reconciliation Engine (IRE). This is the heart of modern CMDB. Learn what identification rules are (look at the OOB ones for cmdb_ci_server and cmdb_ci_computer under Configuration > CI Class Manager > Identification Rules), and what a reconciliation rule does when two sources disagree about the same attribute.
- The golden rule: never insert directly into cmdb_ci tables with GlideRecord. Use the IdentificationEngine API (or Import Sets with robust transform, below) so identification rules run and you don't create duplicates. Writing a GlideRecord insert into cmdb_ci_server is the single most common beginner mistake, and unlearning it later is painful.
- CI Class Manager. Browse the class hierarchy so you understand how cmdb_ci extends into servers, applications, databases and so on, and where attributes live.
2. A practical first project: CSV or REST import of servers and applications
You don't need a real discovery tool. Make your own sample data and treat it as a third-party source:
- Create a CSV (or a small JSON API with a mock service) with 20 to 30 "servers": name, serial number, IP, OS, manufacturer, and 10 "applications" that run on them, with a column saying which server each runs on.
- Bring it in with an Import Set and a transform map, but instead of mapping straight to the target table, use the CMDB Integration approach: map into the Identification and Reconciliation robust transformer, or call sn_cmdb.IdentificationEngine.createOrUpdateCI() from a script. Both routes exercise IRE properly.
- Deliberately re-import the same file with small changes: a changed IP, a renamed server, a new row. Watch what IRE updates, what it creates and why. This teaches identification better than any reading.
- Then register a second data source claiming different values for the same CIs and set reconciliation rules to decide which source wins per attribute. That's reconciliation in practice.
3. Relationships
Add the "runs on" relationships between your applications and servers. Do it via the payload (IRE accepts relationships in the same JSON) rather than inserting into cmdb_rel_ci directly. Check your work in the Dependency Views map on a CI. Learn the difference between Runs on::Runs, Depends on::Used by, and when each is right. Wrong relationship types and directions are the second most common beginner mistake.
4. Health and validation
Turn on the CMDB Health dashboards and learn the three pillars: completeness, compliance, correctness. Set required attributes for a class, create a duplicate on purpose, and watch the health jobs flag it. De-duplicate with the remediation tools rather than deleting records, so you learn the supported path.
5. CSDM, in small steps
Don't try to implement all of CSDM at once. On a PDI you can get the idea with just: one Business Application, one Application Service, your technical CIs underneath, and a Service Offering on top. Understand the difference between "what we run" (application) and "what we deliver" (service). The CSDM white paper from ServiceNow is the reference here; read it after you've played with the tables, not before, or it won't stick.
6. Service Mapping caveat
Top-down Service Mapping (the licensed product with patterns and traffic-based discovery) isn't realistically practisable on a PDI, since it needs a MID Server and real infrastructure to map. What you can do: create an Application Service manually and add CIs to it, which teaches you what Service Mapping produces. Tag-based service maps are also worth a look. For Discovery itself, you can install a MID Server on your own machine or a cloud VM and discover your home network, which is a great weekend project, but treat it as optional.
7. Where ITSM ties back in
Once your CMDB has data, connect it to what you already know: point Incident and Change at your CIs, use affected CIs on a change, and build a flow that creates an incident when a CI's status changes. That's where CMDB stops being abstract.
Resources, in the order I'd use them
- ServiceNow docs: "CMDB identification and reconciliation" section
- The CSDM white paper (search "CSDM white paper" on the Community; make sure you get the current version)
- Now Learning: the CMDB fundamentals path is free
- The CMDB Engineering blog posts on the Community are excellent on IRE internals
Beginner mistakes to watch for
As a checklist: direct GlideRecord inserts into CI tables, creating new CI classes when an existing one fits, wrong relationship direction, importing without a data source registered (so reconciliation can't arbitrate), and skipping health dashboards until "later".
Good luck, and post your progress back here. A learning log thread tends to get good input from CMDB folks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @hamxaejaz10 ,
You can start learning with CMDB fundamentals course so here you will get all idea about cmdb and there are 2 micro certifications , one for cmdb configuration and another for cmdb health . So you can do handson there and there are few task that you have to perform and validate once done .
Course link : https://learning.servicenow.com/lxp/en/it-operations-management/configuration-management-database-cm...
If this helps you then mark it as helpful and accept as solution .
Regards,
Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @hamxaejaz10 ,
A good way to practice CMDB in a free PDI is to build a small Application → Server → Database CMDB project instead of starting with a large enterprise model.
For example:
External JSON/CSV data → Import Set → Transform Map → CMDB → IRE → CI Relationships → CSDM mapping
You can create sample data such as:
Application: Customer Portal
Server: APP-SRV-01
Database: DB-SRV-01
Then practice the following:
Import the external data into an Import Set.
Use Transform Maps to map the data to appropriate CMDB tables such as cmdb_ci_server and cmdb_ci_database.
Configure Identification and Reconciliation Engine (IRE) so duplicate CIs are not created.
Test identification using attributes such as hostname, serial number, or other appropriate identifiers.
Create CI relationships, for example:
Application → Runs on → Server → Depends on → DatabaseValidate the result using CMDB Health and the CI Relationship views.
Once the basic model works, extend it toward CSDM by mapping the application to the appropriate business/service concepts.
A good learning exercise is to deliberately import the same server twice with the same identification data and verify that IRE updates the existing CI instead of creating a duplicate.
Also practice negative scenarios such as missing identifiers, incorrect class mapping, duplicate data, and relationship direction errors.
You don't need a real discovery tool to learn the fundamentals. A mock CSV/JSON data source is enough to understand Import Sets, Transform Maps, IRE, CI classes, relationships, and CSDM concepts before moving to Discovery.
💡 This gives you a complete hands-on project in a free PDI and also mirrors the basic flow used in real CMDB implementations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @hamxaejaz10 ,
CMDB Health in ServiceNow is a feature that monitors, measures, and maintains the overall quality and accuracy of your Configuration Management Database (CMDB). It evaluates Configuration Items (CIs) across three core pillars: Completeness (checking if required and recommended fields are populated), Compliance (ensuring CIs adhere to predefined audit rules and configurations), and Correctness (identifying issues like duplicate, orphan, or stale records). By tracking these metrics on the CMDB Health Dashboard and using automated remediation workflows, organizations can keep their IT infrastructure data reliable for operations and decision-making.
If this helps you then mark it as helpful and accept as solution .
Regards,
Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @hamxaejaz10 ,
A good way to practice CMDB in a free PDI is to build a small Application → Server → Database CMDB project instead of starting with a large enterprise model.
For example:
External JSON/CSV data → Import Set → Transform Map → CMDB → IRE → CI Relationships → CSDM mapping
You can create sample data such as:
Application: Customer Portal
Server: APP-SRV-01
Database: DB-SRV-01
Then practice the following:
Import the external data into an Import Set.
Use Transform Maps to map the data to appropriate CMDB tables such as cmdb_ci_server and cmdb_ci_database.
Configure Identification and Reconciliation Engine (IRE) so duplicate CIs are not created.
Test identification using attributes such as hostname, serial number, or other appropriate identifiers.
Create CI relationships, for example:
Application → Runs on → Server → Depends on → DatabaseValidate the result using CMDB Health and the CI Relationship views.
Once the basic model works, extend it toward CSDM by mapping the application to the appropriate business/service concepts.
A good learning exercise is to deliberately import the same server twice with the same identification data and verify that IRE updates the existing CI instead of creating a duplicate.
Also practice negative scenarios such as missing identifiers, incorrect class mapping, duplicate data, and relationship direction errors.
You don't need a real discovery tool to learn the fundamentals. A mock CSV/JSON data source is enough to understand Import Sets, Transform Maps, IRE, CI classes, relationships, and CSDM concepts before moving to Discovery.
💡 This gives you a complete hands-on project in a free PDI and also mirrors the basic flow used in real CMDB implementations.