Scommands
From SRB
Contents |
Introduction
Scommands are command line utilities that run in the Unix, Windows or Mac OS command shells. Most Scommand names are preceded by an "S". These are Unix-like commands for accessing SRB data and metadata.
Build
The Scommands can be built as a part of the complete SRB Build or as a client oly build http://www.sdsc.edu/srb/tarfiles/SRB3_4_0client.tar which is unencrypted and contains a subset of the SRB3.4.0 release.See the README file for build instructions. After the built, the Scommand executables can be found in the utilitis/bin directory.
Scommands Usage Help
For more detailed information on individual commands, read the Scommands Manpages online or in the $installDir/utilities/man directory of the software release.
Getting started
Setting up the client user environment
Before running any Scommands, the client's User Environment must be set up using the instrustions given in - User Environment.
Simple Examples of Scommands
The following is an example of an SRB session. Standard Unix commands (ls, pwd, cd, etc.) will still work for your local machine during all SRB sessions.
% Sinit [start a new SRB session]
% Smkdir newDir [make an SRB directory "newDir"]
% SgetColl -ahc newDir [display information about "newDir"]
--------------------------- RESULTS ------------------------------ user_name :user access_constraint :all data_grp_name :/home/user.sdsc/newDir -----------------------------------------------------------------
% Scd newDir [change to the SRB "newDir" directory]
% Sput file_for_SRB . [put a local file "file_for_SRB" in "newDir"]
% Sls -l [list SRB "newDir" directory contents]
/home/user.sdsc/newDir: user 0 sdsc-unix-mi 12 2002-04-19-15.37 file_for_SRB
% Scd .. [move up one SRB directory]
% Scp newDir/file_for_SRB . [copy "file_for_SRB" to the new directory]
% Spwd [print SRB working directory]
/home/user.sdsc
% Sls [list SRB home directory contents]
/home/user.sdsc: file_for_SRB C-/home/user.sdsc/newDir
% SgetD file_for_SRB [display information about "file_for_SRB"]
--------------------------- RESULTS ------------------------------ data_name :file_for_SRB data_typ_name :generic path_name :/misc/srb/srb/SRBVault/user.sdsc/48/17/file_for_srb data_grp_name :/home/user.sdsc data_size :12 phy_rsrc_name :sdsc-unix-misc container_name : offset :0 -----------------------------------------------------------------
% [[Sget]] file_for_SRB . [write "file_for_SRB" to local machine]
% Sexit [end SRB session] .
Advanced Users
Advanced Scommands Tips


