>Usage
This command provides detailed information about your Mac's hardware, software, and network configuration. It generates reports on various aspects of the system, such as CPU, memory, graphics, storage, network connections, and installed applications.
Is able to generate simple text, XML, and JSON reports.
>Synopsis
>Options
-listDatatypes
Generates a list with all data types available for you to obtain relevant information on.
Example 1:
-zsh
>system_profiler -listDatatypes
Available Datatypes: SPParallelATADataType SPUniversalAccessDataType SPSecureElementDataType SPApplicationsDataType SPAudioDataType SPBluetoothDataType SPCameraDataType SPCardReaderDataType SPiBridgeDataType SPDeveloperToolsDataType SPDiagnosticsDataType SPDisabledSoftwareDataType SPDiscBurningDataType SPEthernetDataType SPExtensionsDataType SPFibreChannelDataType SPFireWireDataType SPFirewallDataType SPFontsDataType SPFrameworksDataType SPDisplaysDataType SPHardwareDataType SPInstallHistoryDataType SPInternationalDataType SPLegacySoftwareDataType SPNetworkLocationDataType, ...
-detailLevel [level]
Allows you to choose the detail level for the report between mini, basic, full
Example 2:
-zsh
>system_profiler -detailLevel basic SPAudioDataType
Audio:
Devices:
MacBook Pro Microphone:
Default Input Device: Yes
Input Channels: 1
Manufacturer: Apple Inc.
Current SampleRate: 48000
Transport: Built-in
Input Source: MacBook Pro Microphone
MacBook Pro Speakers:
Default Output Device: Yes
Default System Output Device: Yes
Manufacturer: Apple Inc.
Output Channels: 2, ...
-json
Displays the report in json format
Example 3:
-zsh
>system_profiler -detailLevel mini -json SPAudioDataType
{
"SPAudioDataType" : [
{
"_items" : [
{
"_name" : "MacBook Pro Microphone",
"coreaudio_default_audio_input_device" : "spaudio_yes",
"coreaudio_device_input" : 1,
"coreaudio_device_manufacturer" : "Apple Inc.",
"coreaudio_device_srate" : 48000,
"coreaudio_device_transport" : "coreaudio_device_type_builtin",
"coreaudio_input_source" : "MacBook Pro Microphone"
}, ...
-xml
Displays the report in xml format
Example 4:
-zsh
>system_profiler -detailLevel mini -xml SPAudioDataType
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>_SPCommandLineArguments</key>
<array>
<string>/usr/sbin/system_profiler</string>
<string>-nospawn</string>
<string>-xml</string>
<string>SPAudioDataType</string>
<string>-detailLevel</string>
<string>full</string>
</array>, ...