ServiceNow Discovery ports and protocols include WMI on TCP 135, SSH on TCP 22, SNMP on UDP 161, and HTTP or HTTPS on TCP 80 and 443. Shazzam scans configured IP ranges before classification. Firewall planning must also account for supplementary probes, certificate scans, custom services, and Windows dynamic ports.
How a discovery run moves from port scan to classification
The Shazzam probe scans scheduled addresses before classification, whether or not horizontal discovery uses patterns. Its sensor checks the matching port probe record to determine which classification probe to launch. Test network reachability from the assigned MID Server, so the test follows the intended network path.
Protocol launch order and the stop rule
The base system ranks four protocols, lowest number first.
- 1; WMI; 135 (epmap); Windows systems.
- 2; SSH; 22; Unix and Linux systems.
- 3; SNMP; 161 (UDP); Network devices.
- 4; HTTP; 80 and 443; Web servers.
WMI launches first. When it succeeds for a device, no other port probes launch for that device. When it fails, SSH runs, and if SSH also fails, SNMP follows. Because the first success decides the classification, a host running several protocols is still classified correctly.
HTTP ranks last, fourth in the launch order after WMI, SSH and SNMP.
Supplementary probes are the exception to the stop rule. They run extra classifications after a higher-priority identification succeeds, so a device that answers over WMI can still receive further classification work.
Default port probes and their classifications
The base system ships with fourteen default port probes. Each maps to a classification and an IP service, which pairs a port number with a protocol name.
- wmi; Windows Classification; epmap (135).
- ssh; UNIX Classification; ssh (22).
- snmp; SNMP Classification; snmp (161).
- http; HTTP Classification; http (80) and https (443).
- dns; Process Classification; dns (53).
- slp; Process Classification; slp (427).
- wins; Process Classification; ms-nb-ns (137).
- ip_phone; SNMP Classification; sip (5060).
- osx; Scan Results Application Classifier; afp (548).
- printer; Scan Results Application Classifier; hp-pdl-datastr (9100) and printer (515).
- vmapp; Application Classification; vmapp_https (5480) and vmapp6_https (9443).
- wbem; CIM Classification; wbem_https (5989).
- winrm; Windows Classification; winrm (5985) and winrm_ssl (5986).
- tls_ssl_certs; tls_ssl_certs; SSL: 443, 8443, 9443, 636, 993, 995, 989, 990. StartTLS: 25, 110, 143, 389, 21, 587.
The tls_ssl_certs probe uses a classification with the same name and covers the listed SSL and StartTLS ports. StartTLS ports begin as plain-text connections and upgrade to encryption partway through.
Enabling tls_ssl_certs makes each existing CI discovery schedule scan 14 pre-authorized ports. The Active check box is clear on new installations. With discovery_admin or admin, activate the probe and maintain its ports. To change the list, click the lock icon beside Triggered by services, edit the ports (up to 138 additional ports can be added), and save.
Port reference for common services
This selection covers the ports behind the default probes and the services a firewall plan tends to name. Check the full list before assuming a port is unused.
- 22; Secure Shell; TCP; SSH probe.
- 53; DNS; TCP/UDP; dns probe.
- 80; HTTP; TCP; HTTP probe.
- 135; Microsoft RPC (WMI, DCOM); TCP; WMI probe.
- 137; NetBIOS name service; UDP; wins probe.
- 161; SNMP; UDP; SNMP probe.
- 443; HTTPS; TCP; HTTP probe.
- 5985; Windows Remote Management; TCP; winrm probe.
- 5986; Windows Remote Management over SSL; TCP; winrm probe.
- 5989; CIM-XML over HTTPS; TCP; wbem probe.
- 9100; Printer data stream; TCP; printer probe.
A host that closes the WMI port may still answer on the WinRM ports, and both sets classify Windows hosts.
Database and file-sharing ports Discovery uses
Discovery’s port list covers several database ports, including 1433 for Microsoft SQL Server, 3306 for MySQL, 1521 for Oracle TNS and 5432 for PostgreSQL. Of the four listed here, 5432 is the one that names a CI class, cmdb_ci_database.
Ports 139 and 445, the NetBIOS and Microsoft file-sharing ports, are in the same list but belong to no default probe. Their absence from the default probe mappings does not establish that blocking them is safe for a complete discovery workflow.
Windows dynamic port range
Supported Windows machines can also open dynamic ports between 49152 and 65535, over TCP and UDP. Those ports are outside the lists above, so a firewall rule that narrows traffic to Windows targets has to allow for them.
Firewall planning before you close a port
Check the port lists above before you close any port with a firewall, because Discovery relies on those ports. For the access side of the setup, see Discovery security and access design.
In typical environments, test one segment first. Scan a small range, confirm the classifications you expect, and widen the rule once that check passes. The common failure is closing a port before checking which probe depends on it.
Shazzam scan settings
The admin role is required to configure Shazzam parameters. Navigate to All > Discovery Definition > Probes, select Shazzam, and edit the Probe Parameters related list. Check these defaults against the instance and release before changing scan timing.
- GenericTCP_waitForConnectMS, default 1000 milliseconds, sets how long the generic TCP scanner waits for a connection.
- HTTP_waitForConnectMS and HTTP_waitForResponseMS default to 500 milliseconds each.
- delay_wbem, true by default, holds WBEM classification until the final sensor job. On large schedules that delay can exhaust node memory, so setting it to false spreads the work across sensor jobs.
- SNMP_taps, default 2, sets how many requests the SNMP scanner sends.
- shazzam_report_dead, false by default, reports dead IP addresses, such as devices with all ports closed, when enabled.
Large IP lists make the payload heavy. The property glide.discovery.shazzam_ranges_json encodes it as a JSON string. New instances have it set to true, while upgraded instances have it set to false and need it added by hand.
Port probe form fields
Port probes are configured at Discovery Definition, then Port Probes. The key fields are these.
- Scanner names the Shazzam technique used to explore the port. The WMI port probe uses Generic TCP, and the SNMP port probe uses SNMP.
- Triggered by services pairs a non-standard port number with its protocol.
- Classification priority sets the order in which the probe runs.
- Supplementary and Conditional add extra classifications after a higher-priority success, or hold the probe back until a non-conditional probe finds an open port.
Adding a non-standard port
- Establish the target service’s actual listening port and the intended network path before requesting a firewall change.
- Check the IP Service records under Discovery Definition > IP Services for the port and protocol pairing.
- Open the relevant record under Discovery Definition > Port Probes. Check Active, Scanner, and Use classification before changing its Triggered by services field.
- Associate the required service with the probe. Test a limited address range and compare the resulting classification with the target’s expected device type.
Keep port access and host discovery credentials as separate validation items. A successful connection test should lead to a check of the classification result rather than an assumption that the whole run succeeded.
Conditional probes and their cost
Conditional probes resolve the names of Windows devices and DNS names, but they draw extra resources. The base system holds them back until open-port activity appears, so weigh that cost against how many hosts in a schedule will trigger them.
Validate a firewall change with a small discovery run
Build a change record around the source MID Server, destination range, transport, service port, and intended classification. Include the probe’s active state and whether it is supplementary or conditional. This separates a missing network rule from a probe configuration that deliberately skips the target.
Choose representative Windows, Unix, and network targets where those device types are in scope. Record the expected responding service before the test. After changing one rule, compare scan response and classification with that expectation. If the result differs, inspect the service mapping and priority before broadening the firewall allowance.
For help planning this work, see ServiceNow implementation.
Questions about interpreting scan results
Can one failing classifier prevent other classifiers from running?
A port probe can link to multiple classification probes through Trigger probes at the bottom of its form. Separate links allow classification work to continue independently when one classification fails. Review those associations when an open service produces incomplete results.
How can I inspect the scanner’s own response?
The scanner_log parameter enables scanner logging in the Shazzam probe response; its default is false. Use a limited test to collect that detail, then compare the responding service with its configured Scanner value.
Why can a device be alive with no open ports?
A refusal can indicate a reachable device even without an open service. The shazzam_report_inactive parameter defaults to true and reports alive but inactive devices, including a device that refuses at least one connection request.
Which controls affect scan concurrency and packet pacing?
The MID Server property shazzam.chunk_size controls the maximum parallel IP addresses. mid.shazzam.regulator.interval_ms sets the packet launch interval, and mid.shazzam.regulator.packets_per_interval sets the packet allowance within it. These properties fall back to defaults without being added explicitly.