Credential-less host Discovery
Summarize
Summary of Credential-less Host Discovery
Credential-less host discovery in ServiceNow is triggered when a scanned host is detected as alive but inactive, or when all credential-based classification probes fail. This discovery method helps identify and create or update Configuration Items (CIs) for hosts without requiring credentials, enabling visibility into devices that might otherwise be missed during traditional credential-based scans.
Show less
How Credential-less Host Discovery Works
- If the Shazzam probe finds a host alive but inactive and credential probes fail, the Horizontal Discovery process initiates the Credentialless Discovery Network Device pattern to gather host information.
- If no CI exists for the host, Service Mapping launches the HorizontalDiscoveryProbe, which triggers the Credentialless Discovery pattern to create or update the host CI in the Hardware [cmdbcihardware] table.
- Ensure the system property mid.discovery.credentialless.enable is set to true to enable this pattern; set it to false to disable.
Nmap Probe and Host Identification
- The MID Server runs an Nmap command to verify host availability using the IP address and a configurable list of ports.
- Nmap performs reverse DNS resolution to find the host name; if multiple names exist, the first is used; otherwise, the IP address is used as the host CI name.
- The Npcap packet capture library identifies the host's operating system family.
- If the scanned host is on the same subnet as a Windows MID Server, the host’s MAC address is also obtained.
- Port scanning is controlled via the IP Service [cmdbipservice] table, where ports can be enabled or blocked for credential-less discovery by modifying the Credentialless Discovery [cldiscovery] column.
Host CI Creation and Classification
- After discovery, the SetCredentialLessDeviceClassName MID Server script determines the OS family of the host.
- The host CI is classified based on OS family, using specific server classes derived from the Hardware [cmdbcihardware] base class (e.g., Linux Server [cmdbcilinuxserver]). If OS family is undefined, the base hardware class is used.
- Supported OS families include AIX, HP-UX, Linux, Solaris, OS X/iOS, Windows, and Undefined, each mapping to the appropriate CI table.
- When credential issues are resolved and credential-based discovery runs again, the existing host CI created by credential-less discovery is updated using serial number, host name, and system class information from credential-based probes.
Hardware Identification
The Discovery - IP Based [com.snc.discovery.ipbased] plugin adds a hardware identifier rule matching host CI names found by Nmap scans. This hardware rule supports both credential-based and credential-less discovery methods to ensure consistent identification of discovered hosts.
Credential-less host discovery occurs when a scanned host is found to be alive, but not active, or when all configured credential-based classification probes have failed.
How the host Discovery pattern is launched
| The system creates these entries in the ECC queue during execution of the
HorizontalDiscoveryProbe. |
| These log messages are published during execution of the
HorizontalDiscoveryProbe. |
The Nmap command
Creating or updating host CIs
| OS family | CI table |
|---|---|
| AIX | cmdb_ci_aix_server |
| HP-UX | cmdb_ci_hpux_server |
| Linux | cmdb_ci_linux_server |
| Solaris | cmdb_ci_solaris_server |
| OS X or iOS | cmdb_ci_osx_server |
| Windows | cmdb_ci_win_server |
| Undefined | cmdb_ci_hardware |