Projects › CDP Network Discovery: Inventory and Topology Map
CDP Network Discovery: Inventory and Topology Map
You have inherited a network with no documentation: one seed address (10.10.0.1) and the automation account. Write a crawler that logs into the seed, reads its CDP neighbours, follows each one by its management address, and builds the inventory (devices.csv) and topology map (topology.json) the team never had. One old switch will not accept the standard login — record it and keep going.
Difficulty: advanced · Time: about 70 minutes
Why it matters
Discovery is how automation starts on a brownfield network: you cannot automate what you have not inventoried. A crawler that survives the device that refuses it is exactly the kind of tool an automation engineer is asked to build in the first month.
Technologies
- Python
- Netmiko
- CDP
- Discovery
- Inventory
- JSON
- CSV
Related projects
- Automated Multi-Device Configuration Backup with Python & Netmiko
- Ansible Playbooks for Infrastructure as Code (IaC) & Compliance
- Model-Driven Programmability: RESTCONF & YANG Automation with Python
- Automated Network Validation & Pre/Post Checks with pyATS & Genie
- Python Config Backup with Change Detection
- VLAN Rollout to Access Switches from a CSV
- Configuration Compliance Audit and Drift Remediation
- Templated Branch Router Rollout with Jinja2