All scripts
analysis
Advanced
~6 min

L2/L3 Topology Discovery & Change Detector

Multi-protocol topology discovery: CDP/LLDP neighbor collection, graph-based topology construction with NetworkX, automated change detection vs previous snapshot, VLAN topology overlay, and Graphviz export.

cisco-ios
cisco-nxos
juniper
arista
Open in GeneratorOpen in Platform
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
  • Topology
  • NetworkX
  • Change detection
  • Graph

Required inputs

Parameters the script accepts. Defaults shown; some are vendor- or context-gated.

ParameterTypeDefaultNotes
Discovery Protocol
protocol
stringbothโ€”
Detect Changes
detect_changes
booltrueโ€”

Hint 1 โ€” Name your vendors and OS versions

Mention the exact platforms you run (cisco-ios, cisco-nxos, juniper, โ€ฆ) so the generated analysis logic uses the right CLI/NETCONF syntax.

Hint 2 โ€” State your real thresholds

Provide concrete values for Discovery Protocol, Detect Changes instead of the defaults โ€” they shape what counts as a fault.

Hint 3 โ€” Prioritize the checks you need

This tool can cDP and lLDP. Ask for the subset relevant to your incident to keep output focused.

Hint 4 โ€” Describe your inventory format

Tell the assistant whether your device list is CSV, YAML, or JSON and which columns it has, so parsing matches your data.

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
[INFO] Crawled 32 devices via LLDP+CDP
[INFO] Built graph: 32 nodes, 71 edges
[CRIT] Topology change vs baseline: 2 new links, 1 removed
[WARN] R12: 4 ports show neighbor flap (>5/hour)
[OK]   Snapshot persisted โ†’ topology_2026-05-14.json