All scripts
isp
Advanced
3–8 min
T-ISP-032 · Inventory Auto-Discovery
Crawl the network from seed devices via CDP/LLDP neighbor discovery, collect hardware/serial/version facts, and reconcile the discovered topology against the source-of-truth inventory to flag drift.
Cisco IOS/XE
Cisco IOS-XR
Juniper Junos
Arista EOS
You're viewing a preview
The full script, parameters, and execution console are available with a free account.
Already have access? Sign in →
Capabilities
- CDP/LLDP neighbor crawl
- Hardware/serial facts
- Source-of-truth reconcile
- Missing/new-device flag
- Version drift detection
- JSON inventory export
Required inputs
Parameters the script accepts. Defaults shown; some are vendor- or context-gated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
Crawl depth max_depth | number | 3 | — |
Discovery (cdp|lldp|both) protocol | string | both | — |
Sample inventory schema
Authoritative shape of the device/policy data this script consumes.
No bundled inventory sample. The script accepts standard device lists (CSV/YAML) with hostname, mgmt IP, vendor, and credentials.
Expected output
Reference terminal output the script should produce — used as a stylistic and structural target.
terminal
2026-06-16 03:00:00 INFO Crawling from 2 seeds (depth 3, both) 2026-06-16 03:00:05 INFO Discovered 49 devices, 312 links 2026-06-16 03:00:05 WARN 2 devices not in source-of-truth: lab-sw-11, lab-sw-12 2026-06-16 03:00:05 WARN version drift on pe-rtr-07 (17.6.3 vs SoT 17.9.1) 2026-06-16 03:00:05 INFO Inventory written to discovered-inventory.json