cisco.dnac.network_devices_info_workflow_manager module – Gather facts about network devices from Cisco Catalyst Center (facts/info module) using flexible filters.

Note

This module is part of the cisco.dnac collection (version 6.42.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install cisco.dnac. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: cisco.dnac.network_devices_info_workflow_manager.

New in cisco.dnac 6.31.0

Synopsis

  • Gathers detailed facts (information) about network devices managed by Cisco Catalyst Center using flexible user-defined filters.

  • Supports filtering by management IP, MAC address, hostname, serial number, software type, software version, role, device type, family, and site hierarchy.

  • Allows selection of specific device information types, such as device details, interfaces, VLANs, line cards, supervisor cards, POE, module count, connected devices, configuration, summary, polling interval, stack, and link mismatch details.

  • Handles query retries, timeouts, and polling intervals for robust data collection.

  • Supports output to a file using the output_file_info option. Output can be JSON or YAML, with user-defined file path, file mode (overwrite or append), and optional timestamp.

  • If output_file_info is provided, results are written to the file; otherwise, results are returned in the Ansible output.

  • Returns structured results for each requested information type, or an empty list if no devices match the filters after all retries.

  • This module is tagged as a facts/info module and is safe to use in check mode.

Requirements

The below requirements are needed on the host that executes this module.

  • dnacentersdk >= 2.9.3

  • python >= 3.9.19

Parameters

Parameter

Comments

config

list / elements=dictionary / required

List of dictionaries specifying network device query parameters.

Each dictionary must contain a network_devices list with at least one unique identifier (such as management IP, MAC address, hostname, or serial number) per device.

network_devices

list / elements=dictionary

Contains filters and configuration for retrieving network devices information.

Requires at least one device identification or filtering criterion.

device_family

string

Device family filter for device category-based filtering.

Examples include “Switches and Hubs”, “Routers”, “Wireless Controller”.

Choices:

  • "Switches and Hubs"

  • "Routers"

  • "Wireless Controller"

  • "Unified AP"

  • "Sensors"

device_identifier

list / elements=dictionary

Optional list of device identification criteria to further filter network devices.

Provides granular control over which network devices have their information retrieved.

Multiple identification methods can be combined for comprehensive device targeting.

Only devices that are both network-enabled and match the identifier criteria will be processed.

When multiple identification parameters (ip_address, hostname, serial_number, mac_address) are specified in the same entry, they must all refer to the same physical device for proper validation.

Use separate device_identifier entries when targeting different devices with different identification methods.

hostname

list / elements=string

List of device hostnames to identify specific network devices.

Each hostname must match exactly as configured in Cisco Catalyst Center device inventory.

Only devices with matching hostnames will have their information retrieved.

Hostnames are case-sensitive and must match the exact device hostname configuration.

ip_address

list / elements=string

List of management IP addresses to identify specific network devices.

Each IP address must correspond to a managed device in the Cisco Catalyst Center inventory.

Only devices with matching IP addresses will have their information retrieved.

IP addresses must be valid IPv4 addresses in dotted decimal notation.

mac_address

list / elements=string

List of device MAC addresses to identify specific network devices.

Each MAC address must correspond to a managed device in the Cisco Catalyst Center inventory.

Only devices with matching MAC addresses will have their information retrieved.

MAC addresses should be in standard format (e.g., “aa:bb:cc:dd:ee:ff”).

serial_number

list / elements=string

List of device serial numbers to identify specific network devices.

Each serial number must match exactly as recorded in Cisco Catalyst Center device inventory.

Only devices with matching serial numbers will have their information retrieved.

Serial numbers are case-sensitive and must match the format used by the device manufacturer.

device_role

string

Device role filter for network function-based filtering.

Common roles include ACCESS, DISTRIBUTION, CORE, WAN, WLC, DATA_CENTER.

Choices:

  • "ACCESS"

  • "DISTRIBUTION"

  • "CORE"

  • "WAN"

  • "WLC"

  • "DATA_CENTER"

device_type

string

Device type filter for specific device models.

Examples include “Cisco Catalyst 9300 Switch”, “Cisco Catalyst 9400 Switch”.

Choices:

  • "Cisco Catalyst 9300 Switch"

  • "Cisco Catalyst 9400 Switch"

  • "Cisco Catalyst 9500 Switch"

  • "Cisco Catalyst C9500-48Y4C Switch"

  • "Cisco 3800E Unified Access Point"

  • "Cisco Catalyst 9130AXI Unified Access Point"

  • "Cisco Catalyst 9800-L-C Wireless Controller"

  • "Cisco Catalyst 9115AXI Unified Access Point"

  • "Cisco Catalyst Wireless 9164I Unified Access Point"

  • "Cisco Wireless 9176D1 Access Point"

interval

integer

Time in seconds to wait between retry attempts for device information retrieval operations.

Applied as a delay between failed attempts during device lookup filtering processes.

Combined with timeout and retries to determine total operation duration.

If (retries * interval) exceeds timeout, retries will continue until timeout is reached.

Longer intervals help reduce API load on Cisco Catalyst Center during retry operations.

Should be balanced with timeout settings to avoid excessively long operation times.

Default: 10

os_type

string

Operating system type filter for software platform filtering.

Common types include IOS-XE, IOS, IOS-XR, NX-OS, ASA, FTD.

Choices:

  • "IOS-XE"

  • "IOS"

  • "IOS-XR"

  • "NX-OS"

  • "ASA"

  • "FTD"

  • "IOS-XE SD-WAN"

output_file_info

dictionary

Controls file output generation for network device information retrieval results.

When provided, saves retrieved device information to the specified file along with returning the data in standard Ansible module output.

Supports flexible file formatting, writing modes, and optional timestamp inclusion for audit purposes.

Enables automated reporting and data archival workflows for network device monitoring operations.

file_format

string

Output data format for the generated file.

Determines file structure and extension applied to the file path.

YAML format provides better human readability while JSON offers programmatic parsing advantages.

Format selection affects file extension and data serialization method.

Choices:

  • "json"

  • "yaml" ← (default)

file_mode

string

File writing mode determining how data is written to the target file.

Use ‘w’ to overwrite existing file content or ‘a’ to append new data to existing content.

Append mode enables incremental data collection across multiple playbook runs.

Overwrite mode ensures clean data sets for each execution.

Choices:

  • "w" ← (default)

  • "a"

file_path

string / required

Absolute path to the output file without file extension.

File extension is automatically appended based on the selected file format (.json or .yaml).

Directory structure will be created automatically if it does not exist.

Path must be writable by the user executing the Ansible playbook.

timestamp

boolean

Controls inclusion of data retrieval timestamp in the output file content.

When enabled, adds the data collection timestamp as the first entry for audit trail purposes.

Useful for tracking when network device information was collected in automated workflows.

Timestamp format follows “YYYY-MM-DD HH:MM:SS” standard format.

Choices:

  • false ← (default)

  • true

requested_info

list / elements=string

List of device information types to retrieve.

If set to [‘all’], retrieves all available information categories.

If specific types are listed, only those will be retrieved.

If omitted, defaults to all information types.

Choices:

  • "all"

  • "device_interfaces_by_range_info"

  • "device_info"

  • "interface_info"

  • "interface_vlan_info"

  • "line_card_info"

  • "supervisor_card_info"

  • "poe_info"

  • "module_count_info"

  • "connected_device_info"

  • "device_config_info"

  • "device_summary_info"

  • "device_polling_interval_info"

  • "device_stack_info"

  • "device_link_mismatch_info"

retries

integer

Number of retry attempts for device information retrieval operations when initial attempts fail.

Applied to each individual device lookup filtering operation.

Higher retry counts improve reliability in environments with intermittent connectivity or high API load.

Total operation time is affected by retries combined with timeout and interval settings.

Actual retry attempts may be less than specified if timeout period is reached first.

Default: 3

site_hierarchy

string

Site hierarchy path for filtering devices by location.

software_version

string

Software version filter for specific software releases.

Format example “16.12.05”, “17.6.1”.

timeout

integer

Maximum time in seconds to wait for device information retrieval operations to complete.

Applied to each individual device lookup operation during the filtering process.

If device information retrieval fails within this timeout period, the operation will retry based on the ‘retries’ parameter.

Longer timeouts may be needed for environments with slower network connectivity or larger device inventories.

If timeout is greater than (retries * interval), the operation will continue retrying until the timeout period ends.

Total operation time is bounded by the timeout value regardless of retry configuration.

Default: 120

config_verify

boolean

Set to True to verify the Cisco Catalyst Center after applying the playbook config.

Choices:

  • false ← (default)

  • true

dnac_api_task_timeout

integer

Defines the timeout in seconds for API calls to retrieve task details. If the task details are not received within this period, the process will end, and a timeout notification will be logged.

Default: 1200

dnac_debug

boolean

Indicates whether debugging is enabled in the Cisco Catalyst Center SDK.

Choices:

  • false ← (default)

  • true

dnac_host

string / required

The hostname of the Cisco Catalyst Center.

dnac_log

boolean

Flag to enable/disable playbook execution logging.

When true and dnac_log_file_path is provided, - Create the log file at the execution location with the specified name.

When true and dnac_log_file_path is not provided, - Create the log file at the execution location with the name ‘dnac.log’.

When false, - Logging is disabled.

If the log file doesn’t exist, - It is created in append or write mode based on the “dnac_log_append” flag.

If the log file exists, - It is overwritten or appended based on the “dnac_log_append” flag.

Choices:

  • false ← (default)

  • true

dnac_log_append

boolean

Determines the mode of the file. Set to True for ‘append’ mode. Set to False for ‘write’ mode.

Choices:

  • false

  • true ← (default)

dnac_log_file_path

string

Governs logging. Logs are recorded if dnac_log is True.

If path is not specified, - When ‘dnac_log_append’ is True, ‘dnac.log’ is generated in the current Ansible directory; logs are appended. - When ‘dnac_log_append’ is False, ‘dnac.log’ is generated; logs are overwritten.

If path is specified, - When ‘dnac_log_append’ is True, the file opens in append mode. - When ‘dnac_log_append’ is False, the file opens in write (w) mode. - In shared file scenarios, without append mode, content is overwritten after each module execution. - For a shared log file, set append to False for the 1st module (to overwrite); for subsequent modules, set append to True.

Default: "dnac.log"

dnac_log_level

string

Sets the threshold for log level. Messages with a level equal to or higher than this will be logged. Levels are listed in order of severity [CRITICAL, ERROR, WARNING, INFO, DEBUG].

CRITICAL indicates serious errors halting the program. Displays only CRITICAL messages.

ERROR indicates problems preventing a function. Displays ERROR and CRITICAL messages.

WARNING indicates potential future issues. Displays WARNING, ERROR, CRITICAL messages.

INFO tracks normal operation. Displays INFO, WARNING, ERROR, CRITICAL messages.

DEBUG provides detailed diagnostic info. Displays all log messages.

Default: "WARNING"

dnac_password

string

The password for authentication at the Cisco Catalyst Center.

dnac_port

string

Specifies the port number associated with the Cisco Catalyst Center.

Default: "443"

dnac_task_poll_interval

integer

Specifies the interval in seconds between successive calls to the API to retrieve task details.

Default: 2

dnac_username

aliases: user

string

The username for authentication at the Cisco Catalyst Center.

Default: "admin"

dnac_verify

boolean

Flag to enable or disable SSL certificate verification.

Choices:

  • false

  • true ← (default)

dnac_version

string

Specifies the version of the Cisco Catalyst Center that the SDK should use.

Default: "2.2.3.3"

state

string

The desired state of the configuration after module execution.

Choices:

  • "gathered" ← (default)

validate_response_schema

boolean

Flag for Cisco Catalyst Center SDK to enable the validation of request bodies against a JSON schema.

Choices:

  • false

  • true ← (default)

Notes

Note

  • This is a facts/info module, it only retrieves information and does not modify any device or configuration.

  • Writing to a local file is for reporting/archival purposes only and does not affect the state of any managed device.

  • Safe to use in check mode.

  • SDK Methods used are - devices.Devices.get_device_list - devices.Devices.get_device_interface_vlans - devices.Devices.get_device_interfaces_by_specified_range - devices.Devices.get_linecard_details - devices.Devices.inventory_insight_device_link_mismatch - devices.Devices.get_stack_details_for_device - devices.Devices.get_device_config_by_id - devices.Devices.get_polling_interval_by_id - devices.Devices.get_supervisor_card_detail - devices.Devices.poe_details - devices.Devices.get_connected_device_detail - devices.Devices.get_interface_info_by_id - devices.Devices.get_module_count - devices.Devices.get_network_device_by_ip - devices.Devices.get_device_summary

  • Paths used are - GET/dna/intent/api/v1/network-device - GET/dna/intent/api/v1/network-device/{id}/vlan - GET/dna/intent/api/v1/interface/network-device/{deviceId}/{startIndex}/{recordsToReturn} - GET/dna/intent/api/v1/network-device/{deviceUuid}/line-card - GET/dna/intent/api/v1/network-device/insight/{siteId}/device-link - GET/dna/intent/api/v1/network-device/{deviceId}/stack - GET/dna/intent/api/v1/network-device/{networkDeviceId}/config - GET/dna/intent/api/v1/network-device/{id}/collection-schedule - GET/dna/intent/api/v1/network-device/{id}/brief - GET/dna/intent/api/v1/network-device/{deviceUuid}/supervisor-card - GET/dna/intent/api/v1/network-device/{deviceUuid}/poe - GET/dna/intent/api/v1/network-device/{deviceUuid}/interface/{interfaceUuid}/neighbor - GET/dna/intent/api/v1/interface/network-device/{deviceId} - GET/dna/intent/api/v1/network-device/module/count - GET/dna/intent/api/v1/network-device/ip-address/{ipAddress}

  • Does not support check_mode

  • The plugin runs on the control node and does not use any ansible connection plugins instead embedded connection manager from Cisco Catalyst Center SDK

  • The parameters starting with dnac_ are used by the Cisco Catalyst Center Python SDK to establish the connection

Examples

# 1 Example Playbook to gather specific network device information from Cisco Catalyst Center
---
- name: Get Specific Network devices information on Cisco Catalyst Center
  hosts: localhost
  connection: local
  vars_files:
    - "credentials.yml"
  tasks:
    - name: Gather detailed facts for specific network devices
      cisco.dnac.network_devices_info_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_port: "{{ dnac_port }}"
        dnac_version: "{{ dnac_version }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_log: true
        dnac_log_level: DEBUG
        config_verify: false
        dnac_api_task_timeout: 1000
        dnac_task_poll_interval: 1
        state: queried
        config:
          - network_devices:
              - site_hierarchy: Global/USA/SAN JOSE
                device_type: "Cisco Catalyst 9300 Switch"
                device_role: "ACCESS"
                device_family: "Switches and Hubs"
                software_version: "17.12.1"
                os_type: "IOS-XE"
                device_identifier:
                  - ip_address: ["204.1.2.2"]
                  - serial_number: ["FCW2137L0SB"]
                  - hostname: ["SJ-BN-9300.cisco.local"]
                  - mac_address: ["90:88:55:90:26:00"]
                timeout: 60
                retries: 3
                interval: 10
                requested_info:
                  - device_info
                  - interface_info
                  - interface_vlan_info
                  - line_card_info
                  - supervisor_card_info
                  - poe_info
                  - module_count_info
                  - connected_device_info
                  - device_interfaces_by_range_info
                  - device_config_info
                  - device_summary_info
                  - device_polling_interval_info
                  - device_stack_info
                  - device_link_mismatch_info
                output_file_info:
                  file_path: /Users/priyadharshini/Downloads/info
                  file_format: json
                  file_mode: w
                  timestamp: true

# 2 Example Playbook to gather all network device information from Cisco Catalyst Center
- name: Get All Network devices information on Cisco Catalyst Center
  hosts: localhost
  connection: local
  vars_files:
    - "credentials.yml"
  tasks:
    - name: Gather detailed facts for all network devices
      cisco.dnac.network_devices_info_workflow_manager:
        dnac_host: "{{ dnac_host }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_port: "{{ dnac_port }}"
        dnac_version: "{{ dnac_version }}"
        dnac_debug: "{{ dnac_debug }}"
        dnac_log: true
        dnac_log_level: DEBUG
        config_verify: false
        dnac_api_task_timeout: 1000
        dnac_task_poll_interval: 1
        state: queried
        config:
          - network_devices:
              - site_hierarchy: Global/USA/SAN JOSE
                device_type: "Cisco Catalyst 9300 Switch"
                device_role: "ACCESS"
                device_family: "Switches and Hubs"
                software_version: "17.12.1"
                os_type: "IOS-XE"
                device_identifier:
                  - ip_address: ["204.1.2.2"]
                  - serial_number: ["FCW2137L0SB"]
                  - hostname: ["SJ-BN-9300.cisco.local"]
                  - mac_address: ["90:88:55:90:26:00"]
                timeout: 60
                retries: 3
                interval: 10
                requested_info:
                  - all
                output_file_info:
                  file_path: /Users/priyadharshini/Downloads/info
                  file_format: json
                  file_mode: w
                  timestamp: true

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

response_connected_device_detail

dictionary

Details of the response containing information about a connected neighbor device.

Returned: always

Sample: {"response": {"capabilities": ["IGMP_CONDITIONAL_FILTERING", "ROUTER", "SWITCH"], "neighborDevice": "DC-T-9300", "neighborPort": "TenGigabitEthernet1/1/8"}, "version": "string"}

response_device_config

dictionary

Details of the response containing the device configuration as a string.

Returned: always

Sample: {"response": "Building Configuration Operation Successful", "version": "string"}

response_device_info

dictionary

Device information for network devices, including family, type, software version, serial number, and more.

Returned for each device matching the query.

Returned: always

Sample: {"response": [{"apEthernetMacAddress": null, "apManagerInterfaceIp": "", "associatedWlcIp": "", "bootDateTime": "2025-04-23 04:36:19", "collectionInterval": "Global Default", "collectionStatus": "Managed", "description": "Cisco IOS Software [Amsterdam], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 17.2.1, RELEASE SOFTWARE (fc4) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2020 by Cisco Systems, Inc. Compiled Thu 26-Mar-20 03:29 by mcpre netconf enabled", "deviceSupportLevel": "Supported", "dnsResolvedManagementAddress": "204.1.2.3", "errorCode": null, "errorDescription": null, "family": "Switches and Hubs", "hostname": "test123", "id": "e62e6405-13e4-4f1b-ae1c-580a28a96a88", "instanceTenantId": "66e48af26fe687300375675e", "instanceUuid": "e62e6405-13e4-4f1b-ae1c-580a28a96a88", "interfaceCount": "0", "inventoryStatusDetail": "<status><general code=\"SUCCESS\"/></status>", "lastDeviceResyncStartTime": "2025-06-26 00:11:45", "lastManagedResyncReasons": "Periodic", "lastUpdateTime": 1750896739913, "lastUpdated": "2025-06-26 00:12:19", "lineCardCount": "0", "lineCardId": "", "location": null, "locationName": null, "macAddress": "0c:75:bd:42:db:80", "managedAtleastOnce": false, "managementIpAddress": "204.1.2.3", "managementState": "Managed", "memorySize": "NA", "pendingSyncRequestsCount": "0", "platformId": "C9300-48UXM", "reachabilityFailureReason": "", "reachabilityStatus": "Reachable", "reasonsForDeviceResync": "Periodic", "reasonsForPendingSyncRequests": "", "role": "ACCESS", "roleSource": "MANUAL", "serialNumber": "FJC2335S09F", "series": "Cisco Catalyst 9300 Series Switches", "snmpContact": "", "snmpLocation": "", "softwareType": "IOS-XE", "softwareVersion": "17.2.1", "syncRequestedByApp": "", "tagCount": "0", "tunnelUdpPort": null, "type": "Cisco Catalyst 9300 Switch", "upTime": "63 days, 19:36:43.08", "uptimeSeconds": 5528803, "vendor": "Cisco", "waasDeviceMode": null}], "version": "string"}

response_device_interface_vlan_info

dictionary

Details of the response containing VLAN information for device interfaces.

Returned: always

Sample: {"response": [{"interfaceName": "GigabitEthernet0/1", "ipAddress": "192.168.10.25", "mask": 24, "networkAddress": "192.168.10.0", "numberOfIPs": 254, "prefix": "192.168.10.0/24", "vlanNumber": 10, "vlanType": "Data"}], "version": "string"}

response_device_interfaces_range

dictionary

Details of the response containing device interface information retrieved by a specified range.

Returned: always

Sample: {"response": [{"addresses": [], "adminStatus": "UP", "className": null, "description": "", "deviceId": "e62e6405-13e4-4f1b-ae1c-580a28a96a88", "duplex": "FullDuplex", "id": "c9c638b6-4627-4a2e-be25-05f6e487bfcf", "ifIndex": "73", "instanceTenantId": "66e48af26fe687300375675e", "instanceUuid": "c9c638b6-4627-4a2e-be25-05f6e487bfcf", "interfaceType": "Physical", "ipv4Address": null, "ipv4Mask": null, "isisSupport": "false", "lastIncomingPacketTime": null, "lastOutgoingPacketTime": 1750896368000, "lastUpdated": null, "macAddress": "0c:75:bd:42:db:c1", "mappedPhysicalInterfaceId": null, "mappedPhysicalInterfaceName": null, "mediaType": null, "mtu": "9100", "name": null, "nativeVlanId": "1", "ospfSupport": "false", "pid": "C9300-48UXM", "portMode": "access", "portName": "AppGigabitEthernet1/0/1", "portType": "Ethernet Port", "serialNo": "FJC2335S09F", "series": "Cisco Catalyst 9300 Series Switches", "speed": "1000000", "status": "up", "vlanId": "1", "voiceVlan": ""}], "version": "string"}

response_device_summary

dictionary

Details of the response containing a summary of the device.

Returned: always

Sample: {"response": {"id": "e62e6405-13e4-4f1b-ae1c-580a28a96a88", "role": "ACCESS", "roleSource": "MANUAL"}, "version": "string"}

response_interface_info

dictionary

Details of the response containing interface information for a device.

Returned: always

Sample: {"response": [{"addresses": [], "adminStatus": "UP", "className": null, "description": "", "deviceId": "e62e6405-13e4-4f1b-ae1c-580a28a96a88", "duplex": "FullDuplex", "id": "c9c638b6-4627-4a2e-be25-05f6e487bfcf", "ifIndex": "73", "instanceTenantId": "66e48af26fe687300375675e", "instanceUuid": "c9c638b6-4627-4a2e-be25-05f6e487bfcf", "interfaceType": "Physical", "ipv4Address": null, "ipv4Mask": null, "isisSupport": "false", "lastIncomingPacketTime": null, "lastOutgoingPacketTime": 1750896368000, "lastUpdated": null, "macAddress": "0c:75:bd:42:db:c1", "mappedPhysicalInterfaceId": null, "mappedPhysicalInterfaceName": null, "mediaType": null, "mtu": "9100", "name": null, "nativeVlanId": "1", "ospfSupport": "false", "pid": "C9300-48UXM", "portMode": "access", "portName": "AppGigabitEthernet1/0/1", "portType": "Ethernet Port", "serialNo": "FJC2335S09F", "series": "Cisco Catalyst 9300 Series Switches", "speed": "1000000", "status": "up", "vlanId": "1", "voiceVlan": ""}], "version": "string"}

dictionary

Details of the response containing device link mismatch information from Inventory Insight API.

Returned: always

Sample: {"response": [{"avgUpdateFrequency": 4.0, "endDeviceHostName": "switch-nyc-01", "endDeviceId": "device-1001", "endDeviceIpAddress": "192.168.1.10", "endPortAddress": "GigabitEthernet1/0/24", "endPortAllowedVlanIds": "10,20,30", "endPortDuplex": "full", "endPortId": "endport-1001", "endPortMask": "255.255.255.0", "endPortName": "Gi1/0/24", "endPortNativeVlanId": "10", "endPortPepId": "pep-ep-1001", "endPortSpeed": "1000Mbps", "instanceTenantId": "tenant-xyz123", "instanceUuid": "123e4567-e89b-12d3-a456-426614174000", "lastUpdated": "2025-06-26T10:15:00Z", "linkStatus": "up", "numUpdates": 15, "startDeviceHostName": "router-dc-01", "startDeviceId": "device-2001", "startDeviceIpAddress": "192.168.1.1", "startPortAddress": "GigabitEthernet0/1", "startPortAllowedVlanIds": "10,20,30", "startPortDuplex": "full", "startPortId": "startport-2001", "startPortMask": "255.255.255.0", "startPortName": "Gi0/1", "startPortNativeVlanId": "10", "startPortPepId": "pep-sp-2001", "startPortSpeed": "1000Mbps", "type": "ethernet-link"}], "version": "string"}

response_linecard_details

dictionary

Details of the response containing linecard information for the device.

Returned: always

Sample: {"response": [{"partno": "PN987654321", "serialno": "SN123456789", "slotno": "Slot-04", "switchno": "SW-001-A1"}], "version": "string"}

response_module_count

dictionary

Details of the response containing the count of modules.

Returned: always

Sample: {"module_count_info": [3], "version": "string"}

response_network_device_by_ip

dictionary

Details of the response containing network device information retrieved by IP address.

Returned: always

Sample: {"response": {"apEthernetMacAddress": "00:1A:2B:3C:4D:5E", "apManagerInterfaceIp": "10.10.10.15", "associatedWlcIp": "10.10.10.1", "bootDateTime": "2025-06-20T09:30:00Z", "collectionInterval": "300", "collectionStatus": "success", "description": "Office wireless access point on Floor 2", "deviceSupportLevel": "Gold", "dnsResolvedManagementAddress": "ap-office23.example.com", "errorCode": "0", "errorDescription": "", "family": "Cisco Aironet", "hostname": "AP-Office-23", "id": "ap-12345", "instanceTenantId": "tenant-001", "instanceUuid": "a1b2c3d4-e5f6-7890-1234-56789abcdef0", "interfaceCount": "6", "inventoryStatusDetail": "Active", "lastDeviceResyncStartTime": "2025-06-24T08:00:00Z", "lastUpdateTime": 1687700000, "lastUpdated": "2025-06-25T10:00:00Z", "lineCardCount": "1", "lineCardId": "lc-001", "location": "Building 1, Floor 2", "locationName": "HQ Floor 2", "macAddress": "00:1A:2B:3C:4D:5E", "managedAtleastOnce": true, "managementIpAddress": "10.10.10.15", "managementState": "Managed", "memorySize": "2048MB", "pendingSyncRequestsCount": "0", "platformId": "AIR-AP2800", "reachabilityFailureReason": "", "reachabilityStatus": "reachable", "reasonsForDeviceResync": "", "reasonsForPendingSyncRequests": "", "role": "Access Point", "roleSource": "auto-discovery", "serialNumber": "FTX12345678", "series": "2800", "snmpContact": "admin@example.com", "snmpLocation": "Data Center Rack 5", "softwareType": "IOS-XE", "softwareVersion": "17.6.1", "tagCount": "4", "tunnelUdpPort": "4500", "type": "wireless-ap", "upTime": "3 days, 5 hours", "uptimeSeconds": 277200, "vendor": "Cisco", "waasDeviceMode": "N/A"}, "version": "string"}

response_poe_details

dictionary

Details of the response containing Power over Ethernet (POE) statistics.

Returned: always

Sample: {"response": {"powerAllocated": "525", "powerConsumed": "0", "powerRemaining": "525"}, "version": "string"}

response_polling_interval

dictionary

Details of the response containing the polling interval value.

Returned: always

Sample: {"device_polling_interval_info": [86400], "version": "string"}

response_stack_details

dictionary

Details of the response containing stack information for the device.

Returned: always

Sample: {"response": {"device_stack_info": [{"deviceId": "e62e6405-13e4-4f1b-ae1c-580a28a96a88", "stackPortInfo": [{"isSynchOk": "Yes", "linkActive": false, "linkOk": false, "name": "StackSub-St1-1", "neighborPort": "NONE", "nrLinkOkChanges": 0, "stackCableLengthInfo": "NO_CABLE", "stackPortOperStatusInfo": "DOWN", "switchPort": "1/1"}, {"isSynchOk": "Yes", "linkActive": false, "linkOk": false, "name": "StackSub-St1-2", "neighborPort": "NONE", "nrLinkOkChanges": 0, "stackCableLengthInfo": "NO_CABLE", "stackPortOperStatusInfo": "DOWN", "switchPort": "1/2"}], "stackSwitchInfo": [{"entPhysicalIndex": "1000", "hwPriority": 0, "macAddress": "0c:75:bd:42:db:80", "numNextReload": 1, "platformId": "C9300-48UXM", "role": "ACTIVE", "serialNumber": "FJC2335S09F", "softwareImage": "17.02.01", "stackMemberNumber": 1, "state": "READY", "switchPriority": 1}], "svlSwitchInfo": null}]}, "version": "string"}

response_supervisor_card_detail

dictionary

Details of the response containing supervisor card information for the device.

Returned: always

Sample: {"response": [{"partno": "PN9876543210", "serialno": "SN1234567890", "slotno": "3", "switchno": "SW-01"}], "version": "string"}

Authors

  • Karthick S N (@karthick-s-n)

  • Madhan Sankaranarayanan (@madhansansel)