Mondoo Docs

os.base

os.base MQL resource for querying Operating System infrastructure with cnquery and cnspec.

Operating System

Use MQL in cnspec shell or policy:

os.base
Min version: 6.19.0

Relationships

Mini Map
Operating System
4 resources · 6 relationshipsClick to select, expand fields to see properties.

Fields (17)

FieldTypeDescription
command
os.base.commandResults of running a command on the system
env
map[string]stringENV variable contents
file
os.base.fileFile on the system
group
os.base.groupGroup on this system
groups
groupsUser groups
hostname
stringHostname for this OS
machine
machine-
name
stringPretty Hostname on macOS/Linux or device name on Windows
packages
os.base.packagesList of packages on this system
path
[]stringPATH variable contents
rebootpending
intWhether a reboot is pending
service
os.base.serviceService on this system
services
os.base.servicesServices configured on this system
updates
[]os.updateList of available OS updates
uptime
timeCurrent uptime
user
os.base.userUser on this system
users
usersUsers