← ClaudeAtlas

cisco-network-maplisted

Generate Python scripts that discover and map network topology using ping, traceroute, ARP, CDP, LLDP, and routing tables. Use when the user wants to discover devices, map network topology, visualize network diagrams, or build a network inventory from live discovery.
bradmccloskey/claude-cisco-skills · ★ 0 · DevOps & Infrastructure · score 75
Install: claude install-skill bradmccloskey/claude-cisco-skills
## Cisco Network Discovery & Mapping Scripts Write Python scripts that discover and map network topology from live devices. Follow these standards: ### Discovery Methods #### Ping Sweep - ICMP sweep across subnets to find live hosts - Use `concurrent.futures` or `asyncio` for parallel pings - Record response time and TTL (TTL helps identify device type/hop count) - Support CIDR input (e.g., `10.0.1.0/24`) and ranges - Identify likely network devices vs endpoints by TTL values (64=Linux/endpoint, 128=Windows, 255=Cisco) #### Traceroute - Trace paths between known endpoints to discover intermediate hops - Build hop-by-hop path maps - Identify asymmetric routing (trace both directions) - Detect multiple paths (ECMP) by running repeated traces - Record per-hop latency for path quality analysis #### ARP Table Collection - Pull `show ip arp` from routers/L3 switches - Map IP addresses to MAC addresses - Identify MAC vendor (OUI lookup) to determine device manufacturer - Detect duplicate IPs or MAC flapping - Cross-reference with CAM/MAC address tables for port mapping #### CDP (Cisco Discovery Protocol) - Pull `show cdp neighbors detail` from all Cisco devices - Extract: device ID, platform, IP, local/remote interface, software version, capabilities - Build adjacency graph from CDP data - Crawl the network: start at seed device, discover neighbors, SSH to each, repeat - Identify device roles from capabilities field (R=Router, S=Switch, T=Trans Bridge, etc.) #### LLDP (Link L