1) What is your question?
2) Depending on your switch fabric, you might be able to get MAC address list via SNMP:
http://networkengineering.stackexchange.com/questions/2900/using-snmp-to-retrieve-the-arp-and-mac-address-tables-from-a-switch[
^]
3) As a switch is L2, and IP works on L3, you can get IP ARP table only, if the switch is L3 (router or with routing capabilities), and if the device was communicating on IP level.
4) If you can log in via ssh/telnet, you can issue commands also programatically, you could process.