CI Class Manager is where administrators view, create and edit CMDB class definitions. To add a class, you extend an existing extendable class, name it, set the attributes that identify its CIs, and add reconciliation and suggested relationship rules. CI action restrictions and class list limits in CMDB Workspace then control how the class is used.
Where CI Class Manager fits in CMDB administration
CI Class Manager opens from All > Configuration > CI Class Manager. It gathers basic class definitions, the class settings the Identification and Reconciliation Engine (IRE) uses, CMDB Health rules and some Service Mapping definitions in one place. If the class hierarchy is new to you, a plain explanation of CMDB classes covers the vocabulary first.
Access depends on role. The sn_cmdb_admin role has full access to all sections, and sn_cmdb_editor can view but not change. The screen covers CMDB tables; non-CMDB tables fall under separate IRE support.
| Area | What you do there |
|---|---|
| Class basics | View and edit class definitions and metadata, add suggested relationships, show the CIs for a class, update the Principal Class filter list, delete CIs |
| CMDB Health | Create compliance audits and certification templates, set orphan and staleness rules, mark a CI field recommended or an attribute mandatory, set health inclusion rules |
| IRE | Build identification and identification inclusion rules, reconciliation rules, data refresh rules and dependent relationship rules |
| Service Mapping | Define entry point types and the CI types used by Service Mapping and Discovery |
Creating a child class from an extendable parent
A new CI class is a table that extends an existing CI class. The parent must have its Is_Extendable field checked. If the parent is not extendable, the Add Child Class option does not appear, so check that setting first when the option is missing.
- Go to All > Configuration > CI Class Manager.
- Click Hierarchy to expand the CI Classes list.
- Select the class your new class will extend.
- Click Add Child Class.
- On the Provide Basic Info tab, complete the fields and click Next.
Editing the dictionary table also needs the personalize_dictionary role.
The basic information fields carry the naming decisions:
| Field | What to enter |
|---|---|
| Display name | A unique label, such as Laptops or Thin Clients, up to 80 characters. It appears on list and form views. |
| Table name | Filled in from the label with the fixed prefix u_cmdb_ci. The prefix cannot change. The rest uses lowercase ASCII letters, digits and underscores, up to 80 characters. |
| Description | The purpose of the class. |
| Extensible | Whether this class can itself be extended later. |
| Principal Class | Whether CIs of this class appear when the Principal Class filter is applied. |
Settle the table name early, since other work will refer to it. Name it for the class itself rather than for one project or vendor.
Attributes and identification rules
On the Add Attributes tab, click the plus sign to add each column. An attribute that should help identify a CI needs its Identification Rule column set to true, which you do by double-clicking that cell. This designates it as a CI identifier.
The Set Identification Rule tab shows the derived rule the class inherits, with its identifier entries. Click Replace to swap in a rule specific to the new class, and test it against real records before relying on it. A Dependencies tab appears when the parent has dependent identification rules.
Dependencies, deletion and reclassification
Independent classes, such as Linux Server, have their own identity and exist without other CIs. Dependent classes exist meaningfully through a relationship. A Network Adapter CI has little meaning without the Hardware CI that contains it, and an Application CI depends on the Server CI it is hosted on. To see a class’s dependency classification, open its Identification Rule page in CI Class Manager.
Dependency also governs deletion. When a parent CI is deleted or its lifecycle changes, dependent CIs can be left with no purpose, and the platform runs cascade-cleanup processes on them. Check which dependent CIs a parent supports before removing it. For changing a CI’s class after it exists, see reclassifying an existing CI.
Reconciliation rules and suggested relationships
The Add Reconciliation Rules tab has one Add button that creates the class’s reconciliation rules and its data refresh rules. Check both sets before relying on the class.
The Add Suggested Relationships tab shows a diagram of the relationships derived for the class. You can filter it by direction or relationship type. To add one, click New, choose a Relationship and a Target Class, then click Save. Your direction choice decides whether the new class sits as parent or child in that pair. The Query Builder list of suggested relationships updates to match, so add them during design.
Principal classes are prioritised for tracking, health and certification. Their scope is covered on the principal class scope page; here, the Principal Class checkbox is the field to set.
Restricting what can happen to a CI
To define an action, go to All > Configuration > CI Lifecycle Management > CI Actions, select New, enter a Name and a Description, and select Submit. Actions already applied to CIs can be seen from Configuration by opening CMDB CI Actions.
By default there are no restrictions on applying CI actions. To add one, go to All > Configuration > CI Lifecycle Management > Not Allowed CI Actions and click New:
| Field | Purpose |
|---|---|
| Not Allowed Action | The action being restricted |
| CI Type | The CI type the rule applies to. Choose Configuration Item to apply it to all CIs. |
| Operational State | The state a CI must be in for the restriction to apply |
For example, you can stop the provisioning action being applied to a Linux Server that is in a non-operational state. When an API tries to apply that action to a matching CI in that state, the operation fails and an error is logged.
Limiting the class list in CMDB Workspace
When you create a CI in CMDB Workspace, the default class list covers nearly the whole CMDB hierarchy. You narrow it through the CI class config table, sn_cmdb_ws_ci_class_config. Managing entries needs the sn_cmdb_ws.config_editor role.
| Field | Purpose |
|---|---|
| Config identifier | The workspace setting the entry belongs to. The Default identifier is the fallback for any workspace without its own. |
| CI class | The class to include or exclude |
| Active | Turns the entry on or off |
| Feature | Preset to Create CI |
| Apply to hierarchy | Applies the entry to all classes below the chosen class |
| Operation | Include or exclude the class |
The table ships with one entry for the Configuration Item [cmdb_ci] class, which covers the full hierarchy through the default. To limit a workspace, create a config identifier for it and add an entry per class or branch. A class appears in the Class drop-down on the Select class page when its entry makes it available.
Installing the CMDB CI Class Models app
Some class models arrive as the CMDB CI Class Models app from the ServiceNow Store. It adds classes that extend the CMDB hierarchy, with their descriptions, identification rules, identifier entries and dependent relationships. Once installed, those classes behave like any other class, and Discovery and Service Mapping can use them to populate CIs.
The app writes to four tables: CMDB Class Information (cmdb_class_info) for descriptions, Identifier (cmdb_identifier) for identification rules, Identifier Entry (cmdb_identifier_entry) for identification entries, and CMDB Metadata Hosting Rules (cmdb_metadata_hosting) for dependent relationships.
Installation needs the admin role, and the app is requested through the Store. To check it, go to All > Configuration > CI Class Manager, select Hierarchy, and confirm the added classes appear. Uninstalling the app can compromise the integrity of the CMDB and cause unexpected behaviour, so plan to keep it in place.
Working with the base Configuration Item class
Classes you create usually trace back to the base Configuration Item [cmdb_ci] class, which holds attributes common to all CIs. Several are reference fields: Location points to the Location table, Managed by and Owned by point to the User table, Manufacturer and Vendor point to the Company table, and Model ID points to the Product Model table.
Do not modify these attributes in the dictionary. Changing the location attribute from reference to list, for example, can stop CMDB features that depend on it. If a new class needs a field like a base attribute, add a new attribute to that class instead.
Frequently asked questions
Can I add a class that does not extend an existing class?
Not through this procedure. A new CI class is built as a child of an existing extendable CI class. Choose the parent that matches the CI type you are modelling, since the new class starts from its attributes and identification rule.
Who can view the hierarchy without changing it?
Users with the sn_cmdb_editor role can view CI Class Manager but not change it. Full access is held by sn_cmdb_admin, and the admin role also grants it, so keep administration with a smaller group.
What happens when a restricted CI action is attempted through an API?
The operation fails and an error is logged. The restriction matches on the action, the CI type and the operational state together, so the same action can still succeed on a CI in another state.
Why does a new class not appear in the CMDB Workspace drop-down?
Check the CI class config entries for the workspace’s config identifier. The class must have an active entry set to include. Also check for a higher entry with Apply to hierarchy set, since it affects all classes below it.