<h2>Run a Quick Discovery</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Schedule a horizontal Discovery" /><meta name="abstract" content="A Discovery schedule determines what horizontal Discovery searches for, when it runs, and which MID Servers are used. Create a Discovery schedule for your local environment or a schedule for discovering the resources in your cloud service account." /><meta name="description" content="A Discovery schedule determines what horizontal Discovery searches for, when it runs, and which MID Servers are used. Create a Discovery schedule for your local environment or a schedule for discovering the resources in your cloud service account." /><meta name="DC.subject" content="Discovery, creating a schedule, DiscoverNow, quick discovery, configuration, MID Server, selection sequence for Discovery" /><meta name="keywords" content="Discovery, creating a schedule, DiscoverNow, quick discovery, configuration, MID Server, selection sequence for Discovery" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2023-08-03" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="t_CreateADiscoverySchedule" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Schedule a horizontal Discovery</title></head><body> <div class="nested0" id="t_CreateADiscoverySchedule"> <h1 class="title topictitle1" id="ariaid-title1">Schedule a horizontal Discovery</h1> <div class="body taskbody"><p class="shortdesc"><span class="ph">A <span class="ph">Discovery</span> schedule determines what horizontal <span class="ph">Discovery</span> searches for, when it runs, and which <span class="ph">MID Servers</span> are used. Create a <span class="ph">Discovery</span> schedule for your local environment or a schedule for discovering the resources in your cloud service account.</span></p> <div class="section prereq p" id="t_CreateADiscoverySchedule__prereq_sjl_zfs_rbc"> <p class="p">Ensure that your <span class="ph">Discovery</span> schedule conforms to security best practices, such as limiting the range of discovery targets and using the most secure credentials.</p> <p class="p">Make sure to <a class="xref" href="../product/credentials/task/t_CreateCredential.dita/t_CreateCredential.html" target="_blank" rel="noopener noreferrer">test your credentials</a> before you run a schedule. Bad credentials are a leading cause of failed discoveries.</p> <p class="p">Roles required: admin, discovery_admin</p> </div> <div class="section context" id="t_CreateADiscoverySchedule__context_xrt_vsr_ybb"> <span class="ph" id="t_CreateADiscoverySchedule__ph_CreateDiscoSchedule">You can use a <span class="ph">Discovery</span> schedule to launch horizontal <span class="ph">Discovery</span>, which uses probes, sensors, and pattern operations to scan your network for CIs. Use this procedure to create a schedule manually from the <span class="ph">Discovery</span> schedule form.</span> <p class="p"><span class="ph">Service Mapping</span> also provides a <span class="ph">Discovery</span> schedule for top-down <span class="ph">Discovery</span>. See <a class="xref" href="../../service-mapping/task/t_CreateDiscoSchedForCITypes.html" title="After Service Mapping discovers configuration items (CIs) belonging to your application service for the first time, it then rediscovers CIs to find changes and updates. Create or modify discovery schedules to control how often Service Mapping rediscovers services or CIs. For example, you may create custom discovery schedules to avoid redundant stress on the infrastructure.">Schedule a top-down discovery by Service Mapping</a> for more information.</p> <div class="p">Use the <span class="ph">Discovery</span> schedule module in the <span class="ph">Discovery</span> application to:<ul class="ul" id="t_CreateADiscoverySchedule__ul_ytx_x4b_5p"><li class="li">Configure a schedule to discover resources in your cloud service account.</li><li class="li">Configure a schedule to discover certificates from URL scans.</li><li class="li">Configure device identification by IP address or other identifiers.</li><li class="li">Determine if credentials are used in device probes.</li><li class="li">Name the <span class="ph">MID Server</span> to use for a particular type of <span class="ph">Discovery</span>.</li><li class="li">Create or disable a schedule that controls when the <span class="ph">Discovery</span> runs in your network.</li><li class="li">Configure the use of multiple Shazzam probes for load balancing.</li><li class="li">Configure the use of multiple <span class="ph">MID Servers</span> for load balancing.</li><li class="li">Run a <span class="ph">Discovery</span> schedule manually.</li><li class="li">Run <span class="ph">Discovery</span> on a single IP address.</li></ul> </div> <div class="p"> <div class="note"><span class="notetitle">Note:</span> To view the run-results of your schedules for both IP-based and <span class="ph">Cloud Discovery</span>, use the summaries on the <a class="xref" href="../concept/discovery-home-page.html" title="The Discovery Home page provides a summary of discoveries that were triggered by cloud and non-cloud schedules. You can view any errors that occurred during a Discovery and find remediation suggestions. Use the Home page view to examine the cloud resources discovered for the service accounts you selected in a cloud schedule.">Discovery Home page</a>. The Home page publishes the details of any errors that might have occurred and displays possible actions to take to remediate problems.</div> </div> </div> <ol class="ol steps" id="t_CreateADiscoverySchedule__steps_tjl_zfs_rbc"><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">Discovery</span> > <span class="ph uicontrol">Discovery schedules</span></span> to create a new record.</span> </li><li class="li step stepexpand"> <span class="ph cmd"><span class="ph">Select the type of schedule to open:</span></span> <div class="itemgroup info"> <ul class="ul" id="t_CreateADiscoverySchedule__ul_j3h_tq1_zhb"><li class="li"><span class="ph uicontrol">New</span>: Creates a new horizontal schedule for discovering components in your network.</li><li class="li"><span class="ph uicontrol">Quick Discovery</span>: Runs a horizontal <span class="ph">Discovery</span> on a single IP address without requiring a schedule.</li><li class="li"><span class="ph uicontrol">Create a Cloud Discovery schedule</span>: Creates a schedule, using the Discovery Manager wizard, for discovering resources in a cloud service account.</li></ul> </div> </li><li class="li step stepexpand"> <span class="ph cmd"><span class="ph" id="t_CreateADiscoverySchedule__ph_Step3Content">Complete the <span class="ph">Discovery</span> schedule form</span>, using the fields in the table.</span> </li><li class="li step stepexpand"> <span class="ph cmd" id="t_CreateADiscoverySchedule__cmd_Step4">Right-click in the header of the record and select <span class="ph uicontrol">Save</span> from the context menu.</span> </li><li class="li step stepexpand"> <span class="ph cmd" id="t_CreateADiscoverySchedule__cmd_Step5Ranges">To create a range of IP addresses to discover, click <span class="ph uicontrol">Quick Ranges</span> under <span class="ph uicontrol">Related Links</span>.</span> <div class="itemgroup info"> <div class="note"><span class="notetitle">Note:</span> To improve security, limit the range of discovery targets to exclude unnecessary networks and devices.</div> <div class="p"> <div class="fig fignone" id="t_CreateADiscoverySchedule__fig_y2r_rrb_5p"><span class="figcap"><span class="fig--title-label">Figure 1. </span>Discovery schedule</span> <img class="image" id="t_CreateADiscoverySchedule__image_yf3_vrb_5p" src="../../../reuse/itom/../../product/discovery/image/DiscoverySchedule.png" alt="Discovery schedule" /> </div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="t_CreateADiscoverySchedule__table_xnx_zrb_5p" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Discovery schedule Form</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d274607e334">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d274607e337">Description</th></tr></thead><tbody class="tbody"><tr id="t_CreateADiscoverySchedule__row_name578654" class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Enter a unique, descriptive name for your schedule.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Discover</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Select one of the following scan types:<ul class="ul" id="t_CreateADiscoverySchedule__ul_sr3_2sb_5p"><li class="li"><span class="ph uicontrol">Configuration items</span>: Uses <span class="ph">Discovery</span> identifiers to match devices with CIs in the <span class="ph">CMDB</span> and update the <span class="ph">CMDB</span> appropriately. Perform a simple discovery by selecting a specific <span class="ph">MID Server</span> to scan for all protocols (SSH, WMI, and SNMP). Or, perform advanced discoveries with discovery behaviors. When you select a behavior, the <span class="keyword option">MID Server</span> field is not available.<div class="note"><span class="notetitle">Note:</span> An IPv6 via address list scan is allowed on <span class="ph">Discovery</span> schedule for Configuration Items.</div> </li><li class="li"><span class="ph uicontrol">IP addresses</span>: Scans devices without the use of credentials. These scans discover all the active IP addresses in the specified range and create device history records, but do not update the <span class="ph">CMDB</span>. IP address scans also show multiple IP addresses that are running on a single device. Identify devices by class and by type, such as <span class="ph">Windows</span> computers and Cisco network gear. The <span class="keyword option">Max range size</span> Shazzam probe property determines the maximum number of IP addresses Shazzam scans. See <a class="xref" href="t_ConfigureTheShazzamProbe.html" title="When you run Discovery, the Shazzam probe finds your active network devices by scanning specified ports on specified IP address ranges. If the list of IP ranges being scanned is large, you can configure the Shazzam payload for JSON encoding to reduce its size.">Configure Shazzam probe</a> for details.</li><li class="li"><span class="ph uicontrol">Networks</span>: Discovers IP networks (routers and switches). Results from this search are used to populate the IP Network [cmdb_ci_ip_network] table in <span class="ph menucascade"><span class="ph uicontrol">Discovery</span> > <span class="ph uicontrol">IP Networks</span></span> with a list of IP addresses and network masks. Network scans update routers and layer 3 switches in the <span class="ph">CMDB</span>.</li><li class="li"><span class="ph uicontrol">Service</span>: Discovers services for the <span class="ph">Service Mapping</span> application. See <a class="xref" href="../../service-mapping/task/t_CreateDiscoSchedForCITypes.html" title="After Service Mapping discovers configuration items (CIs) belonging to your application service for the first time, it then rediscovers CIs to find changes and updates. Create or modify discovery schedules to control how often Service Mapping rediscovers services or CIs. For example, you may create custom discovery schedules to avoid redundant stress on the infrastructure.">Schedule a top-down discovery by Service Mapping</a> for instructions.</li><li class="li"><span class="ph uicontrol">Serverless</span>: Finds CIs without needing to run discovery on a host, or CIs on a proxy host that is already in the <span class="ph">CMDB</span>. See <a class="xref" href="../concept/serverless-discovery.html" title="Discovery can find applications on host machines without the need to discover the host first. This type of Discovery is referred to as serverless Discovery.">Serverless Discovery</a> for more information.</li><li class="li"><span class="ph uicontrol">Cloud application</span>: Discovers only the cloud resources for the patterns that you specify. See <a class="xref" href="../concept/cloud-discovery-wizard.html" title="Cloud Discovery enables IT departments of companies to collect detailed information about their cloud-based infrastructure. Cloud Discovery finds resources in major cloud service providers.">Exploring Cloud Discovery</a> for instructions.</li><li class="li"><span class="ph uicontrol">Cloud resources</span>: Discovers resources for one of the supported <a class="xref" href="../concept/cloud-discovery-wizard.html" title="Cloud Discovery enables IT departments of companies to collect detailed information about their cloud-based infrastructure. Cloud Discovery finds resources in major cloud service providers.">cloud providers</a>. This option only appears when you <a class="xref" href="../concept/discovery-manager.html" title="Create schedules for discovering cloud resources based on the cloud discovery method you choose; that is, service accounts or IP ranges.">run Discovery</a> on a cloud service account. You cannot select it from a new <span class="ph">Discovery</span> schedule.</li><li class="li"><span class="ph uicontrol">Certificates</span>. Discovers certificates based on URLs. Selecting this option adds the Certificate Discovery Type field: URL Certificate Discovery. See <a class="xref" href="../concept/run-cert-discovery.html#run-cert-inventory-mgmt-urls" title="To discover certificates from URL scans, you need to manually add individual URLs and then set up a new certificate Discovery schedule.">Run Certificate Discovery via individual URL scans</a> for more information.</li></ul> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 "><span class="ph">MID Server</span> selection method</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Select the method that <span class="ph">Discovery</span> uses to select a <span class="ph">MID Server</span>:<ul class="ul" id="t_CreateADiscoverySchedule__ul_ggw_xcs_rw"><li class="li"><span class="ph uicontrol">Auto-Select MID Server</span>: Allow <span class="ph">Discovery</span> to select the <span class="ph">MID Server</span> automatically based on the <span class="ph">Discovery</span> IP Ranges you configure. To find a matching <span class="ph">MID Server</span>, you must configure <span class="ph">MID Servers</span> to use:<ul class="ul" id="t_CreateADiscoverySchedule__ul_s2b_zhw_tw"><li class="li">The <span class="ph">Discovery</span> application, or ALL applications. This setting authorizes the <span class="ph">MID Server</span> access from <span class="ph">Discovery</span>.</li><li class="li">The IP Range that includes the ranges you configure on the <span class="ph">Discovery</span> schedule.</li></ul> <div class="note"><span class="notetitle">Note:</span> <span class="ph">MID Server</span> auto-select is not supported with IPv6.</div> </li><li class="li"><span class="ph uicontrol">Specific MID Cluster</span>: Use a preconfigured cluster of <span class="ph">MID Servers</span>. Select the cluster. You are not required to specify one member of the cluster. The <span class="ph">MID Server</span> cannot be part of multiple clusters, such as one that supports load balancing and one that supports failover. You can add any cluster regardless of the application that the <span class="ph">MID Servers</span> are assigned to. When you select the cluster, the <span class="ph uicontrol">Discovery</span> application is automatically added when it does not exist for the <span class="ph">MID Servers</span> in the cluster.</li><li class="li"><span class="ph uicontrol">Specific MID Server</span>: Use only one <span class="ph">MID Server</span>. If that <span class="ph">MID Server</span> is part of a cluster, only that <span class="ph">MID Server</span> is used. The cluster is not used. You can add any <span class="ph">MID Server</span> regardless of the application it is assigned to. The <span class="ph uicontrol">Discovery</span> application is automatically added when it is not already assigned for the <span class="ph">MID Server</span> you select. You can assign a specific <span class="ph">MID Server</span> for all types of Discover scans except <span class="ph uicontrol">Service</span>.</li><li class="li"><span class="ph uicontrol">Use Behavior</span>: <a class="xref" href="create-disco-behavior.html" title="Create a Discovery behavior to determine which probes Shazzam launches and which MID Server is used.">Use a behavior</a> when a single schedule requires the use of multiple <span class="ph">MID Servers</span> to perform any of the following activities:<ul class="ul" id="t_CreateADiscoverySchedule__ul_sg2_3tb_5p"><li class="li">Scans requiring multiple Windows credentials.</li><li class="li">A schedule that must execute two or more particular protocols (SNMP, SSH, or WMI) using more than one <span class="ph">MID Server</span>.</li><li class="li">Load balancing for large discoveries where a single <span class="ph">MID Server</span> would be inadequate.</li><li class="li">Scanning multiple domains.</li></ul> </li></ul> <div class="p"> <div class="note"><span class="notetitle">Note:</span> The <span class="ph">Discovery</span> schedule enforces domain separation. The <span class="ph">MID Servers</span> that are available for selection are limited to the same domain of the user who is configuring the schedule.</div> </div> <p class="p">See <a class="xref" href="t_CreateADiscoverySchedule.html#c-MIDServerSelectionSequence" title="The Discovery application follows this sequence to find a MID Server.">MID Server selection sequence for Discovery schedules</a> for additional information.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 "><span class="ph">MID Server</span></td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Select the <span class="ph">MID Server</span> to use for this schedule. This field is available if <span class="keyword option">MID Server selection method</span> is set to <span class="keyword option">Specific MID Server</span>, or if you discover IP addresses, networks, or web services.<p class="p">To verify that the <span class="ph">MID Server</span> you selected is up and validated, look at the <a class="xref" href="../product/mid-server/concept/c_MIDServerDashboard.dita/c_MIDServerDashboard.html" target="_blank" rel="noopener noreferrer">MID Server dashboard</a>.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 "><span class="ph">MID Server</span> Cluster</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Select the <span class="ph">MID Server</span> cluster to use for this schedule. This field is available if <span class="keyword option">MID Server selection method</span> is set to <span class="keyword option">Specific MID Cluster</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Behavior</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Select a behavior configured for the <span class="ph">MID Servers</span> in your network. <p class="p">This field is available only if <span class="keyword option">MID Server selection method</span> is set to <span class="keyword option">Use Behavior</span>.</p> </td></tr><tr id="t_CreateADiscoverySchedule__row_Active739273" class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Active</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Select the check box to enable this schedule. If you clear the check box, the schedule is disabled, but you can still run a discovery manually from this form, using the configured values.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Location</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Choose a location to assign to the CIs that the schedule discovers. If this field is blank, then no location is assigned.</td></tr><tr id="t_CreateADiscoverySchedule__row_MaxRunTime787656" class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Max run time</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Set a time limit for running this schedule. When the configured time elapses, the remaining tasks for the discovery are canceled, even if the scan is not complete. Use this field to limit system load to a desirable time window. If no value is entered in this field, this schedule runs until complete.</td></tr><tr id="t_CreateADiscoverySchedule__row_Run893873" class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Run and related fields</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Determines the run schedule of the discovery. Configure the frequency in the <span class="ph uicontrol">Run</span> field and the other fields that appear to specify an exact time. <div class="note"><span class="notetitle">Note:</span> The run time always uses the system time zone. If you add the optional <span class="ph uicontrol">Run as tz</span> field, it has no effect on the actual runtime.</div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Log state changes</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Select this check box to create a log entry every time the state changes during a discovery, such as a device going from <span class="keyword option">Active</span> to <span class="keyword option">Classifying</span>. View the discovery states from the <span class="ph">Discovery</span> Devices related list on the <span class="ph">Discovery</span> Status form. The <span class="keyword option">Completed activity</span> and <span class="keyword option">Current activity</span> fields display the states.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Shazzam batch size</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Enter the number of IP addresses that each Shazzam probe can scan. Dividing the IP addresses into batches improves performance by allowing classification for each batch to begin after the batch completes. rather than after all IP addresses have been scanned. The probes run sequentially. For example, the value is set to 1000 and a discovery scans 10,000 IP addresses using a single <span class="ph">MID Server</span>. It creates 10 Shazzam probes with each probe scanning 1000 IP addresses. By default, the batch size is 1000. A UI policy enforces a minimum batch size of 256 because batch sizes below 256 IP addresses do not benefit from clustering. The policy converts any value below 256 to a value of zero.<p class="p">The value for this field cannot exceed the value defined in the maximum range size property for the Shazzam probe.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Shazzam cluster support</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Select the check box to distribute Shazzam processing among multiple <span class="ph">MID Servers</span> in a cluster and improve performance. This setting works with the Shazzam batch size. For example, a schedule is created to scan 100,000 IP addresses, with 10 <span class="ph">MID Servers</span> assigned to do the work. Each <span class="ph">MID Server</span> is assigned to scan 10,000 IP addresses. If the Shazzam batch size is set to 5,000 IP addresses per probe, the schedule runs two Shazzam probes per <span class="ph">MID Server</span> (10,000 IP addresses/5,000 per batch). These probes are run in sequence and not concurrently.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Use SNMP Version</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Use this field to designate the SNMP version to use for this discovery. The default value is <span class="ph uicontrol">ALL</span>. You can change this to <span class="ph uicontrol">v1</span>, <span class="ph uicontrol">v2c</span>, or <span class="ph uicontrol">v3</span>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">URL Certificate Batch Size</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Define the number of URLs to discover per batch during <span class="ph">Discovery</span>. Leave the batch size as it is unless recommended to change.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Quick ranges</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Define IP addresses and address ranges to scan by entering IP addresses in multiple formats (network, range, or list) in a single, comma-delimited string. For more information, see <a class="xref" href="../reference/discovery-ip-address-configuration.html#t_CreateAQuickRange" title="Quick ranges allow administrators to define IP addresses to scan in a single comma-delimited string without creating separate records.">Create a Quick IP range for a Discovery schedule</a>.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Discover now</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">Use this link to immediately start this <span class="ph">Discovery</span>.</td></tr><tr class="row"><td class="entry cellrowborder" colspan="2" style="vertical-align:top;" headers="d274607e334 d274607e337 "><span class="ph uicontrol">Related lists</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">IP Ranges</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">This related list defines the ranges of IP addresses to scan with this schedule. If you are using a simple CI scan (no behaviors), use this related list to define the IP addresses to discover. <div class="note"><span class="notetitle">Note:</span> To improve security, limit the range of discovery targets to exclude unnecessary networks and devices.</div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Discovery Range Sets</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">This related list defines each range set in a schedule to scan by one or more Shazzam probes.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Discovery Status</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">This related list displays the results of current and past schedule runs.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e334 ">Certificate URLs</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e337 ">This related list displays the URLs that are discovered using this schedule. You can add or delete URLs from this list.</td></tr></tbody></table> </div> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Define the frequency of schedule running as described in <a class="xref" href="../../it-operations-management/reference/discovery-schedule-run-options.html" title="Both horizontal and top-down discovery use these run options.">Run options for discovery schedules</a>.</span> </li></ol> </div> <div class="topic task nested1" id="t_DiscoverNow"> <h2 class="title topictitle2" id="ariaid-title2">Run a Quick Discovery</h2> <div class="body taskbody"><p class="shortdesc">Quick Discovery, or DiscoverNow, allows an administrator to run a CI Configuration discovery on a single IP address without requiring a schedule.</p> <div class="section prereq p" id="t_DiscoverNow__prereq_l1c_kgp_mtb"> <p class="p">Role required: discovery_admin</p> </div> <div class="section context"> <p class="p">The platform automatically selects the correct MID Server to use for the discovery if one is associated with the IP address selected. If no MID Server is configured for the network in which that address appears, you can select a MID Server. Use this feature to discover new devices in the network as soon as they are connected to the network, rather than waiting for a regularly scheduled discovery.</p> <p class="p">To configure the system to automatically determine which MID Server to use, set up the IP range capabilities for each MID Server in your system.</p> <p class="p">You can run DiscoverNow from a <span class="ph">Discovery</span> schedule form or from a script.</p> <div class="note"><span class="notetitle">Note:</span> Quick Discovery using a IPv6 target address is supported.</div> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Open Quick Discovery from one of these locations:</span> <div class="itemgroup info"> <ul class="ul" id="t_DiscoverNow__ul_kyj_2ls_c3b"><li class="li">Navigate to <span class="ph menucascade"><span class="ph uicontrol">Discovery</span> > <span class="ph uicontrol">Discovery Schedules</span></span> and click <span class="ph uicontrol">Quick Discovery</span> in the header bar.</li><li class="li">Navigate to <span class="ph menucascade"><span class="ph uicontrol">Discovery</span> > <span class="ph uicontrol">Home</span></span> and click <span class="ph uicontrol">Discovery Quick Start</span> under the Schedules tile.</li></ul> A dialog box appears asking for an IP address and the name of the MID Server to use. Only <span class="ph uicontrol">Up</span> and <span class="ph uicontrol">Validated</span> MID Servers are available.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Enter the target IP address for a discovery in the <span class="ph uicontrol">Target IP</span> field.</span> <div class="itemgroup info"> <div class="p"><div class="note"><span class="notetitle">Note:</span> DiscoverNow does not currently support IP network discovery. Make sure that you enter a single IP address only and not an entire network, such as 10.105.37.0/24.</div> </div> <div class="p">When a MID Server is assigned to the subnet containing the target IP address and currently in an operational status of <span class="ph uicontrol">Up</span>, the name appears automatically in the <span class="ph uicontrol">MID Server</span> field. If multiple MID servers are found, the system selects one for you. The value in the <span class="ph uicontrol">MID Server</span> field can be overwritten if you want to select a different MID Server.<div class="note important"><span class="importanttitle">Important:</span> If the selected MID Server is part of a load balanced cluster and becomes unavailable for any reason, the instance does not assign another MID Server from that cluster to the quick Discovery. You must select another MID Server from the list of appropriate MID Servers.</div> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">If no MID Server is defined for that network, select one from the list of available MID Servers.</span> <div class="itemgroup info"> <div class="p"><div class="fig fignone" id="t_DiscoverNow__fig_g1v_b51_3p"><span class="figcap"><span class="fig--title-label">Figure 2. </span>Quick Discovery Dialog</span> <img class="image" id="t_DiscoverNow__image_dhc_d51_3p" src="../image/QuickDiscoveryDialog.png" alt="Quick discovery" /> </div> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">OK</span> to run discovery.</span> <div class="itemgroup info"> <div class="p">The status record for that discovery appears. The <span class="ph uicontrol">Schedule</span> column is empty because no schedule is associated with this discovery.<div class="fig fignone" id="t_DiscoverNow__fig_bck_g51_3p"><span class="figcap"><span class="fig--title-label">Figure 3. </span>Quick Discovery Status List</span> <img class="image" id="t_DiscoverNow__image_zlt_351_3p" src="../image/QuickDiscoveryStatusList.png" alt="Quick discovery status list" /> </div> </div> </div> </li></ol> </div> </div> <div class="topic task nested1" id="run-discovernow-from-script"> <h2 class="title topictitle2" id="ariaid-title3">Run DiscoverNow from a script</h2> <div class="body taskbody"><p class="shortdesc">You can run DiscoverNow from a script, such as a background job, a business rule, or web services.</p> <div class="section prereq p">Role required: admin</div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Create the following script:</span> <div class="itemgroup info"> <pre class="pre codeblock"><code>var d = new Discovery(); var statusID = d.discoveryFromIP(TARGET_IP, TARGET_MIDSERVER);</code></pre> <p class="p">The <span class="keyword parmname">discoveryFromIP</span> method takes two arguments: <var class="keyword varname">IP</var> and <var class="keyword varname">MID Server</var>. The <var class="keyword varname">IP</var> argument is mandatory, but the <var class="keyword varname">MID Server</var> argument is optional.</p> </div> </li><li class="li step stepexpand"> <span class="ph cmd">To choose the MID Server, supply either the <var class="keyword varname">sys_id</var> or name of the MID Server as the argument.</span> <div class="itemgroup info">If you do not name a MID Server, the system attempts to find a valid one automatically. A valid MID Server has a status of <span class="ph uicontrol">Up</span> and can discover the given IP address. If the system finds a valid MID Server and runs a <span class="ph">Discovery</span>, the <span class="keyword parmname">discoveryFromIP</span> method returns the <var class="keyword varname">sys_id</var> of the <span class="ph">Discovery</span> status record. If no MID Server can discover this IP address, the method returns the value <span class="ph uicontrol">undefined</span>.<p class="p">If you manually specify the TARGET_MIDSERVER, the system validates the given value and ensures that the MID Server table contains the specified MID Server record. If the validation passes, the discoveryFromIP method returns the sys_id of the discovery status record. If the validation fails, the method return the value <span class="ph uicontrol">undefined</span>.</p> </div> </li></ol> </div> </div> <div class="topic task nested1" id="t_ValidateDiscoveryResults"> <h2 class="title topictitle2" id="ariaid-title4">Validate discovery results</h2> <div class="body taskbody"><p class="shortdesc">Validate the results of your discovery by accessing the ECC queue, analyzing the XML payload, and checking the Discovery log.</p> <div class="section prereq p">Role required: discovery_admin</div> <div class="section context">Initial discoveries often reveal unexpected results, such as previously unknown devices and processes or failed authentication. Results should also accurately identify known devices and update the CMDB appropriately. Become familiar with the network that is being discovered and the types of data returned for the different types of discoveries. Use the <span class="ph">Discovery</span> Log and the ECC Queue to monitor the <span class="ph">Discovery</span> process as data is returned from probes or pattern operations.</div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">To view the actual payload of a probe, click the <span class="ph uicontrol">XML</span> icon in a record in the ECC Queue.</span> <div class="itemgroup info"> <div class="p"><div class="fig fignone" id="t_ValidateDiscoveryResults__fig_brz_zfx_wp"><span class="figcap"><span class="fig--title-label">Figure 4. </span>ECC Queue</span> <img class="image" id="t_ValidateDiscoveryResults__image_ej2_5gx_wp" src="../image/DiscoveryECCQueueView.png" alt="ECC Queue" /> </div> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">To view the actual payload of a probe, click the <span class="ph uicontrol">XML</span> icon in a record in the ECC Queue.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Use the <span class="ph">Discovery</span> Log form for a quick look at how the probes are doing.</span> <div class="itemgroup info"> <p class="p">To display the <span class="ph">Discovery</span> Log, navigate to <span class="ph menucascade"><span class="ph uicontrol">Discovery</span> > <span class="ph uicontrol">Discovery Log</span></span>.</p> <div class="p"><div class="fig fignone" id="t_ValidateDiscoveryResults__fig_vvc_1j4_qx"><span class="figcap"><span class="fig--title-label">Figure 5. </span><span class="ph">Discovery</span> Log</span> <img class="image" id="t_ValidateDiscoveryResults__image_wvc_1j4_qx" src="../image/DiscoveryLog.png" alt="The Discovery log" /> </div> </div> <div class="p">The <span class="ph">Discovery</span> Log provides this information: <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="t_ValidateDiscoveryResults__table_gq5_q3x_wp" class="table" frame="border" border="1" rules="all"><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d274607e1486">Column</th><th class="entry cellrowborder" style="vertical-align:top;" id="d274607e1489">Information</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1486 ">Created</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1489 ">Displays the timestamp for the probe launched. Click this link to view the record for the probe launched in this list.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1486 ">Level</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1489 ">Displays the type of data returned by this probe. The possible levels are:<ul class="ul" id="t_ValidateDiscoveryResults__ul_pq4_bjx_wp"><li class="li">Debug</li><li class="li">Error</li><li class="li">Information</li><li class="li">Warning</li></ul> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1486 ">Message</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1489 ">Message describing the action taken on the information returned by the probe.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1486 ">ECC queue input</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1489 ">Displays the ECC queue name associated with the log message.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1486 ">CI</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1489 ">The CI discovered. Click this link to display the record from the CMDB for this CI.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1486 ">Source</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1489 ">Displays the probe name that generated the log message.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1486 ">Device</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d274607e1489 ">Displays the IP address explored by the probe. Click this link to examine all the log entries for the action taken on this IP address by this <span class="ph">Discovery</span>.</td></tr></tbody></table> </div> <div class="note"><span class="notetitle">Note:</span> If you cancel an active discovery, note the following information:<ul class="ul" id="t_ValidateDiscoveryResults__ul_t3h_wzr_ybb"><li class="li">Existing sensor jobs that have started processing are immediately terminated.</li><li class="li">The existing sensor jobs that are in a <span class="ph uicontrol">Ready</span> state, but have not started processing, are deleted from the system.</li></ul> </div> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">View the <a class="xref" href="../concept/discovery-home-page.html" title="The Discovery Home page provides a summary of discoveries that were triggered by cloud and non-cloud schedules. You can view any errors that occurred during a Discovery and find remediation suggestions. Use the Home page view to examine the cloud resources discovered for the service accounts you selected in a cloud schedule.">Discovery Home page</a> for details about all schedules, cloud resources (virtual machines), discovered devices, and related errors that might have occurred.</span> <div class="itemgroup info"> <a class="xref" href="../concept/discovery-home-page.html#view-ci-discovery-schedule-errors" title="From the ServiceNow Home page, you can view the Discovery errors that occurred during a Discovery and get suggestions for resolving these errors. You can view the errors for all schedules or for a single schedule.">Error details</a> include possible remediation steps.</div> </li></ol> </div> </div> <div class="topic concept nested1" id="c-MIDServerSelectionSequence"> <h2 class="title topictitle2" id="ariaid-title5">MID Server selection sequence for Discovery schedules</h2> <div class="body conbody"><p class="shortdesc">The <span class="ph">Discovery</span> application follows this sequence to find a <span class="ph">MID Server</span>.</p> <div class="section"><h3 class="title sectiontitle">MID Server auto-selection</h3> <div class="p"><span class="ph">Discovery</span> follows this sequence when you select <span class="ph uicontrol">Auto-Select MID Server</span> for the <span class="ph uicontrol">MID Server selection method</span> on the <span class="ph">Discovery</span> Schedule form.<div class="note"><span class="notetitle">Note:</span> <span class="ph">MID Server</span> auto-select is not supported with IPv6.</div> <ol class="ol" id="c-MIDServerSelectionSequence__ol_sxc_bm3_tx"><li class="li"><span class="ph">Discovery</span> looks for a <span class="ph">MID Server</span> that also has an appropriate IP range configured.</li><li class="li">If no MID Servers meet these criteria, it looks for a <span class="ph">MID Server</span> that has the <span class="ph uicontrol">ALL</span> application that also has an appropriate IP range configured.</li><li class="li">If more than one <span class="ph">MID Server</span> meet the criteria, <span class="ph">Discovery</span> chooses the first <span class="ph">MID Server</span> with the status of <span class="ph uicontrol">Up</span>. If more than one <span class="ph">MID Server</span> is up, it randomly picks one.</li><li class="li">If none are up, it uses the default <span class="ph">MID Server</span> specified for the <span class="ph">Discovery</span> application, assuming it is up.</li><li class="li">If no default MID Server is specified, it uses the default <span class="ph">MID Server</span> specified for the <span class="ph uicontrol">ALL</span> application, assuming it is up.</li><li class="li">If no default <span class="ph">MID Server</span> is specified, <span class="ph">Discovery</span> cycles through the previous steps and looks for MID Servers with the status of <span class="ph uicontrol">Paused</span> or <span class="ph uicontrol">Upgrading</span>. <div class="note"><span class="notetitle">Note:</span> When a <span class="ph">MID Server</span> is paused or upgrading, it does not actually process commands until it returns to the status of <span class="ph uicontrol">Up</span>.</div> </li></ol> </div> </div> <div class="section"><h3 class="title sectiontitle">MID Server clusters</h3> <div class="p">These steps are followed when you select <span class="ph uicontrol">Specific MID Cluster</span> for the <span class="ph uicontrol">MID Server selection method</span> on the <span class="ph uicontrol">Discovery</span> form, and the cluster is a load balancing cluster:<ol class="ol" id="c-MIDServerSelectionSequence__ol_jhj_wk3_tx"><li class="li"><span class="ph uicontrol">Discovery</span> uses the first <span class="ph">MID Server</span> in the cluster that it finds with the status of <span class="ph uicontrol">Up</span>.</li><li class="li">If more than one <span class="ph">MID Server</span> is up, it randomly picks one. If it cannot find any <span class="ph">MID Servers</span>, it looks for <span class="ph">MID Servers</span> in the cluster with the status of <span class="ph uicontrol">Paused</span> or <span class="ph uicontrol">Upgrading</span>.</li></ol> </div> <div class="p">These steps are followed when the cluster is a failover cluster:<ol class="ol" id="c-MIDServerSelectionSequence__ol_g2m_1l3_tx"><li class="li"><span class="ph uicontrol">Discovery</span> uses the <span class="ph">MID Server</span> with the lowest <span class="ph uicontrol">Order</span> value that also has the status of <span class="ph uicontrol">Up</span>.</li><li class="li">If no <span class="ph">MID Servers</span> are found, it looks for <span class="ph">MID Servers</span> in the cluster with the status of <span class="ph uicontrol">Paused</span> or <span class="ph uicontrol">Upgrading</span>, choosing the one with the lowest <span class="ph uicontrol">Order</span> value.</li></ol> <div class="note"><span class="notetitle">Note:</span> <span class="ph uicontrol">Discovery</span> ignores the default <span class="ph">MID Server</span> for it and <span class="ph uicontrol">ALL</span> applications when selecting a <span class="ph">MID Server</span> from the cluster.</div> </div> </div> <div class="section"><h3 class="title sectiontitle">Port scan (Shazzam) phase</h3> <p class="p">During the port scan phase, <span class="ph">Discovery</span> collects all the target IP addresses. It splits them equally between <span class="ph">MID Servers</span> matching the criteria (<span class="ph">MID Servers</span> are qualified to do the port scan). The Shazzam batch size, which you configured on the <span class="ph">Discovery</span> schedule, determines the number of IP addresses that each Shazzam probe can scan. This phase helps determine how much work each <span class="ph">MID Server</span> does during the port scan phase.</p> <p class="p">For example, you have 16,000 IP addresses to scan among three qualified <span class="ph">MID Servers</span>, and you use the default Shazzam batch size of 5000. Two of the <span class="ph">MID Servers</span> handle 5000 IP address scans (one Shazzam probe each). The other <span class="ph">MID Server</span> handles 6000 IP address scans by launching two Shazzam probes.</p> <div class="note"><span class="notetitle">Note:</span> Shazzam can only process IP lists containing a total of 5000 IP addresses (both IPv4 and IPv6 addresses) if the list contains any IPv6 address. For schedules containing IP lists with IPv6 that go beyond this limit, <span class="ph">Discovery</span> gets cancelled with an error message.</div> </div> </div> <div class="related-links"> <div class="linklist relinfo"><strong>Related topics</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="product/mid-server/task/t_PauseTheMIDServer.html#c_MIDServerPause" target="_blank" rel="noopener noreferrer">MID Server pause</a></li><li class="linklist"><a class="link" href="product/mid-server/task/t_ConfigureAMIDServerCluster.html#mid-server-clusters" target="_blank" rel="noopener noreferrer">MID Server cluster configuration</a></li></ul></div> </div> </div> </div> </body></html></div>