The Chimera Command Line Interface
Examples of writing to Chimera name space via the admin interface
Ls
list directory "/pnfs" in the Chimera name space as you would with unix command
/opt/d-cache/libexec/chimera/chimera-cli.sh Ls /pnfs 40755 3 0 0 512 Thu Apr 15 19:14:52 CEST 2010 . 40755 7 0 0 512 Thu Apr 15 19:14:47 CEST 2010 .. 40755 3 0 0 512 Thu Apr 15 19:14:58 CEST 2010 desy.de Total: 0
Mkdir
Make directory "/pnfs" in the Chimera name space
/opt/d-cache/libexec/chimera/chimera-cli.sh Mkdir //pnfs
Chown
Set Ownership for directory "/pnfs/desy.de/data/dteam" to UID 18118.
/opt/d-cache/libexec/chimera/chimera-cli.sh Chown //pnfs/desy.de/data/dteam 18118
Chgrp
Change group ownership for directory "/pnfs/desy.de/data/dteam" to GID 2688
/opt/d-cache/libexec/chimera/chimera-cli.sh Chgrp //pnfs/desy.de/data/dteam 2688
Chmod
Chmod changes permissions for directory "/pnfs/desy.de/data/dteam" to mode 775 like conventional UNIX files systems.
/opt/d-cache/libexec/chimera/chimera-cli.sh Chmod //pnfs/desy.de/data/dteam 775
Lstag
List "Tags" on a directory, Tags are used by dCache to sort file storage behavior.
/opt/d-cache/libexec/chimera/chimera-cli.sh Lstag //pnfs/desy.de/data/dteam
Writetag
Write the value from STDIN (in this example "STATIC") to the Tag "sGroup" in the directory "/pnfs/desy.de/data/dteam"
echo "STATIC" | /opt/d-cache/libexec/chimera/chimera-cli.sh Writetag /pnfs/desy.de/data/dteam sGroup
Readtag
/opt/d-cache/libexec/chimera/chimera-cli.sh Readtag /pnfs/desy.de/data/dteam OSMTemplate StoreName dteam
