Skip to main content

Get

Get memory usage from the target node:

$ osapi client node memory get

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

MEMORY
19 GB used / 31 GB total / 10 GB free

When targeting all hosts:

$ osapi client node memory get --target _all

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

HOSTNAME MEMORY
server1 19 GB used / 31 GB total / 10 GB free
server2 8 GB used / 16 GB total / 7 GB free

When some hosts fail or are skipped:

$ osapi client node memory get --target _all

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

HOSTNAME STATUS MEMORY ERROR
server1 ok 19 GB used / 31 GB total / 10 GB free
server2 skipped unsupported platform

Target by label to query a group of servers:

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

Flags

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