Durable Removable MAC detection

Valued Contributor

I'm looking for a more durable way to detect Removable MAC addresses in the environment. Currently, I'm getting the name of the service from networksetup and hoping that they haven't renamed the service. However, I would have thought the number in our environment would be substantially higher than what I'm seeing reported. I also doubt there's a systematic renaming of network services, but I'd like to check.

So far, I've come up with some complicated ways to do it via system_profiler, but I'm wondering if I've missed an obvious way.


Legendary Contributor III

Post the script/commands you're using now? it might be that the way you have it is the best you can do, or there may be a more logical way. Hard to know without seeing how you do it now though.