system_profiler [-xml|-json] [-detailLevel level]
system_profiler [-xml|-json] dataType1 …dataTypeN
system_profiler [-usage]
system_profiler [-listDataTypes]
Outputs the hardware and software configuration in XML (which can be opened with System Information.app, or JSON
-xml | |||||||||||||||||||||||||||
system_profiler 99,984 lines, 33.48s user 8.89s system 70% cpu 59.944 total
system_profiler -detailLevel mini
system_profiler -listDataTypes
system_profiler SPSoftwareDataType SPNetworkDataType
system_profiler -xml > MyReport.spx
example (big) , takes 15 seconds to generate.