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 @MYDATA --name custom_attr
@> lsxattr @MYDATA/file1 --name custom_attrExample 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 @MYDATA/file1 --name binary_attr --bin-value-file /home/user/bin-val-out.dat
Parent topic: Extended Attribute Management