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

Project Samples

Project Activity

See All Activity >

License

GNU General Public License version 3.0 (GPLv3)

Follow Switch Miner

Switch Miner Web Site

Other Useful Business Software
Earn up to 16% annual interest with Nexo. Icon
Earn up to 16% annual interest with Nexo.

More flexibility. More control.

Generate interest, access liquidity without selling, and execute trades seamlessly. All in one platform. Geographic restrictions, eligibility, and terms apply.
Get started with Nexo.
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
★
4
1
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5

User Reviews

  • 4 out of 5 stars
    Muchas gracias
  • 5 out of 5 stars
    I 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 stars
    Works great, helped me debug a switch.
  • 5 out of 5 stars
    This 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 stars
    Best 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!
Read more reviews >

Additional Project Details

Operating Systems

Linux, Windows

Languages

English

Intended Audience

Information Technology, Security Professionals, System Administrators, Telecommunications Industry

User Interface

Command-line, Win32 (MS Windows)

Programming Language

C, C++

Related Categories

C++ Systems Administration Software, C++ Network Monitoring Software, C Systems Administration Software, C Network Monitoring Software

Registered

2005-06-01