Skip to main content

Get

Get operating system information from the target node:

$ osapi client node os get

Job ID: 550e8400-e29b-41d4-a716-446655440000

DISTRIBUTION VERSION
Ubuntu 24.04

When targeting all hosts:

$ osapi client node os get --target _all

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME DISTRIBUTION VERSION
server1 Ubuntu 24.04
server2 Debian 12

When some hosts fail or are skipped:

$ osapi client node os get --target _all

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME STATUS DISTRIBUTION VERSION ERROR
server1 ok Ubuntu 24.04
server2 skipped unsupported platform

Target by label to query a group of servers:

$ osapi client node os get --target group:web
$ osapi client node os get --target group:web.dev

Flags

FlagDescriptionDefault
-T, --targetTarget: _any, _all, hostname, or label (group:web)_any