CADAC

SRB Client Settings

Step 0: Remote or Local?

When adding data to the CADAC data archive, the final step is to put—like FTP—the data into the SRB. However, you must decide whether you want to do that remotely, or move your data to DataStar first. Accessing the SRB remotely makes adding data a one-step process, but you must install an SRB client. Moving the data to DataStar first, allows you to use your preferred file transfer method, but then you have to put the data into the SRB.

If you choose to use a remote client, this page assumes that you already have the SRB Scommands installed. Compiled binaries are available for OS X and Windows, users of POSIX operating systems (Unix, Linux, etc.) will need to compile the clients. If you are using another SRB client, such as inQ, the concepts are the same.

Step 1: Check Client Path

Make sure that the SRB client is in your path.

$ which Sinit
/usr/local/apps/srb/SRB.v.3.3.1/Sinit

On DataStar

If it is not found, add /usr/local/apps/srb/SRB.v.3.3.1 to your path.

For the bash shell, edit your ~/.bash_profile, and add

export PATH=$PATH:/usr/local/apps/srb/SRB.v.3.3.1

If you're using csh or tcsh, then edit your .cshrc file and add

set path = ( $path /usr/local/apps/srb/SRB.v.3.3.1 )

Remote Users

Following the same steps as if you were on DataStar, replacing /usr/local/apps/srb/SRB.v.3.3.1 with the location of the Scommands on you machine.

Step 2: Copy Settings

Create a .srb directory in your home directory

$ mkdir ~/.srb

Copy the sample settings file into the .srb directory as a hidden file.

On DataStar

$ cd /gpfs-wan/projects/cadac/software/doc
$ cp cadacMdasEnv ~/.srb/.MdasEnv

Remote Users

The simplest way to get the settings from DataStar is to scp or sftp the configuration to your local machine.

$ sftp -l sdscUserName dslogin.sdsc.edu
Connecting to dslogin.sdsc.edu...
sftp> cd /gpfs-wan/projects/cadac/software/doc
sftp> get cadacMdasEnv
sftp> bye
$ cp cadacMdaEnv ~/.srb/.MdasEnv

Step 3: Change the Settings

Edit the ~/.srb/.MdasEnv file, replacing 'your_srb_name' with your actual SRB user name on the lines:

srbUser 'your_srb_name' 
mdasCollectionHome '/home/your_srb_name.cadac'

Step 4: Add Your Password

Note: you will only need to configure and encrypt your password once. After that, it will be read automatically when you initialize an SRB session.

Create a ~/.srb/.MdasAuth file with your SRB password. You can do this using echo:

$ echo 'my_srb_password' > ~/.srb/.MdasAuth

Step 5: Connect

Connect to the SRB

$ Sinit

If this fails, don't go any further! Retrace your steps, and if needed, get help.

Step 6: Create an Encrypted Password File

Use Sauth to create an encrypted password file. Depending on what version of the SRB client your using, you may need to tell it your SRB password. when prompted, say 'yes' to remove the unencrypted password file.

$ Sauth
Enter your current SRB password:
Successfully wrote /users/ucsd/ux455215/.srb/.srbAuthFile
Remove (no longer needed) /users/ucsd/ux455215/.srb/.MdasAuth?:yes

Step 7: Done

Time to add some data!