Missing assets for some of your CIs and don’t know where to start? Read on. I’ll break it down in simple terms and give you a tool to help you remedy the situation.
At first glance, these two concepts seem to do the same thing: they categorize "stuff." However, they serve two very different masters.
1. The CI Class (The "What is it doing?")
The CI Class (sys_class_name) is a technical definition. It lives in the CMDB and tells the system what the object is and what attributes it has.
cmdb_ci_linux_server tells ServiceNow to look for RAM, CPU, and IP addresses.2. The Model Category (The "Glue")
The Model Category is the bridge. Its primary job is to link the CI Class to an Asset Class. It dictates whether a CI should have a corresponding financial record (Asset).
cmdb_ci_server class to the alm_hardware asset class.How They Work Together
When you create a new CI, ServiceNow looks at its Class. It then checks the Model Categories to see if that Class is listed. If it is, the system automatically triggers the creation of an Asset. Without this link, your hardware arrives, gets discovered, but never shows up in your financial books.
Often, custom CI classes are created without a corresponding Model Category. A large number of OOTB CI classes also do not have corresponding model categories. This leads to "Ghost CIs"—technical records that exist in the CMDB but are invisible to the Asset Management team.
To maintain a healthy instance, you need to identify which CI classes are "orphaned" (configured to be tracked but missing the model category link).
Below is a Background Script (JavaScript) you can run to identify CI Classes that are active but do not have a defined Model Category. It then prints out the CI classes with a model category and tells you if they have an asset class. An asset class dictates that an asset record should be created!
If you want help identifying and fixing orphaned CI classes in your environment, get in touch with our team, and we’ll walk you through the script, results, and next steps to ensure your CMDB and Asset data stay fully aligned.
We go further and faster when we collaborate. Geek out with our team of engineers on our learnings, insights, and best practices to unlock maximum value and begin your business transformation today.
Learn how RapDev uses YAML and Git to register microservices, automate CMDB, and power tag-based mapping

Explore how RapDev’s integration enables teams to automatically generate CI tags
