6.2.11.2 lsxattr

List an extended attribute for a file or vault.

Purpose

The lsxattr command displays information about non-standard attributes created for Exascale files and vaults.

Syntax

lsxattr { file-name | vault-name } --name attribute-name 
        [ --bin-value-file file-name ] 

Command Options

The options for the lsxattr command are:

  • { file-name | vault-name }: Specifies the name of the file or vault for which you want to list the specified extended attribute value.

  • --name: Specifies the name of the extended attribute.

  • --bin-value-file: Specifies the file where you want to write the value of the extended attribute.

Usage Notes

If you do not specify the --bin-value-file option, binary values are output in Base64 format.

Examples

Example 6-146 List an Extended Attribute

You can use the following commands to list the custom-attr extended attribute.

@> lsxattr @my-data --name custom-attr
@> lsxattr @my-data/file1 --name custom-attr

Example 6-147 List a Binary Extended Attribute

You can use the following commands to list the binary-attr extended attribute and write the binary value to a regular file at /home/user/bin-val-out.dat.

@> lsxattr @my-data/file1 --name binary-attr --bin-value-file /home/user/bin-val-out.dat