Get
Get memory usage from the target node:
$ osapi client node memory get
Job ID: 550e8400-e29b-41d4-a716-446655440000
HOSTNAME STATUS MEMORY
web-01 ok 19 GB used / 31 GB total / 10 GB free
1 host: 1 ok
When targeting all hosts:
$ osapi client node memory get --target _all
Job ID: 550e8400-e29b-41d4-a716-446655440000
HOSTNAME STATUS MEMORY
server1 ok 19 GB used / 31 GB total / 10 GB free
server2 ok 8 GB used / 16 GB total / 7 GB free
2 hosts: 2 ok
When some hosts fail or are skipped:
$ osapi client node memory get --target _all
Job ID: 550e8400-e29b-41d4-a716-446655440000
HOSTNAME STATUS MEMORY
server1 ok 19 GB used / 31 GB total / 10 GB free
server2 skip
2 hosts: 1 ok, 1 skipped
Details:
server2 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
| Flag | Description | Default |
|---|---|---|
-T, --target | Target: _any, _all, hostname, or label (group:web) | _any |