Mac Address Reader

sonichel's icon

Hello friend, I need to implement the income of a product license and for this I must obtain a unique data of the machine in which the software can be installed. Is there a Mac Address, chipID or something that can be read in max? thx!!!

Source Audio's icon

On Mac message to shell to get hardware serial number :
system_profiler SPHardwareDataType | awk '/Serial Number/ {print $NF}'
get Mac adress of ethernet port :
/sbin/ifconfig en0 | awk '/ether/ {print $NF}'
get Mac adress of airport port
/sbin/ifconfig en1 | awk '/ether/ {print $NF}'
and so on ...

sonichel's icon

great SOURCE AUDIO, as it would be in windows? THX!!!!!

Source Audio's icon

I don't have windows machine at hand at the moment,
but You can get similar result using ipconfig and other tools.
I will have time and option to check it next week...

Source Audio's icon

From memory :

wmic bios get serialnumber