system_profiler

Report system hardware and software configuration. Display a full system…

system_profiler

Report system hardware and software configuration.

system_profiler -xml > MyReport.spx

system_profiler SPHardwareDataType

system_profiler SPHardwareDataType|grep "Serial Number (system)" |awk '{print $4}'

Также может быть вам интересно:
AppleMacOS
← sysctl systemsetup →