Skip to content

Discovery

Location in GUI: Tools » Discovery

NameTypeConstraintMandatoryDefault Value
inventoryClassinventoryNo

NameTypeConstraintMandatoryDefault Value
discoveryListdiscoveryNo

NameTypeConstraintMandatoryDefault Value
nameStringYes
typeChoiceSingle, Range, Multi Range, CDP, LLDP, CIDRNo
global_credential_listListStringNo
ip_address_listStringNo
preferred_mgmt_ip_methodChoiceUseLoopBack, NoneNo
protocol_orderChoiceSSH, Telnet, SSH,Telnet, Telnet,SSHNo
time_outIntegerNo
cdp_levelIntegerNo
lldp_levelIntegerNo
enable_password_listListStringNo
ip_filter_listListStringNo
netconf_portStringNo
retryIntegerNo
user_name_listListStringNo
create_per_siteBooleantrue, falseNo

NameTypeConstraintMandatoryDefault Value
nameStringYes
typeChoiceSingle, Range, Multi Range, CDP, LLDP, CIDRNo
create_per_siteBooleantrue, falseNo
global_credential_listListStringNo
ip_address_listStringNo
preferred_mgmt_ip_methodChoiceUseLoopBack, NoneNo
protocol_orderChoiceSSH, Telnet, SSH,Telnet, Telnet,SSHNo
time_outIntegerNo
cdp_levelIntegerNo
lldp_levelIntegerNo
enable_password_listListStringNo
ip_filter_listListStringNo
netconf_portStringNo
retryIntegerNo
user_name_listListStringNo

NameTypeConstraintMandatoryDefault Value
nameStringYes
typeChoiceSingle, Range, Multi Range, CDP, LLDP, CIDRNo
create_per_siteBooleantrue, falseNo
global_credential_listListStringNo
ip_address_listStringNo
preferred_mgmt_ip_methodChoiceUseLoopBack, NoneNo
protocol_orderStringNo
time_outIntegerNo
cdp_levelIntegerNo
lldp_levelIntegerNo
enable_password_listListStringNo
ip_filter_listListStringNo
netconf_portStringNo
retryIntegerNo
user_name_listListStringNo

Discovery automates the process of finding and adding network devices to the Catalyst Center inventory using CDP, LLDP, or IP range-based scanning. Discovered devices use the Device Credentials configured at the site level. After discovery, devices can be assigned to sites and provisioned. Applicable to both SDA fabric and non-fabric deployments.

Prerequisite: Define every CLI, SNMP and HTTPS credential listed under global_credential_list under Device Credentials in the data model, as in Example-1. The module resolves the names only from the data model (in a per-site state, also from the credentials assigned to the site). A name that exists only in Catalyst Center is not resolved, and the whole list is dropped with it: the discovery job is created without any credentials, with no error and no change on the next plan.

Example-1: Device Credentials for Discovery Authentication

Section titled “Example-1: Device Credentials for Discovery Authentication”

This example shows how to configure the CLI credentials required for network device discovery. These credentials can be created using the Data model before being referenced in discovery jobs to ensure proper device authentication and access.

The CLI credentials configuration includes:

  • CLI Credential name (dnacadmin) and SNMP credentials that will be referenced in the discovery global credential list
  • Foundation for secure device discovery and subsequent management operations
catalyst_center:
sites:
global:
network_settings:
device_credentials:
cli_credentials:
- name: dnacadmin
username: dnacadmin
password: !env DISCOVERY_CLI_PASSWORD
enable: !env DISCOVERY_CLI_ENABLE_PASSWORD
snmpv2_read_credentials:
- name: GLOBAL_SNMP_READ
read_community: !env GLOBAL_SNMP_READ_COMMUNITY
snmpv2_write_credentials:
- name: GLOBAL_SNMP_WRITE
write_community: !env GLOBAL_SNMP_WRITE_COMMUNITY
snmpv3_credentials:
- name: SECURE_SNMPV3_AUTHPRIV
auth_type: SHA256
privacy_type: AES128
snmp_mode: AUTHPRIV
username: secureuser
auth_password: !env SNMPV3_AUTH_PASSWORD
privacy_password: !env SNMPV3_PRIVACY_PASSWORD
https_read_credentials:
- name: HTTP_READ_ACCESS
username: apphost_http_read
password: !env HTTP_READ_ACCESS_PASSWORD
port: 443
https_write_credentials:
- name: HTTP_WRITE_ACCESS
username: apphost_http_write
password: !env HTTP_WRITE_ACCESS_PASSWORD
port: 443

Secrets are read from environment variables with the !env tag, so they are not stored in the data model files.

This example demonstrates how to configure basic network device discovery using an IP address range in Catalyst Center. Network discovery is the foundational process for identifying and onboarding network devices into the Catalyst Center inventory for centralized management and monitoring.

The discovery configuration includes:

  • Discovery name (Discovery1) for identification and tracking of discovery jobs
  • Range type discovery for scanning contiguous IP address blocks
  • Global credential list (dnacadmin) referencing pre-configured CLI and SNMP credentials for device authentication
  • IP address range (198.18.130.1-198.18.130.10) defining the scope of network devices to discover
  • Preferred IP method set to None for automatic IP selection during discovery
  • Protocol order (SSH, Telnet) specifying connection priority for device authentication
  • Timeout setting (60 seconds) for discovery connection attempts and device response
catalyst_center:
inventory:
discovery:
- name: Discovery1
type: Range
global_credential_list:
- dnacadmin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
ip_address_list: "198.18.130.1-198.18.130.10"
preferred_mgmt_ip_method: None
protocol_order: SSH,Telnet
time_out: 60

Example-3: Multi-Network Discovery with Different Credential Sets

Section titled “Example-3: Multi-Network Discovery with Different Credential Sets”

This example demonstrates how to configure multiple discovery jobs targeting different network segments with specific credential sets for diverse network environments and security requirements.

Note: Examples 3 to 6 show only the discovery jobs. Credential names such as campus-admin, branch-readonly or primary-admin must be defined under device_credentials in the same data model, as in Example-1, otherwise the job is created without credentials (see the prerequisite above).

catalyst_center:
inventory:
discovery:
- name: CAMPUS_CORE_DISCOVERY
type: Range
global_credential_list:
- campus-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
ip_address_list: "10.1.0.1-10.1.0.50"
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH
time_out: 90
enable_password_list:
- campus-enable
- name: BRANCH_NETWORK_DISCOVERY
type: Range
global_credential_list:
- branch-readonly
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: "192.168.100.1-192.168.100.254"
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH,Telnet
time_out: 45

Example-4: CIDR-Based Discovery for Large Network Segments

Section titled “Example-4: CIDR-Based Discovery for Large Network Segments”

This example shows how to configure discovery using CIDR notation for efficient scanning of large network segments, suitable for enterprise environments with substantial network infrastructure.

catalyst_center:
inventory:
discovery:
- name: ENTERPRISE_WIDE_DISCOVERY
type: CIDR
global_credential_list:
- enterprise-admin
- monitoring-readonly
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: "172.16.0.0/16"
preferred_mgmt_ip_method: None
protocol_order: SSH
time_out: 120

Example-5: Single Device Discovery with SNMP Integration

Section titled “Example-5: Single Device Discovery with SNMP Integration”

This example demonstrates how to configure discovery for specific devices with comprehensive SNMP integration for enhanced device monitoring and management capabilities during the discovery process. The SNMP configuration is referenced in the global_credential_list

catalyst_center:
inventory:
discovery:
- name: CRITICAL_DEVICE_DISCOVERY
type: Single
global_credential_list:
- critical-admin
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: "10.10.10.1"
preferred_mgmt_ip_method: None
protocol_order: SSH
time_out: 180

Example-6: Comprehensive Multi-Protocol Discovery Job

Section titled “Example-6: Comprehensive Multi-Protocol Discovery Job”

This example shows how to configure a comprehensive discovery job with multiple authentication protocols and credential fallback options for complex network environments with diverse device types and configurations.

catalyst_center:
inventory:
discovery:
- name: COMPREHENSIVE_DISCOVERY
type: Range
global_credential_list:
- primary-admin
- secondary-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: 10.0.0.1-10.0.255.254
preferred_mgmt_ip_method: None
protocol_order: SSH,Telnet
time_out: 300
retry: 3
netconf_port: '830'
- name: Discovery_10_9_1_15
type: Single
global_credential_list:
- primary-admin
- secondary-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: 10.9.1.15
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH,Telnet
time_out: 300
retry: 3
netconf_port: '830'
- name: Discovery_CDP_Seed_Device
type: CDP
global_credential_list:
- primary-admin
- secondary-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: 10.9.0.1
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH,Telnet
time_out: 300
cdp_level: 5
retry: 3
netconf_port: '830'
- name: Discovery_Muliti_Range
type: Multi Range
global_credential_list:
- primary-admin
- secondary-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: 10.9.1.16-10.9.1.16,10.9.1.19-10.9.1.20
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH,Telnet
time_out: 300
retry: 3
netconf_port: '830'

Note: Catalyst Center stores a Multi Range discovery with the type Range. The module ignores the difference, so there is no drift.

Example-7: Per-Site Discovery in Multistate Deployments

Section titled “Example-7: Per-Site Discovery in Multistate Deployments”

By default a discovery job is treated as a global object: it is created once in a global apply (manage_global_settings = true) or a single-state apply (empty managed_sites) and is skipped in per-site applies (manage_global_settings = false with a non-empty managed_sites). Setting create_per_site: true makes the module create the discovery job from the site state itself, which is useful when each site owns a unique IP range defined in that site’s data.

The discovery name must be unique across site states (do not reuse the same flagged discovery name in multiple site states). Put create_per_site jobs in YAML that only the site state reads. The global state creates every discovery job it reads, including create_per_site ones, so with a data directory shared by all states the site state then fails with NCDS12001 Discovery already exists with the same name, which blocks the rest of that site apply (for example buildings and provisioning). Credentials listed in global_credential_list must already exist on Catalyst Center (created by the global apply). In per-site mode they are resolved by name via data sources from credentials assigned to the site, or from credentials defined under Device Credentials in the site YAML. A credential that exists in Catalyst Center but is neither assigned to the site nor defined in the YAML is not resolved, and the job is created without credentials. After discovery, assign devices to the site with Assign Device to Site.

catalyst_center:
inventory:
discovery:
- name: NC1-025_DISCOVERY
type: Range
create_per_site: true
global_credential_list:
- dnacadmin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
ip_address_list: "10.25.0.1-10.25.0.254"
preferred_mgmt_ip_method: None
protocol_order: SSH
time_out: 60

Discovery automates the process of finding and adding network devices to the Catalyst Center inventory using CDP, LLDP, or IP range-based scanning. Discovered devices use the Device Credentials configured at the site level. After discovery, devices can be assigned to sites and provisioned. Applicable to both SDA fabric and non-fabric deployments.

Prerequisite: CLI, SNMP, HTTPS credentials listed under global_credential_list needs to exists in Catalyst Center or you can define them using following example:

Example-1: Device Credentials for Discovery Authentication

Section titled “Example-1: Device Credentials for Discovery Authentication”

This example shows how to configure the CLI credentials required for network device discovery. These credentials can be created using the Data model before being referenced in discovery jobs to ensure proper device authentication and access.

The CLI credentials configuration includes:

  • CLI Credential name (dnacadmin) and SNMP credentials that will be referenced in the discovery global credential list
  • Foundation for secure device discovery and subsequent management operations
---
catalyst_center:
network_settings:
device_credentials:
cli_credentials:
- name: dnacadmin
username: dnacadmin
password: C1sco12345
enable: C1sco12345
snmpv2_read_credentials:
- name: GLOBAL_SNMP_READ
description: "Global monitoring read access"
read_community: RO
snmpv2_write_credentials:
- name: GLOBAL_SNMP_WRITE
description: "Global configuration write access"
write_community: RW
snmpv3_credentials:
- name: SECURE_SNMPV3_AUTHPRIV
auth_type: SHA
privacy_type: AES128
snmp_mode: AUTHPRIV
username: secureuser
auth_password: SecureAuth2025!
privacy_password: SecurePriv2025!
https_read_credentials:
- name: HTTP_READ_ACCESS
username: apphost_http_read
password: ApiRead2025!
port: 443
https_write_credentials:
- name: HTTP_WRITE_ACCESS
username: apphost_http_write
password: ApiWrite2025!
port: 443

This example demonstrates how to configure basic network device discovery using an IP address range in Catalyst Center. Network discovery is the foundational process for identifying and onboarding network devices into the Catalyst Center inventory for centralized management and monitoring.

The discovery configuration includes:

  • Discovery name (Discovery1) for identification and tracking of discovery jobs
  • Range type discovery for scanning contiguous IP address blocks
  • Global credential list (dnacadmin) referencing pre-configured CLI and SNMP credentials for device authentication
  • IP address range (198.18.130.1-198.18.130.10) defining the scope of network devices to discover
  • Preferred IP method set to None for automatic IP selection during discovery
  • Protocol order (SSH, Telnet) specifying connection priority for device authentication
  • Timeout setting (60 seconds) for discovery connection attempts and device response
catalyst_center:
inventory:
discovery:
- name: Discovery1
type: Range
global_credential_list:
- dnacadmin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
ip_address_list: "198.18.130.1-198.18.130.10"
preferred_mgmt_ip_method: None
protocol_order: SSH,Telnet
time_out: 60

Example-3: Multi-Network Discovery with Different Credential Sets

Section titled “Example-3: Multi-Network Discovery with Different Credential Sets”

This example demonstrates how to configure multiple discovery jobs targeting different network segments with specific credential sets for diverse network environments and security requirements.

catalyst_center:
inventory:
discovery:
- name: CAMPUS_CORE_DISCOVERY
type: Range
global_credential_list:
- campus-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
ip_address_list: "10.1.0.1-10.1.0.50"
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH
time_out: 90
enable_password_list:
- campus-enable
- name: BRANCH_NETWORK_DISCOVERY
type: Range
global_credential_list:
- branch-readonly
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: "192.168.100.1-192.168.100.254"
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH,Telnet
time_out: 45

Example-4: CIDR-Based Discovery for Large Network Segments

Section titled “Example-4: CIDR-Based Discovery for Large Network Segments”

This example shows how to configure discovery using CIDR notation for efficient scanning of large network segments, suitable for enterprise environments with substantial network infrastructure.

catalyst_center:
inventory:
discovery:
- name: ENTERPRISE_WIDE_DISCOVERY
type: CIDR
global_credential_list:
- enterprise-admin
- monitoring-readonly
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: "172.16.0.0/16"
preferred_mgmt_ip_method: None
protocol_order: SSH
time_out: 120

Example-5: Single Device Discovery with SNMP Integration

Section titled “Example-5: Single Device Discovery with SNMP Integration”

This example demonstrates how to configure discovery for specific devices with comprehensive SNMP integration for enhanced device monitoring and management capabilities during the discovery process. The SNMP configuration is referenced in the global_credential_list

catalyst_center:
inventory:
discovery:
- name: CRITICAL_DEVICE_DISCOVERY
type: Single
global_credential_list:
- critical-admin
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: "10.10.10.1"
preferred_mgmt_ip_method: None
protocol_order: SSH
time_out: 180

Example-6: Comprehensive Multi-Protocol Discovery Job

Section titled “Example-6: Comprehensive Multi-Protocol Discovery Job”

This example shows how to configure a comprehensive discovery job with multiple authentication protocols and credential fallback options for complex network environments with diverse device types and configurations.

catalyst_center:
inventory:
discovery:
- name: COMPREHENSIVE_DISCOVERY
type: Range
global_credential_list:
- primary-admin
- secondary-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: "10.0.0.1-10.0.255.254"
preferred_mgmt_ip_method: Management
protocol_order: SSH,Telnet
time_out: 300
retry: 3
netconf_port: "830"
- name: Discovery_10_9_1_15
type: Single
global_credential_list:
- primary-admin
- secondary-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: '10.9.1.15'
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH,Telnet
time_out: 300
retry: 3
netconf_port: "830"
- name: Discovery_CDP_Seed_Device
type: CDP
global_credential_list:
- primary-admin
- secondary-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: '10.9.0.1'
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH,Telnet
time_out: 300
cdp_level: 5
retry: 3
netconf_port: "830"
- name: Discovery_Muliti_Range
type: Multi Range
global_credential_list:
- primary-admin
- secondary-admin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
- SECURE_SNMPV3_AUTHPRIV
ip_address_list: '10.9.1.16-10.9.1.16,10.9.1.19-10.9.1.20'
preferred_mgmt_ip_method: UseLoopBack
protocol_order: SSH,Telnet
time_out: 300
retry: 3
netconf_port: "830"

Example-7: Per-Site Discovery in Multistate Deployments

Section titled “Example-7: Per-Site Discovery in Multistate Deployments”

By default a discovery job is treated as a global object: it is created once in a global apply (manage_global_settings = true) or a single-state apply (empty managed_sites) and is skipped in per-site applies (manage_global_settings = false with a non-empty managed_sites). Setting create_per_site: true makes the module create the discovery job from the site state itself, which is useful when each site owns a unique IP range defined in that site’s data.

The discovery name must be unique across site states (do not reuse the same flagged discovery name in multiple site states). Credentials listed in global_credential_list must already exist on Catalyst Center (created by the global apply). In per-site mode they are resolved by name via data sources from credentials assigned to the site, or from credentials defined under Device Credentials in the site YAML. After discovery, assign devices to the site with Assign Device to Site.

catalyst_center:
inventory:
discovery:
- name: NC1-025_DISCOVERY
type: Range
create_per_site: true
global_credential_list:
- dnacadmin
- GLOBAL_SNMP_READ
- GLOBAL_SNMP_WRITE
ip_address_list: "10.25.0.1-10.25.0.254"
preferred_mgmt_ip_method: None
protocol_order: SSH
time_out: 60