Link to home
Start Free TrialLog in
Avatar of jcox3
jcox3

asked on

apple script to collect wired and wireless mac address

i'm sort of new to apple desktops and laptops, and looking for a way to collect the mac address of the wired and wireless network card of our machines, and then dump it to a text file on a file share, or email.

i know how to do it using a batch file in windows but obviously that wont work in os x.

any help would be greatly appreciated

thanks
Avatar of AGoodKeenMan
AGoodKeenMan
Flag of New Zealand image

If you happy using the Terminal, you might want to have a look at the man page for system_profiler, i think it will output information to an xml file. Let me know if this helps, if not I can work something.
ASKER CERTIFIED SOLUTION
Avatar of heteronymous
heteronymous

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Nice work. heteronymous is right, networksetup is a much better fit.
sudo networksetup -listallhardwareports > $HOME/Desktop/NetworkInfo.txt