7.2.18 xattr

List and modify extended attributes for files and vaults.

Syntax

xattr { -a | --add } name xname xval 
      [{ -w | --wallet } wallet-location ] [{ -T | --trace } trace-level ]
xattr { -d | --delete } name xname 
      [{ -w | --wallet } wallet-location ] [{ -T | --trace } trace-level ]
xattr { -l | --list } name [ -v | --verbose ] [ -u | --unlimited ] 
      [{ -w | --wallet } wallet-location ] [{ -T | --trace } trace-level ]

Command Options

The options for the xattr command are:

  • name: Specifies the file or vault that is the subject of the command.

  • xname: Specifies the name of the extended attribute that is the subject of the command.

  • xval: Specifies the value of the extended attribute.

  • -a, --add: Adds (or updates) an extended attribute to the specified file or vault.

  • -d, --delete: Deletes an extended attribute from the specified file or vault.

  • -l, --list: Displays extended attributes associated with the specified file or vault.

  • -v, --verbose: Displays extended attributes with size information.

  • -u, --unlimited: Displays complete extended attribute values. If not specified, the output of extended attribute values is limited to 80 characters.

  • -w, --wallet: Optionally specifies the path to the Exascale wallet directory.

  • -T, --trace: Optionally enables tracing and sets the trace level to 1 (minimum tracing), 2 (medium tracing), or 3 (maximum tracing).

    If the $ADR_BASE environment variable is set, the trace file is written to:

    $ADR_BASE/diag/EXC/xsh_<username>/<hostname>/trace/xsh_<date>.trc

    Otherwise, the trace file is written to:

    /tmp/diag/EXC/xsh_<username>/<hostname>/trace/xsh_<date>.trc