Mondoo Docs

Results of running a command on the system

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

Operating System

Results of running a command on the system

Use MQL in cnspec shell or policy:

command
Min version: 5.15.0

Relationships

Mini Map
Operating System
2 resources · 0 relationshipsClick to select, expand fields to see properties.

Fields (4)

FieldTypeDescription
commandrequired
stringRaw contents of the command
exitcode
intExit code the command returned
stderr
stringStandard error output from running the command
stdout
stringStandard output from running the command