Docs
On this page
tutorial4 min readApplication: CMDB

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 relationship diagram.

Before you begin

  • You need the cmdb_administrator role to open the CMDB → Administration menu and edit CMDB metadata.
  • You need a role that can create tables, such as administrator [UNVERIFIED].
  • 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.

  1. Select CMDB → Administration → View physical CMDB tree and find CMDBLaptop in the tree.

  2. Select Application → Table → Create new table. Form Builder opens.

    Form Builder with the new table details panel open.
  3. Enter the label CMDB Apple laptop. The table name becomes CMDBAppleLaptop. CI class names start with CMDB to set them apart from other tables.

  4. Search the parent table list for laptop and select CMDB Laptop. Set Menu creation to None. Leave the Advanced options panel at its defaults.

    The table details filled in, with CMDB Laptop as the parent table.
  5. Select Save table and configure fields. The add field dialog opens.

  6. Add a field named Chip family of type Choice. In the choice editor, type Intel in Choice label and select Add/Update, then do the same for Apple Silicon. The choice key and order are generated for you.

    The Chip family field with its two choices in the choice editor.
  7. Select Create. The field appears on the form.

  8. Select Save. A progress dialog shows while the table is created.

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.

  1. 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.
  2. Select New.

  3. Enter the table name CMDBAppleLaptop in Name and the table label CMDB Apple laptop in Title. Set the logical domain to Abstract domain.

  4. Turn on View definition is fragment. Leave the icon and the infobox template at their defaults.

    The new CMDB metadata record with View definition is fragment turned on.
  5. Select Create.

  6. Go to /#/CMDBAppleLaptop/_create in your instance. The form shows the parent classes’ fields on tabs beside the new field.

    The rolled-up create form for CMDB Apple laptop, with a tab for each parent class.

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.

  1. Create an Apple laptop CI from /#/CMDBAppleLaptop/_create and select Create.

  2. Create a router CI from /#/CMDBRouter/_create and select Create.

    The router create form filled in.
  3. Select CMDB → Relationships → New relationship. Choose the two CIs and a relationship type, then select Create.

    The new relationship form linking the laptop and the router.
  4. Go to /#/CMDBAppleLaptop and open the laptop. The record shows one relationship.

    The laptop record with one relationship listed.
  5. Select View related items. The CMDB diagram shows the laptop and the router.

    The CMDB diagram with the laptop linked to the router.

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.

Last updated 18 October 2026commit 5ea5eb0dd83dChris Jones
Back to top