Skip to content

Commit 7cd2443

Browse files
authored
Switch the query packs to use the network.interfaces resource (#6025)
1 parent bf8498c commit 7cd2443

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

content/mondoo-linux-inventory.mql.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ packs:
9696
mql: services.where(running == true) { name running enabled masked type }
9797
- uid: mondoo-linux-interface-configuration
9898
title: Network interface configuration
99-
filters: mondoo.capabilities.contains("run-command")
100-
mql: |
101-
parse.json(content: command('ip -j a').stdout).params
99+
mql: network.interfaces{*}
102100
- uid: mondoo-sshd-interface-configuration
103101
title: sshd configuration
104102
filters: package('openssh-server').installed || package('openssh').installed

content/mondoo-macos-inventory.mql.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ packs:
102102
mql: ports.where(state != "close") { user state port address protocol process remoteAddress remotePort }
103103
- uid: mondoo-macos-interface-configuration
104104
title: Network interface configuration
105-
filters: mondoo.capabilities.contains("run-command")
106-
mql: command("ifconfig").stdout
105+
mql: network.interfaces{*}
107106
- uid: mondoo-macos-sshd-interface-configuration
108107
title: sshd configuration
109108
mql: sshd.config.params

content/mondoo-windows-inventory.mql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ packs:
7777
mql: ports.where(state != "close") { user state port address protocol process remoteAddress remotePort }
7878
- uid: mondoo-windows-interface-configuration
7979
title: Network interfaces
80-
mql: windows.computerInfo['CsNetworkAdapters']
80+
mql: network.interfaces{*}
8181
- uid: mondoo-windows-computer-info
8282
title: Windows Computer/ System information
8383
mql: windows.computerInfo

0 commit comments

Comments
 (0)