Your first CMDB class
Create a CI class as a new table, register it in CMDB metadata so its form rolls up, and relate one of its CIs to another.
This tutorial walks a CMDB administrator through adding a CI class for a device that needs fields the shipped classes do not have. At the end you have a class for Apple laptops with its own field. Its form rolls up the parent classes’ fields, and one of its CIs is related to a router.
What you will learn
- How to choose the parent class for a new CI class.
- How to create the class as a table in Form Builder.
- Why the class needs a CMDB metadata record, and which setting makes its form roll up.
- How to relate two CIs and view the related items diagram.
Before you begin
- You need the
cmdb_administratorrole to open the CMDB → Administration menu and edit CMDB metadata. - You need the
administratorrole to create the table. The Data model → Tables menu and saving in Form Builder are for administrators only. - Work in a development instance and track the work in a change set, so you can move the class to production later.
The example class is a laptop made by Apple with one extra field, Chip family. Replace it with the device you need.
Step 1: Choose the parent class and create the table
CI class inheritance is an “is a” relationship. Place the new class as low in the tree as it needs to go to inherit the fields it uses. An Apple laptop is a laptop, so its parent is CMDBLaptop. Choosing CMDBEndUserDevice instead would lose the laptop fields and force you to duplicate them.
-
Select CMDB → Administration → View physical CMDB tree and find CMDBLaptop in the tree.
-
Select Data model → Tables → Create new table. Form Builder opens the New table dialog.

The Create new table item in the Tables menu of Data model. -
Enter CMDB Apple laptop in Label. Name becomes
CMDBAppleLaptop. CI class names start withCMDBto set them apart from other tables. -
In Parent table, select CMDB laptop.
-
Under Start from, select Business data. It is for records the business keeps and looks up, such as devices. Leave Menu at None and the Common and Advanced tabs at their defaults.

The New table dialog with CMDB laptop as the parent table and Business data selected. -
Select Create. Form Builder opens the new table’s first form. Nothing is saved yet.
-
Add a field. In the field picker, select the New field tab and find Choice. Name the field Chip family. The Available values dialog opens when the field is added. Give the field the values Intel and Apple Silicon.
-
Select Save. Servicely creates the table, its field and its form together.
Step 2: Register the class in CMDB metadata
A new class shows only its own fields until it has a CMDB metadata record. With View definition is fragment set, the CMDB form rolls up the fragments of the class and all its parents, one tab per class.
-
Select CMDB → Administration → CMDB metadata. The list shows one record per CI class.

The CMDB metadata list with a record for each shipped CI class. -
Select New.
-
Enter the table name
CMDBAppleLaptopin Name. Select the new table in Table. Enter Apple laptop in Title. -
Set Logical domain to Abstract domain and View definition is fragment to Yes. Leave Icon, Image and Infobox template at their defaults.

A new CMDB metadata record with View definition is fragment set to Yes. -
Select Create.
-
Go to
/#/CMDBAppleLaptop/_createin your instance. The Record details tab has a tab for each parent class beside the new field.
The create form of the parent class, CMDB laptop, with a tab for each of its parent classes under Record details.
CMDBLaptop has no fields of its own, so it has no tab. A tab appears as soon as a field is added to it.
Step 3: Create a CI and relate it to another
A relationship links a provider CI to a dependent CI through a relationship type. Here the laptop is related to a router.
-
Create an Apple laptop CI from
/#/CMDBAppleLaptop/_createand select Create. -
Create a router CI from CMDB → Network → Router, or open one that exists.
-
Select CMDB → Relationships → New relationship. Choose a Type, such as Usage. Select the router as Provider and the laptop as Dependent, then select Create.

The new relationship form with a type, a provider and a dependent. -
Go to
/#/CMDBAppleLaptopand open the laptop. Its Relationships tab lists the relationship. -
Select View related items. The diagram shows the laptop and the router. Use the toolbar to zoom, tidy up, or export the diagram as SVG or PNG.

The related items diagram for a CI, with its toolbar and legend.
What you have done
You chose a parent class by the “is a” test, created CMDBAppleLaptop with one field, and registered it in CMDB metadata so its form rolls up its parents. You then created two CIs and related them. To load CIs of the new class in bulk, map an import to the table. To give people access to it, the CMDB roles apply to every class that extends the CMDB table.