Use CMDB relationships to assess service impact
Trace directed CMDB relationships from a database to services that may need a maintenance notice.
Use CMDB relationships to assess service impact
Work through the decision
A payroll service is reported down. A spreadsheet lists the servers the company owns, but none of the rows say which service each supports. Which records and relationships would help prioritize restoration?
Check your reasoning
Represent the service and relevant infrastructure as configuration items in appropriate classes. Maintain typed relationships with appropriate direction, source and ownership. Trace dependencies from payroll to the relevant components and validate that the relationships are current. CSDM guides consistent service modeling across teams.
Compare the choices
- Configuration item
- Track a managed component relevant to service delivery, such as a server, application or service. Select the appropriate CI class.
- CI relationship
- Describe how configuration items relate, such as a service depending on a component. Direction and currency affect impact analysis.
- Common Service Data Model
- Use consistent guidance for representing services and related concepts in appropriate tables and relationships across teams.
- Asset record
- Track financial, ownership and lifecycle concerns. An asset may relate to a CI, but inventory alone does not describe operational dependencies.
Follow the direction of impact
Payroll depends on the API, which depends on the database. A database outage can affect both upstream consumers. The same diagram does not imply a failed payroll screen causes the database to fail. Check the direction, class and last verification date of each relationship.
Practice the guide skills
- Model a technical component and its service relationship in the CMDB. Use CSDM guidance to choose appropriate classes and verify the direction used for impact analysis. Watch 2:22:55
Official objectives for this lesson
Lab · Trace the services that depend on a configuration item
Each pair in this sample CMDB means the first item depends on the second. Before running the code, sketch the path from the orders database to its consumers. Include each potential impact once.
from collections import defaultdict, deque
relationships = [
("Checkout", "Orders API"),
("Returns", "Orders API"),
("Orders API", "Orders DB"),
("Orders API", "Identity"),
("Checkout", "Identity"),
("Newsroom", "Web CMS"),
]
consumers = defaultdict(list)
for service, dependency in relationships:
consumers[dependency].append(service)
def potential_impact(component):
visited = {component}
queue = deque([component])
while queue:
for consumer in consumers[queue.popleft()]:
if consumer not in visited:
visited.add(consumer)
queue.append(consumer)
return sorted(visited - {component})
for component in ("Orders DB", "Web CMS"):
print(component, ", ".join(potential_impact(component)), sep=" -> ")
Check the result
Orders DB -> Checkout, Orders API, Returns Web CMS -> Newsroom
Try Identity as the starting item. Checkout is reachable along two paths but appears once. Confirm each potential impact with the service owner and health telemetry. A missing relationship can hide a consumer, so verify the relevant classes, relationship types and discovery evidence before scheduling work.
Related lesson · Choose a signal and route an alert
Use CMDB relationships to assess service impact quiz
Answer 3 questions. Check each answer for an explanation.