Skip to content

Commit 55d536a

Browse files
authored
🧹 Switch the macOS inventory pack to macos.hardware (#6247)
* Switch the macOS inventory pack to macos.hardware This gathers better data Signed-off-by: Tim Smith <tsmith84@gmail.com> * Update the other queries Signed-off-by: Tim Smith <tsmith84@gmail.com> --------- Signed-off-by: Tim Smith <tsmith84@gmail.com>
1 parent bb184d6 commit 55d536a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/mondoo-macos-inventory.mql.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,27 @@ packs:
4040
- uid: mondoo-macos-machine-model-identifier
4141
title: Machine model identifier
4242
mql: |
43-
parse.json(content: command('system_profiler SPHardwareDataType -json').stdout).params['SPHardwareDataType'].first['machine_model']
43+
macos.hardware.machineModel
4444
- uid: mondoo-macos-machine-model-name
4545
title: Machine model name
4646
mql: |
47-
parse.json(content: command('system_profiler SPHardwareDataType -json').stdout).params['SPHardwareDataType'].first['machine_name']
47+
macos.hardware.machineName
4848
- uid: mondoo-macos-model-part-number
4949
title: Model part number
5050
mql: |
51-
parse.json(content: command('system_profiler SPHardwareDataType -json').stdout).params['SPHardwareDataType'].first['model_number']
51+
macos.hardware.modelNumber
5252
- uid: mondoo-macos-serial-number
5353
title: System serial number
5454
mql: |
55-
parse.json(content: command('system_profiler SPHardwareDataType -json').stdout).params['SPHardwareDataType'].first['serial_number']
55+
macos.hardware.serialNumber
5656
- uid: mondoo-macos-cpu-type
5757
title: CPU type
5858
mql: |
59-
parse.json(content: command('system_profiler SPHardwareDataType -json').stdout).params['SPHardwareDataType'].first['chip_type']
59+
macos.hardware.chipType
6060
- uid: mondoo-macos-physical-memory
6161
title: Physical memory size
6262
mql: |
63-
parse.json(content: command('system_profiler SPHardwareDataType -json').stdout).params['SPHardwareDataType'].first['physical_memory']
63+
macos.hardware.physicalMemory
6464
- uid: mondoo-asset-info
6565
title: Asset information
6666
mql: asset { kind title platform name arch runtime version }
@@ -109,9 +109,9 @@ packs:
109109
- uid: mondoo-macos-recommended-software-updates
110110
title: Recommended software updates
111111
mql: parse.plist('/Library/Preferences/com.apple.SoftwareUpdate.plist').params['RecommendedUpdates']
112-
- uid: mondoo-macos-smbios-system
113-
title: SMBIOS System information
114-
mql: machine.system { sku serial family version product uuid manufacturer }
112+
- uid: mondoo-macos-hardware-information
113+
title: Hardware information
114+
mql: macos.hardware{ machineModel machineName modelNumber chipType serialNumber platformUUID physicalMemory numberProcessors }
115115
- uid: mondoo-macos-storage
116116
title: Storage Data
117117
mql: |

0 commit comments

Comments
 (0)