Pattern-based discovery in Service Mapping
Summarize
Summary of Pattern-based discovery in Service Mapping
Pattern-based discovery is the primary method used by Service Mapping to collect data about devices and applications that comprise application services. It creates detailed maps of these services by discovering configuration items (CIs) and their connections, then storing this information in the Configuration Management Database (CMDB). This process enables ServiceNow customers to visualize and manage the components and dependencies of their services effectively.
Show less
Key Features
- Patterns: Defined sequences of commands that detect CI attributes and outbound connections, combining algorithms for identification and connectivity.
- Entry Points: Starting points for discovery, such as an IP address or host name where clients access a service instance.
- Discovery Process: Begins with horizontal discovery to identify hosts, followed by top-down discovery to map applications on those hosts.
- MID Servers: Serve as communication agents within the customer network to run discovery probes and interact with CIs without traversing firewalls.
- Interaction with ECC Queue: Discovery requests and responses use the External Communication Channel (ECC) queue to coordinate MID Server activities and data collection.
- Enrichment of Connection Data: Service Mapping supplements discovered CI connections by checking additional CMDB tables (cmdbtcp and saflowconnection) for unique outbound connection data.
- Boundaries: Discovery stops at CIs marked as boundaries or those without outbound connections, controlling the scope of the mapping.
- Regular Service Recomputations: The system periodically refreshes CI data, network paths, and applies impact rules to keep maps current.
Practical Implications for ServiceNow Customers
ServiceNow customers can use pattern-based discovery to automate the comprehensive mapping of application services by defining entry points and deploying MID Servers within their network. This method ensures accurate identification of hosts and applications, their attributes, and interconnections. The resulting maps in the CMDB provide a reliable foundation for impact analysis, service monitoring, and change management.
Customers should note that pattern operations currently require English language data for successful parsing. Additionally, understanding the role of boundaries helps control discovery scope to avoid unnecessary mapping beyond service limits.
Overall, pattern-based discovery enhances visibility into IT infrastructure, enabling better service management and operational decision-making.
Pattern-based discovery is the main method of Service Mapping collecting data about devices and applications used in application services. After Service Mapping collects data, it then creates a map of application services and stores the collected data in the CMDB.
ServiceNow applications refer to devices and applications that comprise a service instance as configuration items (CIs).
Service Mapping uses patterns to discover and map CIs. A pattern is a sequence of commands whose purpose it is to detect attributes of a CI and its outbound connections. A typical Service Mapping pattern consists of two types of algorithms for identifying CIs and finding CI connections.
The starting point of any discovery process is an entry point. An entry point is a point where clients access a service instance. For example, to map your electronic mailing service instance, define an IP address or host name of the email server as an entry point. The discovery and mapping process begins from Discovery performing the horizontal discovery to identify the host. Once the host discovery is complete, Service Mapping starts the top-down discovery to find and map applications running on this host.
Service Mapping uses MID Servers to communicate with CIs in your organization. MID Servers are located inside your organization network and Service Mapping can communicate with them without traversing firewalls.
- An administrator defines an service instance with an entry point for an application CI.
Service Mapping creates a record for the new service instance in the Mapped Application Service [cmdb_ci_service_discovered] table.
- The device hosting the application is identified.
- Service Mapping checks if the device hosting this application CI exists in the CMDB.
- If the device hosting this application CI does not exist, Service Mapping triggers Discovery to detect host.
- Discovery creates the first set of probes for port discovery, referred to as Shazzam probes, and places them as a discovery request in the External Communication Channel (ECC) queue.
- The MID Server checks the ECC queue and retrieves the discovery request assigned to it.
- The MID Server runs the probes against the host and discovers open ports.
- The MID Server passes information on the host ports to the ECC queue.
- Discovery checks the ECC queue and receives information on the host ports.
- These steps are repeated for other types of probes: classification, identification, and exploration.
- Discovery adds the host to the CMDB.
- During the host discovery using probes, Service Mapping checks the ECC queue if this process is complete. When the host discovery is complete, Service Mapping checks whether this host exists in the CMDB.
Note:For the detailed description of the horizontal discovery flow, refer to Horizontal discovery process flow with probes and sensors. - Once the host is found in the CMDB, Service Mapping discovers the application running on this host.
- Service Mapping creates an application discovery request for the IP address of the entry point. It then writes the request in the ECC queue and assigns a MID Server to the request.
- The MID Server checks the ECC queue and retrieves the discovery request assigned to it.
- The MID Server starts running identification sections of the patterns associated with the classifier to find the match for the entry point. When the identification section matches the entry point,
the pattern discovers a CI.
- The MID Server starts running connectivity sections of the pattern to find outgoing connections of the newly discovered CI.
- The MID Server passes information on the discovered CI, its attributes, and connections to the ECC queue.
- Service Mapping checks the ECC queue and receives information on the newly discovered CI.
Whenever Service Mapping checks the ECC queue and receives information on a discovered CI, it checks these tables for any data on outbound connections related to the CI: the cmdb_tcp and sa_flow_connection tables. If these two tables contain unique data that patterns did not discover, Service Mapping enriches the information about the CI connections and adds them to the map.
- Service Mapping writes the information into the CMDB and adds this CI to the service instance map.
- Service Mapping creates the discovery requests for all applications to which the newly discovered CI connects. Mapping is complete after Service Mapping maps a CI that either does not have any outbound connections or is marked as a boundary. A boundary makes Service Mapping stop discovery from this point and not follow outgoing connections.
- The system regularly runs the service recomputation to query the CMDB for the latest CI changes, add data for network and storage paths, and apply CI impact rules.