mc stat

Displays object meta data .

Syntax

CLI
mc stat [FLAGS] TARGET [TARGET ...]

FLAGS:
  --versions                       stat all versions
  --version-id value, --vid value  stat a specific object version
  --recursive, -r                  stat all objects recursively
  --json                           enable JSON lines formatted output
  --debug                          enable debug output
  --insecure                       disable SSL certificate verification
  --help, -h                       show help

Parameters

Parameter Description
TARGET The alias of a configured HPE Ezmeral Object Store deployment from which the command displays object meta data. This parameter is mandatory.
versions Display meta data for all versions of objects.
version-id Display meta data for the specified version of the object.
recursive Display meta data for all objects from all folders and not just the top level folder.
json Enable JSON formatted output.
debug Enable output for debugging.
insecure Disable SSL verification.
help Show this help.

Examples

  1. Display object meta data for top level objects in bucket mybucket in the Object Store deployment with alias salesobject:
    CLI
    /opt/mapr/bin/mc stat salesobject/mybucket
  2. Display object meta data for an object with specific version CL3sWgdSN2pNntSf6UnZAuh2kcu8E8si in bucket mybucket in the Object Store deployment with alias salesobject:
    CLI
    /opt/mapr/bin/mc stat --version-id "CL3sWgdSN2pNntSf6UnZAuh2kcu8E8si" salesobject/mybucket
  3. Display object meta data for all objects recursively in bucket mybucket in the Object Store deployment with alias salesobject:
    CLI
    /opt/mapr/bin/mc stat --recursive salesobject/mybucket