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.baseMin version: 6.19.0
Relationships
4 resources · 6 relationships·Click to select, expand fields to see properties.
Fields (17)
| Field | Type | Description |
|---|---|---|
command | os.base.command | Results of running a command on the system |
env | map[string]string | ENV variable contents |
file | os.base.file | File on the system |
group | os.base.group | Group on this system |
groups | groups | User groups |
hostname | string | Hostname for this OS |
machine | machine | - |
name | string | Pretty Hostname on macOS/Linux or device name on Windows |
packages | os.base.packages | List of packages on this system |
path | []string | PATH variable contents |
rebootpending | int | Whether a reboot is pending |
service | os.base.service | Service on this system |
services | os.base.services | Services configured on this system |
updates | []os.update | List of available OS updates |
uptime | time | Current uptime |
user | os.base.user | User on this system |
users | users | Users |