Credential-less host Discovery
Summarize
Summary of Credential-less host Discovery
Credential-less host discovery is a process used when a scanned host is alive but not active, or when all credential-based classification probes fail during a ServiceNow Discovery scan. It enables identification and classification of hosts without requiring credentials, ensuring continued visibility into network devices even when credential access is unavailable.
Show less
How Credential-less Discovery Works
- If the Shazzam probe detects a host that is alive but inactive and credential-based probes fail, the Horizontal Discovery process triggers the Credentialless Discovery Network Device pattern.
- If the host does not already have a Configuration Item (CI), Service Mapping launches a probe that attempts to create or update the host CI in the Hardware [cmdbcihardware] table.
- The feature requires the system property mid.discovery.credentialless.enable to be set to true for the pattern to run.
Nmap Scanning and Host Identification
- The MID Server runs an Nmap command to determine if the host is up by scanning specified ports and performing reverse DNS lookups to find host names.
- If multiple hostnames are returned, the first is used; if none are found, the IP address is used as the host CI name.
- Npcap library, included with Nmap, identifies the host’s operating system family.
- If the scanned host is on the same subnet as the Windows MID Server, its MAC address is also retrieved.
- The ports scanned by Nmap are configurable in the IP Service [cmdbipservice] table, allowing customers to enable or disable specific ports for credential-less scans.
Creating or Updating Host CIs
- After successful discovery, the SetCredentialLessDeviceClassName MID Server script classifies the host CI based on the OS family reported by Nmap.
- If the OS family matches one of six supported server operating systems (AIX, HP-UX, Linux, Solaris, OS X/iOS, Windows), the CI is classified under the corresponding server class derived from Hardware [cmdbcihardware].
- If no match is found, the base Hardware class is used.
- When credential issues are resolved, credential-based discovery runs again and updates the existing host CI with accurate serial number, hostname, and system class details.
Supported Operating System Families and Corresponding Tables
- AIX: cmdbciaixserver
- HP-UX: cmdbcihpuxserver
- Linux: cmdbcilinuxserver
- Solaris: cmdbcisolarisserver
- OS X or iOS: cmdbciosxserver
- Windows: cmdbciwinserver
- Undefined: cmdbcihardware (base class)
Hardware Identification
The Discovery - IP Based [com.snc.discovery.ipbased] plugin adds an identifier for the Hardware [cmdbcihardware] base table that matches host CI names from Nmap scans. This Hardware Rule supports both credential-based and credential-less discovery, ensuring consistent device identification.
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 |