Horizontal discovery process flow with probes and sensors
Summarize
Summary of Horizontal discovery process flow with probes and sensors
The horizontal discovery process in ServiceNow uses probes and sensors to identify and classify devices within a network, then updates the Configuration Management Database (CMDB) accordingly. This process enables customers to automate discovery of devices across IP ranges, ensuring accurate and up-to-date asset information.
Show less
Discovery Phases
- Kicking off Discovery: Discovery starts when a user configures a schedule or launches an on-demand discovery targeting one or more IP addresses.
- Scanning Phase: The Shazzam probe and port probes scan the target machine’s open ports using protocols like WMI, HTTP, SSH, and SNMP. Responsive ports help determine the machine type, e.g., port 22 indicates a UNIX/Linux system.
- Classification Phase: Based on port probe responses, Discovery sends a classification probe to gather additional details such as the operating system version. This determines the CI class. Only one classification probe runs per device.
- Identification Phase: Discovery selects a classifier based on the CI class and runs identification trigger probes that use identification rules to decide whether to insert or update the CI in the CMDB. Probes collect identification data, and sensors process this data to update the CMDB accurately.
- Exploration Phase: Discovery executes exploration trigger probes specified by the classifier’s triggers list. These probes gather further details, and sensors update the CMDB similarly to the identification phase.
Key Components
- Probes: Scripts or programs that collect data from devices during scanning, classification, identification, and exploration phases.
- Sensors: Processes that interpret probe data to update or create CIs in the CMDB.
- External Communication Channel (ECC) Queue: A message queue used to manage discovery requests and responses between the ServiceNow instance and MID Server.
- MID Server: Executes probes against target devices and relays information between devices and the ServiceNow instance via the ECC queue.
Practical Benefits for ServiceNow Customers
- Automates the discovery and classification of network devices, improving CMDB accuracy and reducing manual effort.
- Enables targeted discovery using IP addresses or ranges with flexible scheduling or on-demand options.
- Ensures detailed device data collection through multi-phase probing, supporting better asset management and operational decision-making.
- Supports custom classifiers and probes to adapt discovery to specific environments and device types.
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.
Kicking off Discovery
A user triggers horizontal discovery by configuring a discovery schedule or by launching an on-demand discovery with Discover now or Quick Discovery. The schedule specifies one or more IP addresses or range of IP addresses.
Scanning phase
- Discovery first takes the Shazzam probe (and then port probes) and places it in a request in the External Communication Channel (ECC) queue.
- The MID Server checks the ECC queue, retrieves the discovery request, and runs the probes against the host and discovers open ports.
- The port probes scan common ports using several protocols, such as WMI, HTTP, SSH, and SNMP.
- If one or more ports respond, the Shazzam probe sends information about the port back to the ECC queue through the MID Server.
- Discovery checks the ECC queue to find out which ports responded, which identifies the type of machine. For example, if Shazzam detects that the machine is listening on port 22, Discovery treats the machine as a UNIX or Linux machine.
Classification phase
- The Discovery application determines which classification probe to send to the newly discovered device by using information in the record of the port probe that successfully responded.
- Discovery puts the classification probe into the ECC queue.
- The MID Server checks the ECC queue, retrieves the discovery request, and runs the classification probe.
- The classification probe retrieves additional information, such as which version of the operating system is running on a machine. This information determines the class of the CI that Discovery found. There is only one classification probe per discovered device.
- The classification probe sends information back to the instance ECC queue through the MID Server.
The Identification phase
- Discovery determines which classifier to use based on the class of the CI and the criteria specified in all CI classifier records. The classifier specifies which probes to use for the next two phases.
- Discovery puts the identification trigger probe for the CI classifier into the ECC queue. For example, a UNIX machine running HP-UX would require the HP-UX classifier, which specifies that the Multi Probe-HP-UX Identity identification trigger probe. These probes use identification rules to determine whether or not to insert or update a CI in the CMDB.Note:The trigger probe could also be the Horizontal Pattern probe, which tells Discovery to follow the operations in the specified pattern, rather than sending out additional probes. The operations in the pattern cover both the identification and exploration phases. Discovery knows which identification rules to use based on the CI type, and Discovery makes inserts or updates to the CMDB based on these rules. Probes and sensors are not used.
- The MID Server checks the ECC queue, retrieves the discovery request, and runs the identification trigger probe.
- The identification probe accumulates identification data for each device and sends that data back to the instance via the MID Server.
- Discovery uses sensors for the identifier probe to process the information.
- Discovery performs the analysis on the CMDB using CI identifiers. Discovery can update existing CIs in the CMDB or create new ones.
The Exploration phase
- Discovery looks at the Triggers Probes related list in the classifier to find exploration probes to run.
- Discovery puts the exploration trigger probe into the ECC queue.
- The MID Server checks the ECC queue, retrieves the discovery request, and runs the exploration trigger probes.
- The probes send data back to the instance via the MID Server and sensors make updates to the CMDB, just as in the identification phase.