Switch Miner (SwitchMiner) is a free, open source tool that finds every device on every port of your network switches and draws the network diagram from the links between them.
It scans switches over SNMP and builds a report for each port: interface status, speed and duplex, VLANs and trunks, error counters, spanning tree state, and the MAC addresses learned on the port, with manufacturer names from the IEEE OUI list. Given a router, it adds the IP addresses, DNS names and NetBIOS names of the connected devices.
Results are saved as an Excel workbook (one sheet per switch, plus an Inventory sheet and the audit sheets you choose) or as CSV. The links between switches can be saved as a draw.io or Graphviz network diagram. Two scans can be compared to show what changed.
It runs as a Windows GUI, a Windows command-line program, and a portable Linux command-line program with nothing to install, all built from one code base.
Licensed under the GNU GPL version 3.
Features
- SNMP v1, v2c and v3, with MD5, SHA and SHA-2 (SHA-224 to SHA-512) authentication and DES and AES (128, 192 and 256-bit) privacy
- Network topology diagram from CDP and LLDP neighbors, as a draw.io or Graphviz file
- Compare two scans to list new, missing and moved devices and changed port values, with a scan history for daily change detection and exit code 4 for scripts
- Excel audit sheets: Unused Ports, Port Hygiene, Link Mismatch (speed, duplex, trunk and VLAN differences between neighbors), Links and Duplicate MACs
- Discovers neighbor switches through CDP and LLDP, with --exclude patterns to skip devices
- Scans many switches from a file, with a configurable thread count, and fast DNS and NetBIOS lookups
- Ping sweep of the router's subnets or custom ranges before the scan, and uplink port consolidation
- Layer 3 information through one or more routers
- --search finds the switch port for a MAC address
- Windows GUI, Windows console and Linux console from one code base
License
GNU General Public License version 3.0 (GPLv3)Follow Switch Miner
User Reviews
-
4 out of 5 starsMuchas gracias
-
5 out of 5 starsI really like this project. I just wish that I could tell it which IP ranges to sweep. Every time I use the program, I have to wait many hours because it sweeps the 16 bit subnet in the router. I only need to sweep a couple 24 but subnets within the 16 bit subnet.
-
5 out of 5 starsWorks great, helped me debug a switch.
-
5 out of 5 starsThis program works - and fast. Install is VERY easy as all you have to do is edit your sm.config file on notepad ++ with the appropriate info (snmp etc), and you are good to go. Will be donating as soon as I get a few extra bucks. Still - this is great for Cisco shops who need access-layer visibility. The only thing I would change/add is to specify static/dynamic entry, and the option of coloring out down ports. I know, I am picky. WILL NOT decompile using VS 2012 as noted in the readme file - or else I would have made the above changes myself. Still, phenomenal job, and well worth it!
-
5 out of 5 starsBest Cisco switch port mapping program out there! THIS ONE WORKS - been fighting with the commercial packages for weeks - they would not map all the vlans, skip ports, not resolve names. Switch Miner mapped out our CatOs 6509 100% in the first pass, plus built the xls file as well (no more csv imports!) Thanks and a Tip of the Hat, You knocked the ball wayyyyy out of the park, it's still flying!