snmpwalk -v 2c -c public -On 10.24.1.100 .1.3.6.1.2.1.17.4.3.1.2will produce a list of ports and what MAC addresses are connected to a particular port. MAC addresses are in decimal format so I use PHP to convert it to HEX.
pear install HTML_Common
pear install HTML_Table