Your first CMDB
This tutorial builds a small inventory of servers end to end: a category, a Server type with a handful of fields, a few objects, and a search over them. It takes about fifteen minutes and works the same in the cloud and on a self-hosted installation. You need an instance and an account with administrator rights — see Start in the cloud or Quick install.
The concepts behind each step are explained in The data model.
1. Create a category
Categories are folders for types in the sidebar.
Open Framework → Categories and click Add category.
Under Details, enter the identifier
infrastructureand the labelInfrastructure, and pick an icon. Skip Assign types for now and save.
The category appears in the sidebar under Categories. It is empty until a type is assigned.
2. Define the Server type
Open Framework → Types and click Add. The type builder opens with four steps.
Basic information — name
server, labelServer, and an icon. Click Next Step.Content — drag a Section from Structure Controls onto the canvas and label it
General. Then drag these fields from Basic Controls into the section:Label
Control
Settings
Hostname
Text
Mark as required.
IP address
Text
Operating system
Select
Options
Linux,Windows,Other.In maintenance
Checkbox
Warranty until
Date
The section General with its five fields in the Content step.
Meta — under Summary, select Hostname and IP address. Summary fields are what lists and references show for an object.
Skip ACL for now and click Save in the panel on the right.
Finally, assign the type to its category: open Framework → Categories, edit Infrastructure, add Server under Assign types, and save.
Tip
Many kinds of object share the same groups of fields — interfaces, contract data, ports. Define such a group once as a section template and drop it into every type that needs it.
3. Record a few servers
In the sidebar, open Infrastructure → Server. The object list is empty.
Click Add, fill in the fields for
web-01, and save.Add
web-02anddb-01the same way. For many objects at once, use an import instead — see Import data.
Each object has its own page with the field values, a log of every change, its relations and the files attached to it.
4. Find and change objects
The search bar at the top searches across all types — try
web.In the object list, the column filters narrow the table down, for example to all servers running Linux. See Work with objects.
Select several objects in the list and use bulk change to set In maintenance on all of them in one step.
5. Change the type later
Types are not fixed. Edit Server, add a field Serial number, and save: all existing servers get the new field straight away, with its default value.
Warning
This works in both directions. Removing a field from a type removes it — and the values stored in it — from every object of that type. See Build types and categories.
Where to go next
Ways to connect objects — connect servers to applications, racks and locations.
Users and groups — give colleagues access with the right permissions.