---
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


---

# Discovery commands for probes and patterns

# Discovery commands for probes and patterns {#ariaid-title1}

* Release version: Yokohama
* 
* Updated February 20, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Discovery commands are used for both probe and pattern-based discovery to access configuration items (CIs) in your environment.
For information about Service Mapping commands, see [Prerequisites for performing top-down discovery using Service Mapping](https://servicenow-prod.fluidtopics.net/20BFFRIMDaojk1En5RNucg "Learn about credentials, users, and user permissions you must configure to let Service Mapping access and discover applications inside your organization private network.").

For information about MID Server privileged commands, see [MID Server privileged commands](https://www.servicenow.com/docs/access?context=c_PrivilegedCommandsForMIDServer&version=yokohama&pubname=yokohama-servicenow-platform&ft:locale=en-US).

## Probe-based discovery {#discovery-command-probe-pattern__section_in4_ydz_k2c}

Discovery runs several different types of commands during probe-based horizontal discovery. Some of these commands require elevated privileges to run.  
{#discovery-command-probe-pattern__table_uc1_rfz_k2c__entry__2}

| Command/Permission | Resource |
|-|-|
| SSH commands requiring a privileged user | [Privileged SSH commands for probe-based discovery](https://servicenow-prod.fluidtopics.net/9zRLtV44HUO12jMk5mJ1Rw "These tables display the SSH commands run by Discovery probes during horizontal discovery. These SSH commands require elevated privileges to run.") |
| SSH commands not requiring a privileged user | [Non-privileged SSH commands during probe-based discovery](https://servicenow-prod.fluidtopics.net/2r4DfPWh_GyitJ0xhfbELg "These tables display the SSH commands run by Discovery probes on target devices during horizontal discovery. These SSH commands don’t require elevated privileges to run.") |
| Windows commands and permissions | [Windows probes and permissions](https://servicenow-prod.fluidtopics.net/9zo3FpzkqlLH1nadVqMhRg "Discovery accesses devices and software by executing commands as a specific user on Windows computers.") |
| Additional permissions | [Discovery probe permissions](https://servicenow-prod.fluidtopics.net/mUF_cPfSMJerUmInFKo6OQ "Several probes require additional permissions to run.") |
[Table 1. Resources for information about commands and permissions for probe-based discovery]

{#discovery-command-probe-pattern__table_uc1_rfz_k2c}

## Pattern-based discovery {#discovery-command-probe-pattern__section_pcq_lhz_k2c}

Discovery runs several different types of commands during pattern-based horizontal discovery. Some of these commands require elevated privileges to run. For pattern-based discovery, you can view all the commands
used by a specific infrastructure or application pattern on the ServiceNow AI Platform and validate them before running discovery. For cloud resource patterns, you can view all the required permissions in the Cloud Discovery patterns spreadsheet.  
{#discovery-command-probe-pattern__table_tpb_k3z_k2c__entry__2}

| Action | Resource |
|-|-|
| View commands used by infrastructure and application patterns | * [View Patterns commands through the Discovery Patterns module](https://servicenow-prod.fluidtopics.net/eouL4CSH9SmIxBXfakMpaw "View all the commands required for an infrastructure or application pattern to verify you have sufficient permissions to run discovery.")\* * [View Patterns commands through the Command List module](https://servicenow-prod.fluidtopics.net/vMTxDCLIq35mRu6N6krExA "View and filter infrastructure or application pattern commands by various criteria, including pattern, CI type, or command, to confirm you have all the required permissions.") * [Command List form for pattern-based discovery](https://servicenow-prod.fluidtopics.net/1vUxkjdlPq3bHDKtKlc65A "The Command List form contains all commands used in discovery by infrastructure or application type patterns.") {#discovery-command-probe-pattern__ul_umh_mbj_y2c} |
| Validate commands used by infrastructure and application patterns | * [Validate commands used in pattern-based discovery](https://servicenow-prod.fluidtopics.net/tJclIOdpx59diE4aaqewew "Validate pattern commands to verify that the MID Server can successfully run them. Typically, commands might fail if you haven't configured the credentials necessary to run these commands on your ServiceNow instance. Another common reason of command failure is that the IP addresses used for discovery aren’t reachable.")\* * [View command validation task results in pattern-based discovery](https://servicenow-prod.fluidtopics.net/fgbBgvntVKPZWm6sMA1jXA "View the results of command validation tasks to verify you have the correct credentials and permissions to run pattern-based discovery successfully.") * [Command Validation Tasks form for pattern-based discovery](https://servicenow-prod.fluidtopics.net/AlzndJ4QMsEfSNBbaSHGgA "Command Validation Tasks form displays the fields that you must fill when you create or modify a task for testing a pattern command.") {#discovery-command-probe-pattern__ul_cw5_4bj_y2c} |
| View permissions required by cloud resource patterns | [Cloud Discovery patterns spreadsheet](https://downloads.docs.servicenow.com/resource/enus/api/servicenow-discovery-patterns-api-details.xlsx) |
[Table 2. Resources for information about viewing and validating pattern-based discovery commands and permissions]

{#discovery-command-probe-pattern__table_tpb_k3z_k2c}\* These tasks are exclusive to the discovery_admin role and can't be performed by users with the pde_viewer role.
**Related topics**   

* [KB1123625: Command Validation Tool](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1123625)

