Scommands
From SRB
| Revision as of 23:07, 14 March 2006 Mwan (Talk | contribs) Simple Examples of Scommands ← Previous diff |
Revision as of 23:11, 14 March 2006 Mwan (Talk | contribs) Next diff → |
||
| Line 28: | Line 28: | ||
| % '''[[SgetColl]] -ahc newDir''' [display information about "newDir"] | % '''[[SgetColl]] -ahc newDir''' [display information about "newDir"] | ||
| - | --------------------------- RESULTS ------------------------------ | + | |
| - | user_name :user | + | --------------------------- RESULTS ------------------------------ |
| - | access_constraint :all | + | user_name :user |
| - | data_grp_name :/home/user.sdsc/newDir | + | access_constraint :all |
| - | ----------------------------------------------------------------- | + | data_grp_name :/home/user.sdsc/newDir |
| + | ----------------------------------------------------------------- | ||
| % '''[[Scd]] newDir''' [change to the SRB "newDir" directory] | % '''[[Scd]] newDir''' [change to the SRB "newDir" directory] | ||
| Line 39: | Line 40: | ||
| % '''[[Sls]] -l''' [list SRB "newDir" directory contents] | % '''[[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 | + | /home/user.sdsc/newDir: |
| + | user 0 sdsc-unix-mi 12 2002-04-19-15.37 file_for_SRB | ||
| % '''[[Scd]]''' .. [move up one SRB directory] | % '''[[Scd]]''' .. [move up one SRB directory] | ||
| Line 47: | Line 49: | ||
| % '''[[Spwd]]''' [print SRB working directory] | % '''[[Spwd]]''' [print SRB working directory] | ||
| - | /home/user.sdsc | + | |
| + | /home/user.sdsc | ||
| % '''[[Sls]]''' [list SRB home directory contents] | % '''[[Sls]]''' [list SRB home directory contents] | ||
| - | /home/user.sdsc: | + | |
| - | file_for_SRB | + | /home/user.sdsc: |
| - | C-/home/user.sdsc/newDir | + | file_for_SRB |
| + | C-/home/user.sdsc/newDir | ||
| % '''[[SgetD]] file_for_SRB''' [display information about "file_for_SRB"] | % '''[[SgetD]] file_for_SRB''' [display information about "file_for_SRB"] | ||
| - | --------------------------- RESULTS ------------------------------ | + | |
| - | data_name :file_for_SRB | + | --------------------------- RESULTS ------------------------------ |
| - | data_typ_name :generic | + | data_name :file_for_SRB |
| - | path_name :/misc/srb/srb/SRBVault/user.sdsc/48/17/file_for_srb | + | data_typ_name :generic |
| - | data_grp_name :/home/user.sdsc | + | path_name :/misc/srb/srb/SRBVault/user.sdsc/48/17/file_for_srb |
| - | data_size :12 | + | data_grp_name :/home/user.sdsc |
| - | phy_rsrc_name :sdsc-unix-misc | + | data_size :12 |
| - | container_name : | + | phy_rsrc_name :sdsc-unix-misc |
| - | offset :0 | + | container_name : |
| - | ----------------------------------------------------------------- | + | offset :0 |
| + | ----------------------------------------------------------------- | ||
| % ['''[Sget]] file_for_SRB''' . [write "file_for_SRB" to local machine] | % ['''[Sget]] file_for_SRB''' . [write "file_for_SRB" to local machine] | ||
Revision as of 23:11, 14 March 2006
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


