File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,16 @@ packs:
109109 mql : machine.baseboard.product
110110 - uid : mondoo-linux-cpu-type
111111 title : CPU type
112+ filters : mondoo.capabilities.contains("run-command")
112113 mql : |
113- file("/proc/cpuinfo").content.lines.where(_.contains("model name")).first().split(":").last().trim()
114+ if (asset.arch == /aarch/) {
115+ command("lscpu").stdout.lines.where(_.contains("Model name")).first().split(":").last().trim()
116+ } else {
117+ file("/proc/cpuinfo").content.lines.where(_.contains("model name")).first().split(":").last().trim()
118+ }
114119 - uid : mondoo-linux-root-volume
115120 title : Root volume size and filesystem type
121+ filters : mondoo.capabilities.contains("run-command")
116122 mql : |
117123 command("df -TH / | awk '{ print $3 "+'" "'+" $2 }'").stdout.trim
118124 - uid : mondoo-linux-physical-memory
You can’t perform that action at this time.
0 commit comments