Before anyone points it out, this is a different question to Check MAC address of a device on the other end of an Ethernet cable.
I'm interested in an automated way (rather than Wireshark, etc) of finding only the MAC address of the device on the other end of an ethernet cable, rather than mapping the entire network. Is this even possible?
Update: The scenario is that my user has several boxes running embedded Linux connected to a network along with other equipment. I can figure out how those boxes are connected to each other by detecting the MAC or IP address each one is connected to.