| | 1 | = Mini tutorial sur SimDb et Srb = |
| | 2 | [[TOC]] |
| | 3 | |
| | 4 | # |
| | 5 | # Tutorial sur SRB |
| | 6 | # |
| | 7 | # |
| | 8 | |
| | 9 | |
| | 10 | == A faire une seule fois sur une machine du LaL == |
| | 11 | |
| | 12 | === 1 configuration de l'environnement pour SimDb: === |
| | 13 | source /exp/auger/AugerSoft/AugerDb/augerdb_env.csh (pour Srb Config) |
| | 14 | |
| | 15 | === 2 Quelle commande donne la version de SimDb === |
| | 16 | which SdbVersion |
| | 17 | |
| | 18 | === affiche le numero de version de SimDb === |
| | 19 | SdbVersion |
| | 20 | |
| | 21 | === 3 configuration de SRB (mot de passe de Lyon necessaire) === |
| | 22 | srbConfigure.sh auger dagoret |
| | 23 | |
| | 24 | |
| | 25 | |
| | 26 | == A faire une seule fois par session sur une machine du LaL :== |
| | 27 | |
| | 28 | |
| | 29 | === configuration de SRB === |
| | 30 | source /exp/auger/AugerSoft/Srb/srb_env.csh |
| | 31 | |
| | 32 | === recapitulatif des commandes Srb === |
| | 33 | Shelp |
| | 34 | |
| | 35 | === help en ligne de Srb : === |
| | 36 | Sman |
| | 37 | exemple Sman Sget |
| | 38 | |
| | 39 | === initialisation de Srb : === |
| | 40 | Sinit |
| | 41 | |
| | 42 | |
| | 43 | === affiche le résultat de Sinit === |
| | 44 | Senv |
| | 45 | |
| | 46 | === Navigation dans Srb === |
| | 47 | Sls -> affiche la liste des fichiers |
| | 48 | Scd -> change de directory Srb |
| | 49 | |
| | 50 | Sls |
| | 51 | Sls /Simulations |
| | 52 | Sls /Simulations/libraries |
| | 53 | Sls /Simulations/libraries/zha.ccin2p3 |
| | 54 | Sls /Simulations/libraries/zha.ccin2p3/MinZha2004 |
| | 55 | Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika |
| | 56 | Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll |
| | 57 | Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton |
| | 58 | Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6 |
| | 59 | Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6/t10 |
| | 60 | |
| | 61 | === lister tous les fichiers === |
| | 62 | DAT*.part (noter la presence de l'anti-slash pour eviter l'interpretation du * localement) |
| | 63 | Sls /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6/t10/DAT\*.part |
| | 64 | |
| | 65 | |
| | 66 | |
| | 67 | === recuperation des fichiers === |
| | 68 | Sget /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6/t10/DAT005779.part . |
| | 69 | |
| | 70 | === consulte le contenu d'un fichier === |
| | 71 | Scat /Simulations/libraries/zha.ccin2p3/MinZha2004/corsika/sibyll/proton/e18.6/t10/DAT005779.xml |
| | 72 | |
| | 73 | === pour sortir de la connection avec Srb=== |
| | 74 | Sexit |
| | 75 | |
| | 76 | |
| | 77 | |
| | 78 | == Resultats de Shelp == |
| | 79 | |
| | 80 | |
| | 81 | Sannotate - Annotate SRB Objects and display annotations |
| | 82 | Sappend - Appends a local file, standard in, or a SRB object to a target SRB object |
| | 83 | Sattrs - Display meta attributes used in conditions |
| | 84 | Sauth - Create an SRB password file with scrambled contents |
| | 85 | Sbkupsrb - Backup/synchronize srb data/collection to a target resource |
| | 86 | Sbload - Imports in bulk one or more local files and/or directories into SRB space |
| | 87 | Sbregister - Registers in bulk one or more local files into SRB space |
| | 88 | Sbunload - Exports in bulk a collection or a SRB container to local file system |
| | 89 | Scat - Streams SRB Objects to standard output |
| | 90 | Scd - Changes working SRB collection |
| | 91 | Schdefres - Changes default resource for the current session. |
| | 92 | Schhost - Changes connection host for the current session. |
| | 93 | Schksum - Performs checksum on existing SRB objects and stores them in the MCAT |
| | 94 | Schmod - Modify access permissions for SRB objects and collections |
| | 95 | Sconvert - convert an image or sequence of images. Needs ImageMagick at server-side |
| | 96 | Scp - Copies an object to a new collection in SRB space |
| | 97 | SdelValue - Admin command to delete SRB tokens such as users, location, etc |
| | 98 | Senv - Displays environmental file content |
| | 99 | Serror - Display Error Information from Error Number |
| | 100 | Sexit - Clears environmental files created during SRB operation |
| | 101 | Sget - Exports SRB objects into local file system |
| | 102 | SgetColl - Displays information about SRB collections |
| | 103 | SgetD - Displays information about SRB files (objects) |
| | 104 | SgetR - Displays information about SRB resources |
| | 105 | SgetT - Displays information about SRB tickets |
| | 106 | SgetU - Displays information about SRB users |
| | 107 | Shelp - Displays one-line help messages for all Scommands |
| | 108 | Singestgroup - Adds a group user account |
| | 109 | Singesttoken - Adds SRB native metadata types (reserved keywords) |
| | 110 | Singestuser- Register a new user into SRB space |
| | 111 | Sinit - Initializes environmental files for SRB operation |
| | 112 | Sln - Soft link SRB files in other collections |
| | 113 | Sls - Lists SRB objects and collections |
| | 114 | Slscont - Lists SRB containers |
| | 115 | Smeta - Displays and ingests meta data values |
| | 116 | Smkcont - Creates a new SRB container |
| | 117 | Smkdir - Creates a new SRB collection |
| | 118 | SmodColl - Modifies some system metadata information on SRB collections |
| | 119 | SmodD - Modifies some system metadata information on SRB objects |
| | 120 | SmodR - Modifies some system metadata information on SRB resorces |
| | 121 | SmodifyUser- Modifies some system metadata information on SRB users |
| | 122 | Smv - Changes the collection for objects in SRB space |
| | 123 | Spasswd - Change SRB (Text) Password |
| | 124 | Spcommand - Execute proxy command in SRB |
| | 125 | Sphymove - Moves a SRB object to a new SRB resource |
| | 126 | Spullmeta - Accesses metadata in bulk from MCAT |
| | 127 | Spushmeta - Ingests metadata in bulk into MCAT |
| | 128 | Sput - Imports local files into SRB space |
| | 129 | Spwd - Displays current working SRB collection |
| | 130 | Squery - query metadata to find objects in SRB |
| | 131 | Sregister - Registers an object as a SRB object in MCAT |
| | 132 | Sregisterlocation - Register a Resource location in MCAT |
| | 133 | Sregisterresource - Register a Physical Resource in MCAT |
| | 134 | Sreplcont - Replicates an existing SRB Container |
| | 135 | Sreplicate - Replicates an existing SRB object in a (possibly) new resource |
| | 136 | Srm - Removes SRB objects |
| | 137 | Srmcont - Removes SRB container |
| | 138 | Srmdir - Removes an existing SRB collection |
| | 139 | Srmticket - Remove a ticket |
| | 140 | Srmtrash - Purge SRB objects and sub-collections in the "trash" collection |
| | 141 | Srsync - Synchronize files in the local file system and the copy stored in SRB |
| | 142 | Ssh - executes Scommands in a shell type environment |
| | 143 | Sstage - Stage an SRB object stored in Sun's SamFs-type resources from offline to online. not applicable to other storage systems |
| | 144 | Ssyncd - Synchronizes copies of an SRB object |
| | 145 | Ssyncont - Synchronize SRB containers |
| | 146 | Stcat - Streams ticketed SRB Objects to standard output |
| | 147 | Sticket - Issue tickets for SRB objects and collections |
| | 148 | Stls - Lists ticketed SRB objects and collections |
| | 149 | Stoken - Displays information about SRB-aware types. |
| | 150 | Sufmeta - Query,insert,delete user-defined metadata for SRB data/collection/user,resources |
| | 151 | Szone - Insert, delete and modify Zone and Zone information |
| | 152 | srbpget - Exports SRB objects into local file system with client driven threads |
| | 153 | srbpput - Imports local files into SRB space with client driven threads |
| | 154 | |