I needed to ping all IPs in a given "locally attached" subnet; and resolve the MAC addreses afterwards. I stumled on a few atempts, none quite as easy to remember as my version.