Report system hardware and software configuration.
# To display a report with specific details level (mini [no personal information], basic or full):
system_profiler -detailLevel <level>
# To display a full system profiler report which can be opened by 'System Profiler.app':
system_profiler -xml > MyReport.spx
# To display a hardware overview (Model, CPU, Memory, Serial, etc) and software data (System, Kernel, Name, Uptime, etc):
system_profiler SPHardwareDataType SPSoftwareDataType
# To print the system serial number:
system_profiler SPHardwareDataType|grep "Serial Number (system)" | awk '{ print $4 }'