mc admin node top

The mc admin node top command lists the nodes of a deployment, with an optional filter.

Syntax

The command has the following syntax:

mc admin node top [FLAGS] TARGET

Flags

FlagDescription
--exportExport command as JSON.
--import valueImport command as JSON.
--filter valueFilter commands based on available filters.
--count valueLimit the number of returned results (default: 0).
--start valueStarting index for listing (default: 0).
--sort valueAllows for sorting on field names. Only fields of type (int, string and float) can be sorted.
--sort-reversedReverses the sort order.
--metricsInclude node metrics (load, memory, disk usage) in the output.

Global flags

This command supports any of the global flags.

Examples

Get node list.

mc admin node top myaistor

Export node list.

mc admin node top myaistor --export

Get node list with a filter.

mc admin node top myaistor --filter "PoolIndex = 1"

Get four nodes with a filter, starting at item 2.

mc admin node top myaistor --filter "PoolIndex = 1" --start 2 --count 4

Import node list and apply a filter.

mc admin node top myaistor --import nodes.json --filter "PoolIndex = 1"

Apply sorting.

mc admin node top myaistor --sort "PoolIndex" --sort-reversed

Get node list with metrics (load, memory, disk usage).

mc admin node top myaistor --metrics

Behavior

S3 compatibility

This command uses a MinIO AIStor administrative API and does not work against other S3-compatible services.

On this page