wiki:Trac/Doc/Auger/Informatique/SimDb/Tutorial

Mini tutorial sur SimDb et Srb

# # Tutorial sur SRB # #

A faire une seule fois sur une machine du LaL

1 configuration de l'environnement pour SimDb:

source /exp/auger/AugerSoft/AugerDb/augerdb_env.csh (pour Srb Config)

2 Quelle commande donne la version de SimDb

which SdbVersion

affiche le numero de version de SimDb

SdbVersion

3 configuration de SRB (mot de passe de Lyon necessaire)

srbConfigure.sh auger dagoret

A faire une seule fois par session sur une machine du LaL :

configuration de SRB

source /exp/auger/AugerSoft/Srb/srb_env.csh

recapitulatif des commandes Srb

Shelp

help en ligne de Srb :

Sman exemple Sman Sget

initialisation de Srb :

Sinit

affiche le résultat de Sinit

Senv

Sls -> affiche la liste des fichiers Scd -> change de directory Srb

Sls Sls /Simulations Sls /Simulations/libraries Sls /Simulations/libraries/zha.ccin2p3 Sls /Simulations/libraries/zha.ccin2p3/MinZha2004 Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6 Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6/t10

lister tous les fichiers

DAT*.part (noter la presence de l'anti-slash pour eviter l'interpretation du * localement) Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6/t10/DAT\*.part

recuperation des fichiers

Sget /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6/t10/DAT005779.part .

consulte le contenu d'un fichier

Scat /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6/t10/DAT005779.xml

pour sortir de la connection avec Srb

Sexit

Resultats de Shelp

  • Sannotate Annotate SRB Objects and display annotations
  • Sappend Appends a local file, standard in, or a SRB object to a target SRB object
  • Sattrs Display meta attributes used in conditions
  • Sauth Create an SRB password file with scrambled contents
  • Sbkupsrb Backup/synchronize srb data/collection to a target resource
  • Sbload Imports in bulk one or more local files and/or directories into SRB space
  • Sbregister Registers in bulk one or more local files into SRB space
  • Sbunload Exports in bulk a collection or a SRB container to local file system
  • Scat Streams SRB Objects to standard output
  • Scd Changes working SRB collection
  • Schdefres Changes default resource for the current session.
  • Schhost Changes connection host for the current session.
  • Schksum Performs checksum on existing SRB objects and stores them in the MCAT
  • Schmod Modify access permissions for SRB objects and collections
  • Sconvert convert an image or sequence of images. Needs ImageMagick at server-side
  • Scp Copies an object to a new collection in SRB space
  • SdelValue Admin command to delete SRB tokens such as users, location, etc
  • Senv Displays environmental file content
  • Serror Display Error Information from Error Number
  • Sexit Clears environmental files created during SRB operation
  • Sget Exports SRB objects into local file system
  • SgetColl Displays information about SRB collections
  • SgetD Displays information about SRB files (objects)
  • SgetR Displays information about SRB resources
  • SgetT Displays information about SRB tickets
  • SgetU Displays information about SRB users
  • Shelp Displays one-line help messages for all Scommands
  • Singestgroup Adds a group user account
  • Singesttoken Adds SRB native metadata types (reserved keywords)
  • Singestuser Register a new user into SRB space
  • Sinit Initializes environmental files for SRB operation
  • Sln Soft link SRB files in other collections
  • Sls Lists SRB objects and collections
  • Slscont Lists SRB containers
  • Smeta Displays and ingests meta data values
  • Smkcont Creates a new SRB container
  • Smkdir Creates a new SRB collection
  • SmodColl Modifies some system metadata information on SRB collections
  • SmodD Modifies some system metadata information on SRB objects
  • SmodR Modifies some system metadata information on SRB resorces
  • SmodifyUser Modifies some system metadata information on SRB users
  • Smv Changes the collection for objects in SRB space
  • Spasswd Change SRB (Text) Password
  • Spcommand Execute proxy command in SRB
  • Sphymove Moves a SRB object to a new SRB resource
  • Spullmeta Accesses metadata in bulk from MCAT
  • Spushmeta Ingests metadata in bulk into MCAT
  • Sput Imports local files into SRB space
  • Spwd Displays current working SRB collection
  • Squery query metadata to find objects in SRB
  • Sregister Registers an object as a SRB object in MCAT
  • Sregisterlocation Register a Resource location in MCAT
  • Sregisterresource Register a Physical Resource in MCAT
  • Sreplcont Replicates an existing SRB Container
  • Sreplicate Replicates an existing SRB object in a (possibly) new resource
  • Srm Removes SRB objects
  • Srmcont Removes SRB container
  • Srmdir Removes an existing SRB collection
  • Srmticket Remove a ticket
  • Srmtrash Purge SRB objects and sub-collections in the "trash" collection
  • Srsync Synchronize files in the local file system and the copy stored in SRB
  • Ssh executes Scommands in a shell type environment
  • Sstage Stage an SRB object stored in Sun's SamFs-type resources from offline to online. not applicable to -other storage systems
  • Ssyncd Synchronizes copies of an SRB object
  • Ssyncont Synchronize SRB containers
  • Stcat Streams ticketed SRB Objects to standard output
  • Sticket Issue tickets for SRB objects and collections
  • Stls Lists ticketed SRB objects and collections
  • Stoken Displays information about SRB-aware types.
  • Sufmeta Query,insert,delete user-defined metadata for SRB data/collection/user,resources
  • Szone Insert, delete and modify Zone and Zone information
  • srbpget Exports SRB objects into local file system with client driven threads
  • srbpput Imports local files into SRB space with client driven threads
Last modified 17 years ago Last modified on Jul 9, 2007, 1:49:26 PM