OBLYTECH Logo
OBLYTECH Logo

ServiceNow CMDB Relationships Diagram: How to Read the Map

A CMDB relationship links two configuration items (CIs) and states how they connect, such as one server being managed by another. ServiceNow draws those links as lines in the Unified Map and Dependency Views map, and the relations formatter on a CI form lists them. This page explains what the lines mean and what can hide a CI.

Why the CMDB stores relationships

A list of CIs shows what exists but not how the pieces depend on each other. The configuration management database therefore stores each link as a parent CI, a child CI and a relationship type. In the pair “Server1 is managed by Server2”, Server1 is the child, Server2 is the parent, and “Managed by” is the type.

Discovery loads many relationships automatically, and people add or correct the rest from the CI form or a map.

Dependent relationships, such as an application running on a host, help the Identification and Reconciliation Engine recognise a CI already in the database, so they should not be deleted directly. Non-dependent relationships are tracked in the Relationship Sources table and can be removed once no longer needed.

Relationship types and governance rules

Relationship types come in pairs, one for each direction. The table lists key pairs, not the full set.

Parent side Child side What the link typically means
Contains Contained by Containment, such as a Tomcat server containing a WAR file
Depends on Used by A problem or change in the child may affect the parent
Hosted on Hosts A hosting link, such as a workload on a cluster
Manages Managed by One CI manages one or more other CIs
Owns Owned by Usually a containment link to an owned CI
Runs on Runs A software application running on the hardware or virtual machine that hosts it
Connects to Connected by Network elements that talk to each other, such as a workstation and a switch

Two CIs can be joined by more than one relationship, and the Unified Map marks that with a badge on the line.

Relationship governance rules decide which types and directions are valid between pairs of CI classes. They fall into four groups: dependent relationship rules for hosting and containment, suggested relationships for each class, reference rules, and built-in valid relationships. Rules pass down the class hierarchy, so a valid Runs On link from an application class is also valid from a subclass of that application. Duplicate rules are not permitted, and the Relationship Health Dashboard reports compliance. The CI relationship governance article goes deeper on rule types.

Reading the Unified Map

The Unified Map is a graphical, hierarchical map of the CMDB. It combines some of what Dependency Views and Service Mapping offer. In the Australia release it sits in the Service Graph Workspace and the CMDB Workspace.

Opening the map

Choose All, then CMDB Workspace, then Unified Map, or use the matching path in the Service Graph Workspace. On a CI in an operational state, the Open Map action opens the map with that CI as the home node.

Reading lines and nodes

Nodes are CIs and lines are connections. A solid line is a relationship, and its arrowhead marks the dependent node, so the arrow shows which CI relies on the other. A dashed line is a reference. A badge on a line shows how many relationships join the two CIs.

Controls and panels

The home node search box changes the focus node, and the levels setting controls how many relationship levels appear. Filters narrow the view by layer count, CI class, relationship type, discovery source, location and ownership. The view icon shows filtered CIs as dimmed, view-only nodes instead of removing them. The export icon in the toolbox saves the map as a PDF. The Overview panel summarises everything connected to the home node. Selecting a node or relationship fills the attributes, service instances, related items and changes panels.

Timeline and service instances

The timeline plots incidents, problems and changes for the selected CI over a chosen period. When Service Mapping is active, the map also shows the member CIs of a service instance, such as a service called Revenue App.

Change Management, Incident Management and Event Management benefit from this relationship information, since it supports impact analysis for a selected node.

Working with the Dependency Views map

The Dependency Views map is a separate view centred on one root CI. The root is surrounded by a darker frame with a pulsing effect. The map shows upstream and downstream dependencies, three levels in each direction by default, and an administrator can change that number. Clusters start collapsed, and expanding one reveals its contents. Indicators flag CIs with active or pending issues.

The map opens from the map icon on a CI record or on a task record that identifies a CI. When you return to it from another form, it reopens the last map you viewed, using the default filter and layout settings. Many of its relationships come from discovery, but you can also create, define and delete CI relationships there. Users with the itil and ecmdb_admin roles can view maps and carry out actions in them. With Service Mapping activated, the map also displays dependencies that reflect service map connections.

The relations formatter on the CI form

The default CI form includes a relations formatter. It lists related CIs and can launch the relationship editor for the CI. Its toolbar offers an Add CI relationship control, a Show dependency views control that opens a map in another window with the CI at the centre, a search control, and a settings icon. Indicators beside related CIs show changes, outages, problems and incidents, and settings persist across logins.

Flat is the default layout. It groups related CIs by relationship type in alphabetical order. Tree shows a hierarchy instead and switches off the other settings. Within flat layout, Merge is the default and shows upstream and downstream relationships together, while Split shows them in separate lists. Filter Relations by Max Level defaults to 3, and the relationship type filter defaults to All Relationship Types.

If the browser does not meet the requirements for the current formatter, the default CI form shows the legacy formatter instead.

Editing relationships

The Unified Map editor

Select the edit map icon to start an editing session. A thick blue outline shows that the editor is active. You can add a CI that already has a CMDB record and then add, change or delete its relationships. Nothing reaches the CMDB until you select Save, and the reset icon undoes unsaved changes. The editor requires the sn_cmdb_admin or sn_cmdb_editor role.

A CI can be removed from the map when you added it during the current session and have not saved. Removing it deletes its relationship records but leaves the CI record in the CMDB. Deleting a connection can orphan a CI, and the editor shows a warning when that happens. A CI that loses its connection path to the home node becomes an isolated island branch. It is hidden on save, and its record remains.

The editor does not edit mapped application services, add or delete CI records themselves, add or remove endpoint CIs, or delete reference or endpoint connections.

The CI relationship editor

The relationship editor opens from the formatter and treats the launching CI as the base CI. Depending on the relationship type, the base CI becomes the parent or the child. With Use suggested relationship ticked, the editor lists the CI, user and group relationship types that fit the base CI, each showing whether the base CI sits as parent or child. Without it, you choose a second CI first, and the editor shows downstream links, where the base CI is the parent, and upstream links, where it is the child. Creating relationships requires the sn_cmdb_editor, asset or itil role.

Why a CI or a link does not appear

Five things can hide an item. A CI’s class must extend the Configuration Item table (cmdb_ci) to appear in Dependency Views maps and the formatter. An endpoint that is a child in one relationship and a parent in another is hidden, as are qualifier chains. The Applicative Flow To and Applicative Flow From type is excluded from the formatter. With domain separation enabled, a relationship appears when the signed-in user may view both CIs. When related CIs exceed the configured limit, the flat layout reverts to tree and a notice appears.

Settings that control how much the diagram shows

Find these in sys_properties.list. The property glide.ui.max_relation_levels sets the highest level displayed in flat view before the relations limit is reached, and its default is 5. The property glide.ui.max_relations sets the maximum number of related CIs displayed, with a default of 1000. The property glide.ecmdb.find_relationship_issues controls whether an icon linking to open issues appears, and it defaults to true.

A separate property, glide.identification_engine.populate_sys_rel_source, controls whether the Relationship Sources table fills in automatically. By default it does not, which avoids burdening the Identification and Reconciliation Engine.

Frequently asked questions

What does the arrowhead on a line in the Unified Map mean?

The arrowhead marks the dependent node on a solid relationship line, so you can see which CI relies on the other.

How is a reference different from a relationship on the map?

A relationship is a solid line and a reference is a dashed line. Both connect CIs, and the map draws them differently so you can tell them apart.

How many levels does a map show by default?

The Dependency Views map shows three levels in each direction, and an administrator can change that. The formatter’s Max Level filter also defaults to 3.

Can I edit relationships from the diagram?

Yes. The Dependency Views map lets you create, define and delete relationships, and the Unified Map editor saves nothing to the CMDB until you select Save.