---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Exploring Discovery

# Exploring Discovery {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 5 minutes to read

Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Exploring Discovery

Discovery in ServiceNow identifies computers, servers, printers, IP-enabled devices, and their running applications, updating the Configuration Management Database (CMDB) with this data.
It uses two complementary techniques: horizontal discovery, which scans the network to find devices and their direct relationships, and top-down discovery, which maps Configuration Items (CIs) as part of business services through Service Mapping.
Show full answer Show less  

## Discovery Techniques

* **Horizontal Discovery:** Scans the network to detect devices and create direct relationships between CIs (e.g., an application running on a server). It is unaware of business services.
* **Top-Down Discovery:** Used by Service Mapping to identify and map CIs within business services, establishing service-related relationships among CIs.

Typically, horizontal discovery runs first to identify CIs, followed by top-down discovery to map service relationships.

## Components and Process

Discovery uses probes, sensors, and patterns to collect and process data:

* **Probes:** Scripts that query devices on the network.
* **Sensors:** Parse data returned by probes and update the CMDB.
* **Patterns:** Written in Nebula Discovery Language (NDL), patterns are advanced operations used primarily in later stages of horizontal discovery to gather detailed CI information.

Discovery progresses through four phases:

* **Scanning:** Detects open ports and device presence using the Shazzam probe.
* **Classification:** Determines device type and operating system with targeted probes and classifiers.
* **Identification:** Matches devices to existing CIs or creates new ones using identification rules.
* **Exploration:** Gathers additional details such as installed applications and hardware attributes, establishing relationships between CIs.

## Communication and Security

Discovery is agentless and communicates securely via MID Servers, which initiate all communications inside the enterprise firewall using SOAP over HTTPS. MID Servers execute probes and patterns, returning results to the ServiceNow instance for processing. They use protocols like SSH and SNMP to gather information without requiring permanent agents on target devices.

## Types of Horizontal Discovery

* **Network Discovery:** Identifies internal IP networks (optional if IP ranges are known).
* **CI Discovery:** Standard discovery to find devices, computers, and applications.
* **Cloud Discovery:** Detects resources in AWS and Azure cloud environments.
* **Serverless Discovery:** Finds applications on hosts without discovering the host first, relying on patterns.

## IP Service Affinity

This feature records the successful IP service (protocol) used to discover a device, associating it with the device's IP address. This allows Discovery to prioritize the correct protocol in future scans, improving efficiency and accuracy (e.g., using SNMP instead of SSH for network devices).

## Discovery Admin Workspace

The Discovery Admin Workspace centralizes monitoring, tracking, and managing discovery tasks. It integrates schedules, diagnostics, tuning, and anomaly detection to streamline the discovery process and enhance operational efficiency.  
Discovery finds computers, servers, printers, a variety of IP-enabled devices, and the applications that run on them. It can then update the CIs in your CMDB with the data it collects.

## Horizontal discovery and top-down discovery {#c_GetStartedWithDiscovery__section_bfk_n1g_ycb}

There are two types of discovery:

Horizontal discovery

:   Horizontal discovery is a technique that Discovery uses to scan your
    network, find computers and devices, and then populate the CMDB with the CIs it
    finds. Horizontal discovery creates direct relationships between CIs, such as a
    `runs on` relationship between an application CI and the actual
    computer CI that it runs on. Horizontal discovery is not aware of business services
    and does not create relationships between CIs based on the business service they are
    in.

Top-down discovery

:   Top-down discovery is a technique that Service Mapping uses to find and maps CIs
    that are part of business services, such as an email service. For example, top-down
    discovery can map a website business service by showing the relationships between an
    Apache Tomcat web server service, a Windows server, and the MSSQL database that
    stores the data for the business service.

    Typically, Service Mapping and Discovery work
    together to run horizontal discovery first to find CIs, and then top-down discovery
    to establish the relationships between business services that you need to know.

## Probes, sensors, and patterns {#c_GetStartedWithDiscovery__section_xqk_wlt_jkb}

Discovery uses these components to find CIs:

[Probes and sensors](https://servicenow-prod.fluidtopics.net/0t85gIX3hGiF4CP5GDz2Cg "The horizontal discovery process passes through the four phases of discovery using probes, which gather information on the target machine, and then sensors, which help Discovery determine what to do with that information.")
:   Probes and sensors are scripts that collect and process data on a host and then
    update the CMDB. More specifically, probes explore or investigate CIs on your network,
    and sensors parse the data returned from the probes. Several probes and sensors are
    provided by default, but you can customize them to find different information, or you
    can create ones. You can also configure several parameters to control the behavior of
    a particular probe every time it is triggered.

[Patterns](https://servicenow-prod.fluidtopics.net/kv8LoHnEyp_CUs0YMrjLqA "Horizontal discovery with patterns has four phases, just as horizontal discovery with probes does. However, for the last two phases, Discovery triggers operations from a pattern, rather than additional sets of probes.")
:   Patterns, like probes and sensors, are a series of operations that also collect data
    on a host, process it, and update the CMDB. Patterns differ from probes and sensors in
    that they are written in Neebula Discovery Language (NDL) rather than JavaScript, and
    they are called into action in the later stages of the horizontal discovery process.
    Default patterns are provided, but you can also customize or create patterns using the
    Pattern Designer.

## Horizontal discovery phases {#c_GetStartedWithDiscovery__discovery-phases}

The phases of horizontal discovery are:  
Discovery follows these phases:

Scanning
:   Discovery sends a probe called Shazzam to the network to see if commonly used ports are open
    and if these ports can respond to queries. For example, if Shazzam finds a device that responds on port 135, Discovery knows that it's a Windows server.

Classification
:   If Discovery finds devices or computers, it sends additional probes to find the type of device or the
    operating system on the device. For example, Discovery sends the WMI probe to a Windows machine to detect the Windows 2012 operating system. Then Discovery uses records called classifiers, which specify the trigger probe or probes that run
    during the next two phases. If you're using patterns, the classifier specifies a trigger probe that in turn launches a pattern.

Identification
:   Discovery tries to gather more information about the device and then tries to determine if a CI for the
    device exists in the CMDB. Discovery then uses additional probes, sensors, and identifiers to update existing CIs in the CMDB or
    create new ones. Identifiers, also known as identification rules, specify the attributes that the probes look at when reconciling data with the CIs in the CMDB. If you're using patterns, Discovery uses the appropriate identification rule for the CI type specified in the pattern.

Exploration
:   The identifier launches additional probes configured in the classifier. These probes are especially designed as exploration probes to gather additional information about the device, like the applications running it,
    and additional attributes, such as memory, network cards, and drivers. Discovery then creates relationships between applications and devices and between applications. If you're
    using patterns, the operations in the pattern perform the exploration of the CI.

## Discovery communication through MID Servers {#c_GetStartedWithDiscovery__section_lb1_fdl_f2b}

A [MID Server](https://www.servicenow.com/docs/access?context=mid-server-landing&version=yokohama&pubname=yokohama-servicenow-platform&ft:locale=en-US), which
constantly queries the instance for probes to run, executes the instructions in the probe or
in the pattern that the probe specifies. The MID Server then returns the results to the
instance, where sensors process it. The MID Server does not retain any discovery
information.

The MID Server starts all communications, using SOAP on HTTPS, which means that all
communications are secure, and all communications are initiated inside the enterprise's
firewall. No special firewall rules or VPNs are required.

Because Discovery is agentless, meaning that it does not require any permanent software to
be installed on any computer or device to be discovered, the MID Server uses several
techniques to probe devices without using agents. For example, the MID Server uses SSH to
connect to a Unix or Linux computer, and then it can run a standard command, as specified in
the probe, to gather information. Similarly, it uses the Simple Network Management Protocol
(SNMP) to gather information from a network switch or a printer.

## Types of discovery {#c_GetStartedWithDiscovery__section_lvj_5gl_f2b}

The types of horizontal discovery that the Discovery application can perform are
explained in the following table:  
{#c_GetStartedWithDiscovery__table_b2w_1hl_f2b__entry__2}

| Type | Description |
|-|-|
| Network discovery | Run this type of discovery to find the internal IP networks within your organization. If you already know the IP address ranges in your network, it is not necessary to run network discovery. |
| CI discovery | Run this type of discovery to find the devices, computers, and applications on your network. This is essentially the standard type of discovery that you run most often. |
| Cloud discovery | Run this type of discovery to find AWS and Azure resources in your organization's cloud. |
| Serverless discovery | Run this type of discovery to find applications on host machines without the need to discover the host first. Serverless discovery relies on patterns to explore CIs on a host. |
[ ]

{#c_GetStartedWithDiscovery__table_b2w_1hl_f2b}

## IP service affinity {#c_GetStartedWithDiscovery__section_rwp_y3v_5bb}

IP Service affinity saves the IP service information that is used to successfully find a
device and associates it with the IP address of the device. Using this information, Discovery can target the device in
subsequent runs with the accurate protocol. Discovery records the IP Service along
with the IP address. Discovery can
store the successful IP service information in the IP Service Affinity table
\[ip_service_affinity\].

For example: A network device has both an SSH port and an SNMP port open. By its agentless
design, Discovery tries SSH first.
However, network devices should be discovered through SNMP. Discovery tries the SSH probe and it
fails. This triggers the SNMP probe, which succeeds. With the association between the IP
address and the IP service, subsequent discovery runs that target this IP address use SNMP
first, because that is the probe that succeeded.
* **[Horizontal discovery process flow with probes and sensors](https://servicenow-prod.fluidtopics.net/0t85gIX3hGiF4CP5GDz2Cg)**   
  The horizontal discovery process passes through the four phases of discovery using probes, which gather information on the target machine, and then sensors, which help Discovery determine what to do with that information.
* **[Horizontal discovery process flow with patterns](https://servicenow-prod.fluidtopics.net/kv8LoHnEyp_CUs0YMrjLqA)**   
  Horizontal discovery with patterns has four phases, just as horizontal discovery with probes does. However, for the last two phases, Discovery triggers operations from a pattern, rather than additional sets of probes.
* **[Discovery Admin Workspace](https://servicenow-prod.fluidtopics.net/YPdKPtq_lXty0aOb9aUBZg)**   
  The Discovery Admin Workspace serves as a central location for monitoring, tracking, and completing discovery-related tasks. Experience a streamlined discovery process and greater efficiency with the integration of schedules, diagnostics, tuning, anomaly detection, and more within this single workspace.

**Related concepts**   

* [Discovery setup](https://servicenow-prod.fluidtopics.net/gT_SEEh4aL7QoRaRDFAJKw "After you activate the Discovery application, you have several ways to get started.")
* [Discovery monitoring and issue resolution](https://servicenow-prod.fluidtopics.net/4YLsC0A5tywvcaqJ28sfHw "Learn how to monitor the progress of your discoveries and how to configure the system to aggregate performance metrics that are important to you. Find descriptions of the error messages you see, as well as possible steps you can take to solve problems. The Now Support Knowledge Base on Hi contains several articles to help you troubleshoot discovery issues.")

