Novell Home

Display netware.metadata File Attribute with xattr APIs

Novell Cool Solutions: Cool Tool

Digg This - Slashdot This

In Brief

Retrieve and display the data kept in the NetWare.metadata extended attribute on an NSS file on a Linux server.

Vitals

Product Categories:
  • Open Enterprise Server
  • Posted:1 Dec 2006
    File Size:10KB
    License:Free
    Download:/coolsolutions/tools/downloads/getxattrs
    Publisher:Dean Giles

    Disclaimer

    Please read the note from our friends in legal before using this file.


    Details

    This is a tool that retrieves and displays the data kept in the netware.metadata extended attribute on an NSS file on a Linux server. The utility was designed to help developers use the getxattr API with NSS volumes. The ability for OES servers to use the getxattr() API for NSS volumes has been added to SLES 9 OES1 SP2 with the following patches and parameters:

    • For the this Utility to work on SLES 9 OES1 SP2 the kernel needs to be at the 282 (2.6.5-7.282).
    It also requires the following patches:
    • km-nss-4.9.26-0.1.i586.rpm
    • novell-nss-4.9.23-1.i586.rpm
    • novell-sms-zapishim-2.6.5_7.282-1.0.5.i586.rpm

    NSS must be installed and running.

    • The following parameters must be set from NSSCON
      • NSS /ListXattrNWMetadata
      • NSS /CtimeISMetadataModTime

    How to Use the file:

    From a terminal type:
    getxattrs path/fileName.ext <enter>
    Where path/fileName.ext is the name of an NSS file that exists on an NSS volume on a Linux Server.

    Example: getxattrs /VOL1/file.txt <enter>

    Sample output:

    grep57:/xattr # ./getxattrs /media/nss/NSS1/file.txt
    The file /media/nss/NSS1/file.txt has the extended attribute(s) netware.metadata (the string takes up 17 bytes).
    There are 192 byts of data in the netware.metadata extended attribute(s).
    
    A dump of the extended attribute netware.metadata is the following:
    ffffffff fffffffe 00000001 00000000 00000000 00000000 00000000 00000000 ffffffef 00000003 00000000 0000001a
    00000000 00000000 00000000 00000000 00000028 00000000 00000000 00000040 00000000 00000000 00000000 00000000
    ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffdd 0000006c 00000063 00000045
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    ffffffc4 0000006c 00000063 00000045 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 ffffff8d ffffff87 00000063 00000045 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001
    ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 0000007f ffffffff ffffffff ffffffff ffffffff
    00000001 00000000 00000000 00000000 ffffffe0 00000045 00000044 0000006c ffffffa5 00000079 ffffffdb 00000001
    ffffff80 fffffffd 00000000 00000014 00000022 00000032 ffffff8d ffffff9d 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

    Source Code

    Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

    © 2014 Novell