Service Mapping — Discovering How Applications Actually Run
Discovery finds individual CIs — servers, databases, network devices. But a business application like "Online Banking" runs across dozens of CIs connected in specific ways. Service Mapping discovers those connections automatically, building a live application service map that shows exactly which CIs deliver each business service and how they depend on each other.
What Discovery Misses — The Application Layer
You now have Discovery running. It finds every server, switch, and network device on your network. Each one has a CI record in the CMDB with detailed OS, hardware, and software attributes. This is excellent infrastructure visibility.
But consider your change manager's actual question: "If I take the database server DB-PRD-01 down for maintenance tonight, which business applications will be affected?"
Discovery cannot answer this. It knows DB-PRD-01 exists and has Oracle 19c running. But it doesn't know which application servers are connecting to it, which application those connections belong to, or which business process depends on that application.
That's the gap Service Mapping fills. Instead of just finding what CIs exist, Service Mapping discovers how they connect to each other to form a running application service.
The Three Service Mapping Approaches
ServiceNow offers three approaches to Service Mapping, each suited to different starting points and environments.
1. Top-Down Discovery (Entry Point Approach)
You tell Service Mapping: "Start from this entry point (a URL, load balancer IP, or specific server) and follow the connections outward to discover everything this service touches."
How it works:
- You define the entry point: "https://banking.yourcompany.com"
- Service Mapping connects to the web server at that URL
- It reads the web server's active connections and processes
- It follows each connection to the next tier (app servers, databases)
- It continues following connections until there are no more to follow
- The result is a map of all CIs involved in delivering that service
This is the most powerful approach and builds the most accurate maps. It requires credentials to connect to each tier.
2. Bottom-Up Discovery (CI-Centric Approach)
Instead of starting from a URL, you start from a specific CI and ask: "What services use this CI?" Service Mapping looks at a known CI (e.g., a database server) and traces which application servers connect to it.
When to use: You already know certain CIs are critical and want to understand all services that depend on them. Useful for existing CIs discovered by Discovery or imported via SGC.
3. Traffic-Based Discovery (Agentless Network Approach)
ServiceNow analyzes actual network traffic (using NetFlow data or SNMP traps from network devices) to infer connections between CIs without needing credentials to connect to each server.
Advantages:
- Works for CIs where you can't install agents or have credentials
- Discovers connections that credential-based mapping might miss
- Can work for legacy or isolated systems
Limitations:
- Less detailed than credential-based mapping
- Requires network device data (NetFlow, SNMP)
- Cannot follow application-level logic — only network connections
| Approach | Starting Point | Credentials Required? | Best For |
|---|---|---|---|
| Top-Down | URL or entry point IP | Yes — for each tier | New service mapping; most accurate maps |
| Bottom-Up | Known CI record | Yes — for connected CIs | Understanding impact on a specific CI |
| Traffic-Based | Network flow data | No — uses network data | CIs without credentials; supplementary mapping |
Service Mapping Architecture Components
Service Mapping uses the same MID Server infrastructure as Discovery but adds additional components for tracking application-level connections.
Entry Points
An Entry Point is the starting URL or IP that Service Mapping begins from for top-down mapping. Entry points are configured in the Application Service record. You can have multiple entry points for applications with multiple front-ends (web, API, mobile).
Service Mapping Probes
Service Mapping uses specialized probes that focus on process connections rather than device attributes:
-
Connection probes: Read the network connections table of a server
(
netstaton Linux,netstaton Windows) to see which processes are connected to which remote addresses - Process probes: Identify which application process owns each connection
- Application probes: Identify the specific application framework (Apache, Nginx, Tomcat, JBoss, etc.) from process data
The Application Service Map
The output of Service Mapping is a visual service map — a diagram showing all CIs involved in the service and the connections between them. The map has tiers:
Each node is a CI record in the CMDB. Each connection is a relationship row in cmdb_rel_ci.
The map is stored as relationships in the cmdb_rel_ci table, with the Application Service CI as the parent that "uses" all component CIs.
Service Mapping Discovery — Step by Step
Let's trace a complete top-down Service Mapping run for "Online Banking":
-
Entry Point configured:
Admin defines entry point
https://banking.company.comin the Application Service record. - Mapping triggered: Admin clicks "Run Mapping" or the scheduled mapping runs. ServiceNow sends instructions to the MID Server.
-
MID Server connects to entry point server:
MID Server resolves
banking.company.comto an IP (say, 10.0.5.10), connects via SSH, and reads the active process connections. -
Process connections discovered:
netstatshows the web server (Nginx process) has established connections to 10.0.5.20:8080 (the app server) and 10.0.5.30:443 (a payment processing API). - Tier 2 exploration: MID Server follows each discovered connection: connects to 10.0.5.20 (app server), reads its connections, finds 10.0.5.40:1521 (Oracle database).
- Tier 3 exploration: MID Server connects to 10.0.5.40 (Oracle DB server), reads its connections. No further outbound connections found — this is the end of the chain.
- Map assembled: ServiceNow creates CI records for each discovered component (using IRE) and creates cmdb_rel_ci records linking them under the Application Service.
- Application Service updated: The "Online Banking" Application Service CI now has a populated service map: Load Balancer → Nginx Web Server → Tomcat App Server → Oracle DB.
Tag-Based Service Mapping — Cloud-Native Discovery
In cloud environments (AWS, Azure, GCP), infrastructure is ephemeral — servers spin up and down dynamically. Traditional top-down mapping (which starts from a fixed entry point) struggles with this because the entry point changes.
Tag-Based Service Mapping solves this by using cloud resource tags to group CIs into a service automatically.
How it works:
- DevOps team tags all AWS resources belonging to "Online Banking" with the tag
Service=OnlineBanking - ServiceNow's SGC for AWS pulls all resources and their tags
- Tag-Based Service Mapping reads the tags and groups all CIs tagged
Service=OnlineBankinginto the "Online Banking" Application Service - No connection tracing needed — the tag is the signal
Advantage: Works perfectly in auto-scaling environments where individual servers change constantly, because the tag persists even as individual instances are replaced.
Service Mapping and Discovery — How They Work Together
Service Mapping is not a replacement for Discovery — it builds on top of it. Here's how they complement each other:
- Discovery creates the CI records. Before Service Mapping can connect "Web Server A" to "Database B," both CIs must exist in the CMDB. Discovery creates them with full infrastructure attributes.
- Service Mapping creates the service relationships. It reads the running state of the application (live connections, active processes) and maps which CIs are connected right now.
- Both update the CMDB through IRE. Both Discovery and Service Mapping route their data through IRE — the same Identity and Reconciliation Engine — ensuring consistent deduplication and field precedence rules.
- Service Mapping enriches existing CI records. When Service Mapping finds that a web server CI (already in CMDB from Discovery) is running Nginx, it may enrich the CI with the Nginx version discovered through the connection-tracing probes.
Service Mapping vs. Discovery — Key Differences
| Dimension | Discovery | Service Mapping |
|---|---|---|
| Primary question | "What CIs exist and what are their attributes?" | "Which CIs work together to deliver this application service?" |
| Starting point | IP range sweep | Application entry point (URL/IP) or CI record |
| Primary output | CI records with detailed attributes | Application service relationships (dependency map) |
| Runs on | All IP ranges in a schedule | Specific application services |
| Frequency | Periodic (daily/weekly full scan) | Continuous or scheduled (tracks live connections) |
| Uses MID Server? | Yes | Yes |
Keeping Service Maps Current
A service map that was accurate 6 months ago may not be accurate today — applications change, servers are added or removed, connections shift. Service Mapping provides several mechanisms to keep maps current.
Scheduled Remapping
Each Application Service has a scheduled mapping configuration. Options:
- Continuous mapping: Service Mapping runs on a short interval (every 15–30 minutes) to catch connection changes quickly
- Daily/weekly scheduled mapping: For stable applications that don't change frequently
- Manual run: "Run Mapping Now" button on the Application Service record
CI Retirement and Map Cleanup
When Discovery no longer finds a CI (server decommissioned), that CI's operational_status is set to "Retired" and it's removed from active service maps on the next mapping run. This keeps maps current without manual cleanup.
Map Exceptions
Occasionally Service Mapping discovers connections to CIs that should NOT be in the service map — monitoring agents, backup agents, security scanners. You can define mapping exclusions to prevent specific CIs or connection types from being included in the map.
Service Mapping Powers Change Impact Analysis
Service Mapping's most important exam use case is change impact analysis. When a change is planned for any CI, ServiceNow can use the service map to automatically identify which Application Services will be affected.
Change Impact Analysis Flow
DB-PRD-01 is referenced in the Change Request's CI field.cmdb_rel_ci to find all Application Services that DB-PRD-01 is a member of. This is only possible because Service Mapping built those relationships.DB-PRD-01 as a component CI: Online Banking, HR Portal, and Payroll Processing.Without an accurate service map, this impact analysis returns zero results or incomplete results. A change approver sees "no known impact" and approves — but in reality three critical business services go down.
Service Mapping — Key Facts
- Service Mapping discovers relationships between CIs, not just CI attributes. Discovery finds CIs; Service Mapping connects them.
- Application Service CI (
cmdb_ci_service_auto) = the top-level CI representing an end-to-end business application. Called "Service Instance" in CSDM 5 (Zurich+). - Top-Down: Starts from URL/entry point, follows live connections tier by tier. Most accurate. Needs credentials per tier.
- Bottom-Up: Starts from a known CI, discovers services that depend on it.
- Traffic-Based: Uses NetFlow/SNMP network data to infer connections. No credentials needed. Less detailed.
- Tag-Based: Groups cloud resources by tag. Best for dynamic cloud/microservices environments.
- Output stored as
cmdb_rel_cirecords. Relationships are the primary artifact, not new CI records. - Use Case: Change Impact Analysis. Service maps tell change approvers which business services a maintenance window will affect.
- Mapping exclusions prevent monitoring/backup agents from cluttering the service map.
- Both Discovery and Service Mapping route through IRE.
Term Grid
cmdb_ci_service that represents a complete running application, including all supporting CIs and relationships discovered by Service Mapping.cmdb_rel_ci records.Practice Questions
Click any question to reveal the answer and explanation.
Practice Questions
4 questions · Select an answer to see the explanation immediately.
An Application Service called "ERP System" has been mapped by Service Mapping. What is the primary data artifact created in the CMDB that represents the component connections?
B is correct. Service Mapping's primary output is CI relationship records in cmdb_rel_ci. These records describe which CIs are connected, how they relate (Uses, Depends on, Runs on), and under which Application Service they operate. Discovery creates the CI records themselves; Service Mapping creates the relationship records that connect them into a service map. Import Set rows (A) are for data staging, not Service Mapping output.