Switch Miner is a free lightweight open source command line utility for Windows that acts as a switch port mapper/switch port discovery tool. It helps network engineers discover the devices that are connected to the all the ports of a switch. It will even discover neighboring switches via CDP and scan them also. Using SNMP it scans switches and creates excel .xlsx or .csv files.
Access Switch Miner here.