Home » Under Development » Storage Resource Broker Documentation

Contents

Setting up your environment correctly - by Rob Newman

1. You need to create new directory called '.srb' at your top-level and create two files called '.MdasEnv' and '.MdasAuth' in that directory.

2. The .MdasEnv files should have the following info:

mdasCollectionHome '/home/<yoursrbusername>.<yoursrbdomainname>'
mdasDomainHome '<yoursrbdomainname>'
srbUser '<yoursrbusername>'
srbHost 'srb.sdsc.edu'
defaultResource '<defaultsrbresourcename>'

The .MdasAuth file should have only one line with your SRB password.

Installing the S-commands - by Rob Newman

1. Download the latest version of the srb software. If you don't need the server and client side software, just the Scommands, you will need version 2.1.2. This is available at: http://www.npaci.edu/DICE/SRB/tarfiles/main2.0.html

2. You have two choices of source code encryption, either OpenSSL or PGP. You will need to decrypt one of the formats you downloaded - I chose to download the OpenSSL version as I already had openssl preinstalled on my Mac OS X machine (Panther 10.3.2).

3. Once you have downloaded the source code, follow the decryption instructions on the webpage. For OpenSSL, this was the following:

openssl enc -d -bf-cbc -in SRB2.1.2rel_bf.tar -out SRB2.1.2.tar

4. Once I executed this command, I was asked for a password. You will need to get this from the sysadmin who looks after your srb directory. The SIO-centric srb is maintained by Sheau-Yen Chen.

5. Now you will need to configure the client (S-commands):

hostname% ./configure

6. Now you need to compile the software, so run either gmake or make:

hostname% make clean
hostname% make

7. If this doesn't throw any errors then you are done!! If it does throw errors, send them to Sheau-Yen Chen. Now you should have all the Scommand utilities installed in utilities/bin.

hostname% ls utilities/bin/
total 94M
.do-not-prune
CVS/
Sannotate*
Sappend*
Sattrs*
Sbload*
Sbregister*
Sbunload*
Scat*
Scd*
Schmod*
Scp*
Senv*
Serror*
Sexit*
Sget*
Sget.pl*
SgetColl*
SgetD*
SgetR*
SgetT*
SgetU*
Shelp*
Singestuser*
Sinit*
Sls*
Slscont*
Smeta*
Smkcont*
Smkdir*
SmodColl*
SmodD*
Smv*
Spasswd*
Spcommand*
Sphymove*
Sput*
Sput.pl*
Spwd*
Sregister*
Sreplcont*
Sreplicate*
Srm*
Srmcont*
Srmdir*
Srmticket*
Ssfstage*
Ssyncd*
Ssyncont*
Stcat*
Sticket*
Stls*
Stoken*
Sufmeta*
metaFile
srbparget*
srbpget*
srbpput*

9. Now you are ready to go! Just one more thing - you will need to add the Scommands bin directory to your PATH in your shell configuration file:

setenv PATH /your/path/to/SRB2.1.2/utilities/bin:$PATH

Using the Scommands; a Simple Session - by Rob Newman

Here is an example of a simple Scommand session:

hostname% Sinit -v
Client Release = SRB-2.1.2, API version = D. Using Port ****
Server Release = SRB-2.1.2, API version = D.
hostname% Sls -l
/home/rnewman.sio:
hostname% Sexit
hostname%

Last updated: 2008-07-31 18:40:40 UTC