Discovery of device considering MAC address

I was trying to start a new plugins and I would like to make autodiscover oh this ethernet device.
Autodiscover consist on trying to ping all IP address and considering the Mac Address, in return answer to know if it’s the good one.

Is it possible to get MAC address of device?
I have seen nothing in ping or WOL plugins in order to retreive mac address.

Thx for help

The MAC address is available from the arp table - just run arp and pipe this to a file.

Chris