Get MAC hardware info from OS-X terminal (command line)

Hardware Overview:


1
system_profiler SPHardwareDataType | awk '/Serial/ {print $4}'

1
system_profiler SPHardwareDataType

1
ioreg -l | grep IOPlatformSerialNumber

Hard drive info:


1
system_profiler SPSerialATADataType