You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Client Admin

The client admin tools allow a user to do some file/directory operations in Xrootd: stat, rm, mkdir, checksum,.....

There are different tools:

  • xrdcmd (xrd.pl)
  • xrdls
  • xrd

xrdcmd Client admin tools

xrdcmd is wrapped around xrd.pl. It sets up the environment (LD_LIBRARY_PATH and PERL5LIB), If this environment is set by other means one could call xrd.pl instead of xrdcmd.

xrdcmd implements currently only a subset of all client admin tools.  The location of the script is:

    ~glastdat/bin/xrdcmd 

To get more information run :  ~glastdat/bin/xrdcmd -h

Examples> xrdcmd -s glast-rdr stat /glast/wilko/f1
size 37 onDisk 1 flags 48 modTime 1178659009 Tue May 8 14:16:49 2007 /glast/wilko/f1

> xrdcmd -s sulky48 dir /glast/mc
DC2
ServiceChallenge
junk

xrdls ls like

Xrootd does not provide the directory listing (ls) semantics as a file system does.

The xrdls is a command line tool that (by default) connects to all glast data servers and list
the directory content for each server.
It is implemented by using the standard unix ls command together with the xrootd preload library

> xrdls  /glast/mc
==listing from server sulky02
ServiceChallenge  TonyTest  junk
==listing from server sulky47
DC2  ServiceChallenge  junk
==listing from server sulky48
DC2  ServiceChallenge  TonyTest  junk
>xrdls -l /glast/mc

==listing from server sulky02
total 4
drwx------    1 wilko    ec           1536 Aug  2 15:38 ServiceChallenge
drwx------    1 wilko    ec            512 Jun 17 13:39 TonyTest
drwx------    1 wilko    ec            512 May 15 16:36 junk
==listing from server sulky47
total 3
drwx------    1 wilko    ec            512 Jan  8  2007 DC2
drwx------    1 wilko    ec            512 May  3 09:54 ServiceChallenge
drwx------    1 wilko    ec            512 Feb 28 09:13 junk
==listing from server sulky48
total 5
drwx------    1 wilko    ec            512 Jan  8  2007 DC2
drwx------    1 wilko    ec           1536 Jul 27 17:28 ServiceChallenge
drwx------    1 wilko    ec            512 Jun 17 13:39 TonyTest
drwx------    1 wilko    ec            512 May 16 18:15 junk
  • No labels