This section explains how to use the qq fs_file_get_attr command.

For more information, see How File Locks Work in Qumulo Core in the Qumulo Administrator Guide.

Examples

To Retrieve the Lock Status for a File

Run the fs_file_get_attr command, specify the path to the file, and use the --retrieve-file-lock flag. For example:

qq fs_file_get_attr \
  --path /path-to/my-file \
  --retrieve-file-lock

The following is example output.

{
  "legal_hold": true,
  "retention_period": "2024-09-15T23:41:40Z"
}

Description

Get file attributes

Usage

qq fs_file_get_attr [-h] (--path PATH | --id ID) [--snapshot SNAPSHOT] [--retrieve-file-lock] [--stream-id STREAM_ID | --stream-name STREAM_NAME]

Flags

Flag Name Required Description
--path No File path
--id No File ID
--snapshot No Snapshot ID to read from
--retrieve-file-lock No Retrieve the file lock for this file. Optional because it requires READ_ACL
--stream-id No Stream ID
--stream-name No Stream name