Network discovery in ServiceNow is a built-in capability that automatically maps and inventory IT infrastructure devices—such as servers, routers, switches, and endpoints—by probing the network and populating the Configuration Management Database (CMDB) with accurate, up-to-date data. It supports both scheduled and on-demand discovery, integrates with credential management and topology mapping, and helps ensure CMDB integrity for IT service management, change management, and compliance workflows.

Background and Purpose

ServiceNow’s network discovery stems from the broader ITIL-aligned practice of configuration management, where the CMDB serves as the authoritative source of truth for IT assets and their relationships. Without discovery, organizations often rely on manual input, spreadsheets, or fragmented tools—leading to outdated inventories, misconfigured services, and increased risk during incidents or changes. Discovery automates the identification and classification of hardware, software, and network connections, reducing human error and enabling real-time visibility across hybrid environments (on-premises, cloud, and virtualized systems). ServiceNow introduced discovery in its California release (2019), building on earlier versions of the Service Mapping and Discovery (SMD) module. Since then, it has evolved to support cloud-native discovery (e.g., AWS, Azure, GCP), containerized workloads (Kubernetes), and dynamic infrastructure. By maintaining an accurate CMDB, discovery helps reduce mean time to resolve (MTTR) incidents, improve change success rates, and support compliance audits (e.g., SOX, ISO 27001).

How Network Discovery Works

Discovery in ServiceNow operates through a multi-stage process that combines protocol scanning, credential-based authentication, and data correlation. The core workflow includes:

  1. IP Range or CIDR Scan: Discovery starts by sending pings or TCP/UDP probes to defined IP ranges to detect live hosts.
  2. Port and Service Detection: Once a host is found, it checks open ports (e.g., 22 for SSH, 161 for SNMP, 445 for SMB) to infer services running.
  3. Credential-Based Authentication: Using pre-configured access credentials (e.g., SSH keys, Windows domain accounts, SNMP v3), it logs into devices to retrieve detailed system information (OS version, installed packages, network interfaces).
  4. Data Collection and Classification: Retrieved data is normalized and mapped to CMDB classes (e.g., cmdb_ci_computer, cmdb_ci_network_adapter).
  5. Dependency and Relationship Mapping: Topology discovery (via Service Mapping) builds visual relationships—e.g., which application runs on which server, connected to which database—using process monitoring or agent-based telemetry.
  6. Conflict Resolution and Merging: Duplicate or conflicting records (e.g., same device discovered via multiple methods) are resolved using business rules and reconciliation rules based on MAC address, hostname, or serial number.

Discovery runs as background jobs scheduled via the Discovery Schedule table or triggered manually in the Discovery module. Each run generates a detailed log (Discovery Log) showing probe attempts, success/failure status, and errors—enabling administrators to troubleshoot or refine credential sets.

Key Components and Requirements

Effective network discovery requires several integrated components:

  • Discovery Credentials: Must be configured per device type (e.g., Linux SSH, Windows WinRM, SNMP v2/v3). Credentials are stored securely in the Credential Store, with support for rotation and access control.
  • Discovery Patterns: Pre-built or custom scripts (written in JavaScript or Groovy) that interpret device responses and extract CI attributes. ServiceNow ships with hundreds of built-in patterns for Cisco, Juniper, VMware, Windows, Linux, etc.
  • Reconciliation Rules: Define how to identify unique devices (e.g., “MAC address is primary key”) to prevent duplication across discovery runs.
  • Access Control: Discovery requires specific roles (e.g., discovery_admin, cmdb_admin) and network permissions (e.g., firewall rules allowing outbound from the ServiceNow instance to target subnets).
  • Proxies and Agents: For air-gapped or segmented networks, the Discovery Proxy (a lightweight Java application) can be deployed in the target network to relay scans back to the central instance.

Common pitfalls include overly broad IP ranges (causing timeouts or firewall blocks), outdated patterns (missing new device firmware), and untested credentials (leading to false negatives).

How to Choose Discovery Settings

Selecting the right discovery scope and parameters depends on your infrastructure size, security posture, and CMDB goals. Consider these factors:

  • Network Segmentation: Prioritize discovery in high-risk zones (e.g., DMZ, production) first; use proxies for isolated segments.
  • Device Types: For mixed environments (e.g., legacy mainframes + cloud), combine protocol-based discovery with cloud APIs (e.g., AWS EC2 DescribeInstances via IAM role).
  • Frequency: Critical infrastructure may require hourly discovery; static environments may run weekly. Balance responsiveness with resource usage.
  • Depth vs. Breadth: Shallow discovery (ping + port scan) is fast but yields minimal detail. Deep discovery (credential-based) provides full inventory but increases load and failure points.
  • Compliance Needs: If auditing hardware serial numbers or software licenses, ensure deep discovery with pattern coverage for those fields.

Best practice: Start with a small test scope (e.g., one subnet), validate results in a CMDB preview view, then expand gradually.

Common Problems and Fixes

Operators frequently encounter these discovery issues:

  • “No devices found” despite live hosts: Check firewall logs, verify ServiceNow can reach the subnet (e.g., via test ping from the instance), and confirm the IP range format (CIDR vs. range syntax).
  • Authentication failures: Test credentials manually (e.g., SSH from a terminal), ensure accounts have read-only permissions, and avoid expired passwords or certificate revocations.
  • Duplicate CMDB records: Review reconciliation rules—ensure primary keys (like MAC address) are enabled and consistent across discovery methods.
  • Pattern errors (e.g., “pattern match failed”): Check the Discovery Log for device-specific logs; custom patterns may need updates for new firmware versions.
  • Slow discovery performance: Reduce concurrent probes (via the discovery.concurrent_probes system property), stagger discovery windows, or use proxies to offload scanning.

ServiceNow’s Discovery Diagnostics tool (under Discovery > Diagnostics > Run Diagnostics) helps validate connectivity, credential access, and pattern compatibility before full runs.

Comparisons and Integration

While ServiceNow Discovery is powerful, it’s often part of a broader ecosystem:

  • vs. Manual CMDB Entry: Manual entry is error-prone and doesn’t scale, while discovery provides automated, repeatable inventory—but may miss non-standard or custom devices lacking patterns.
  • vs. Agent-Based Tools (e.g., SCCM, Ansible): Agents provide richer real-time data but require installation/maintenance. ServiceNow Discovery uses passive scanning, avoiding agent overhead, though agents can feed data into CMDB via integrations.
  • vs. Cloud-Native Tools (e.g., AWS Config): AWS Config offers deep cloud visibility, but ServiceNow Discovery aggregates multi-cloud and on-prem data into a unified CMDB for cross-platform impact analysis.
  • Integration with Service Mapping: Discovery identifies components (CI classes), while Service Mapping builds dependency trees (e.g., “WebApp → AppServer → DB”) using probe-based or agent-based telemetry. Together, they enable dynamic service views.
  • Integration with Change Management: CMDB data from discovery validates change requests (e.g., “Is this server in production?”) and supports impact analysis for CAB reviews.

For hybrid environments, ServiceNow’s Cloud Provisioning and Governance (CPG) module can orchestrate discovery alongside infrastructure-as-code pipelines.

Cost Considerations

Discovery itself is included in the IT Service Management (ITSM) and IT Operations Management (ITOM) licenses in ServiceNow, but costs scale with scale and complexity:

  • Instance Licensing: Discovery usage is measured by “discovered CIs”—each unique device, application, or component. Enterprise plans include millions of CIs; larger deployments may require add-on capacity.
  • Infrastructure Costs: Running discovery at scale demands compute resources. ServiceNow recommends 2+ vCPUs for the Discovery Engine and adequate storage for logs and CMDB growth (typically 10–50 GB/month for mid-sized orgs).
  • Operational Overhead: Maintaining credentials, updating patterns, and tuning reconciliation rules requires skilled staff (e.g., CMDB administrator or DevOps engineer). Training and documentation are low-cost but essential.
  • Proxy Deployment: The Discovery Proxy runs on a Linux/Windows VM; minimal specs (~2 vCPU, 4 GB RAM) but adds network complexity.

ROI comes from reduced downtime (e.g., faster incident diagnosis), audit savings (e.g., automated license compliance reporting), and improved change success rates (e.g., 20–30% fewer failed changes due to accurate impact analysis).

Safety and Best Practices

Discovery must balance thoroughness with security and stability:

  • Minimize Privilege Escalation: Use least-privilege accounts (e.g., read-only SSH, SNMP v3 with auth+privacy) to avoid exposing sensitive credentials.
  • Rate Limiting: Configure probe delays (e.g., discovery.scan_delay) to avoid overwhelming legacy devices (e.g., old network gear may crash under rapid scans).
  • Data Encryption: All discovery traffic (especially credential handshakes) uses TLS 1.2+; avoid SNMP v1/v2c in production due to plaintext credentials.
  • Compliance Alignment: Ensure discovery respects data residency laws—e.g., scan data isn’t stored in unauthorized regions. ServiceNow encrypts CMDB data at rest (AES-256).
  • Testing First: Always run discovery in a staging environment or on non-production subnets to validate behavior before rolling to critical networks.

A common misconception is that discovery replaces configuration management: it doesn’t. Discovery identifies what exists; change and configuration management ensure how it’s controlled. For example, discovery may find a server with OS version X, but change management verifies if that version is approved for production.

Frequently Asked Questions

1. Does ServiceNow Discovery work with cloud infrastructure like AWS or Azure?
Yes. ServiceNow supports cloud discovery via APIs (e.g., AWS STS, Azure AD) and native integrations. You configure IAM roles or service principals with read permissions, then enable discovery for cloud resources in the CMDB. It populates CI classes like aws_ec2_instance and azure_vm, including metadata like region, VPC, and security groups.

2. How often should I run network discovery?
It depends on infrastructure volatility. Static environments (e.g., legacy data centers) may run weekly; dynamic ones (e.g., Kubernetes clusters with short-lived pods) need hourly or event-driven discovery. ServiceNow’s “Dynamic Discovery” can trigger scans on cloud API events (e.g., EC2 instance launch) for near real-time updates.

3. Can discovery find devices behind firewalls or in air-gapped networks?
Yes, using a Discovery Proxy. Deploy the proxy (a downloadable Java app) inside the target network—it acts as a relay, scanning local IPs and sending results back to the central ServiceNow instance. This avoids opening inbound firewall rules to the ServiceNow server.

4. What happens if discovery fails to authenticate?
Failure logs show the exact error (e.g., “SSH authentication refused” or “SNMP community mismatch”). You can test credentials in the Credentials table using the “Test” button, then adjust access rights or update patterns. Failure to authenticate doesn’t stop discovery—it just returns minimal data (e.g., open ports only).

5. Does discovery affect network performance?
Properly configured discovery has minimal impact. Use scan delays, avoid scanning during peak hours, and limit concurrent probes (default is 50). For large networks (>10,000 devices), distribute scans across time windows and use proxies to reduce latency. ServiceNow’s documentation recommends stress-testing with a small subnet first.

6. How does ServiceNow handle duplicate devices discovered via multiple methods?
Reconciliation rules determine uniqueness. By default, it uses MAC address for network devices, hostname for servers, and serial number for hardware. You can customize rules (e.g., “hostname + IP” for virtual environments). The Reconciliation module shows merge candidates and lets admins approve conflicts before committing to CMDB.