system_profiler

reports system hardware and software configuration.

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 use XML format. If redirected to a file with a ".spx" suffix which can be opened with System Information.app.
-json Use JSON format.
-listDataTypes Lists the available datatypes.
 
SPAirPortDataType
SPApplicationsDataType
SPAudioDataType
SPBluetoothDataType
SPCameraDataType
SPCardReaderDataType
SPConfigurationProfileDataType
SPDeveloperToolsDataType
SPDiagnosticsDataType
SPDisabledSoftwareDataType
SPDiscBurningDataType
SPDisplaysDataType
SPEthernetDataType
SPExtensionsDataType
SPFibreChannelDataType
SPFirewallDataType
SPFireWireDataType
SPFontsDataType
SPFrameworksDataType
 
SPHardwareDataType
SPiBridgeDataType
SPInstallHistoryDataType
SPInternationalDataType
SPLegacySoftwareDataType
SPLogsDataType
SPManagedClientDataType
SPMemoryDataType
SPNetworkDataType
SPNetworkLocationDataType
SPNetworkVolumeDataType
SPNVMeDataType
SPParallelATADataType
SPParallelSCSIDataType
SPPCIDataType
SPPowerDataType
SPPrefPaneDataType
SPPrintersDataType
SPPrintersSoftwareDataType
 
SPRawCameraDataType
SPSASDataType
SPSecureElementDataType
SPSerialATADataType
SPSmartCardsDataType
SPSoftwareDataType
SPSPIDataType
SPStartupItemDataType
SPStorageDataType
SPSyncServicesDataType
SPThunderboltDataType
SPUniversalAccessDataType
SPUSBDataType
SPWWANDataType
-detailLevel level
mini no personal information (355 lines)
basic basic hardware and network information 733 lines .0s user .9s system 25% cpu 6.951 total
full all available information 99,984 lines, 33.48s user 8.89s system 70% cpu 59. 944 total
-timeout seconds Seconds to wait before receiving the first data item, NOT entiren report.

Examples

example (big) , takes 15 seconds to generate.