Haven’t you from time to time needed to know which server is in which port in your switch, or needed to map your whole server network.
Most tools out there costs a few $ but this one is open source and really good.
You’ll need excel on your computer though.
You can download it from sourceforge.net or here.
It gives you lots of good information like CRC errors, duplex settings ,Vlan info, and of course ip adresses but even CDP neighbors and their port as well
if you want.
Simply a great tool .
Here’s the command line options for refererence, hope you find it useful.
Usage: sm.exe
-s -c -r -e [optional options]
-v [snmp version] 1 or 2 – default value is 2
-x [retries] – default value is 3
-t [timeout] – default value is 6s
-m [max_repetitions] – maximum repetitions for getbulk – default is 40
-n Don’t consolidate CDP Neighbor switch ports
-l walk CDP neighbors
-y output .csv file format
-p perform ping sweep before switch walk (More accurate results)
-f – read switch list from file
-o – output filename
-d turn debug on
-h print this message
Example:sm -s switch1 -c public -r router1 -e private
sm -s switch1 -c public -r router1 -e private -v1 -n -d
sm -s switch2 -c public -r router2 -e public -l
sm -f switch_list.txt -c public -r router1 -e public
The -v option allows polling switches and routers that do not support SNMP
version 2.
The -n option shows all the mac addresses on a port connected with
another switch that is discovered via cdp