Scommands
From GridInfo
Contents |
Introduction
The Scommands are a set of unit line commands that provide direct access to the SRB. Often they are direct parallels of unix/linux commands, but are prefixed with a capital S. Examples of parallel commands are Sls and Smkdir. Other commands are parallels of unix ftp commands, such as Sput and Sget.
Example Scommands
Among the most useful of the Scommands are
- Sls: Lists the contents of an SRB collection, analogous to the unix ls command (SRB man page reference)
- Sput: Put a file into the SRB (SRB man page reference)
- Sget: Get a file from the SRB (SRB man page reference)
- Scd: Change the SRB collection you are working within, analogous to the unix cd command (SRB man page reference)
- Scp: Copy a file within the SRB, analogous to the unix cd command (SRB man page reference)
- Serror: Gives a description of an SRB error associated with an error code (SRB man page reference)
- Sinit: Initiates an SRB session. (SRB man page reference)
- Sexit: Ends an SRB session, and clears up all hidden files created in the session. (SRB man page reference)
- Smkdir: Creates an SRB collection, the equivalent of the unix directory. This command is the equivalent of the unix mkdir command. (SRB man page reference)
- Smv:
- Spasswd: Changes your SRB password. It will automatically update the value within the .MdasAuth file. It is the equivalent of the unix passwd command. (SRB man page reference)
- Spwd: Prints the current SRB working directory, equivalent of the unix pwd command. (SRB man page reference)
- Srm: Removes a file within the SRB, equivalent to the unix rm command. (SRB man page reference)
- Srmdir: Removes a collection within the SRB, equivalent to the unit rmdir command. (SRB man page reference)
- Schmod: For changing access permission for files and collections within the SRB. It is not really analogous to the unix chmod command. (SRB man page reference)
Metadata Scommands
There are a few metadata Scommands. These include:
- Sannotate: inserts or changes annotations on data. (SRB man page reference)
- Smeta: inserts or changes metadata. (SRB man page reference)
Installation
The Scommand can be built as part of a complete SRB install, or as an client-only installation. The Scommand client package is available for installation from the main SRB web site: http://www.sdsc.edu/srb/tarfiles/SRB3_4_0client.tar.
Environment setup
On a unix/linux system, you need to set up two files within a directory called .srb: .MdasEnv and .MdasAuth
.MdasEnv
mdasCollectionName '/home/<username>.<domain_name>' mdasCollectionHome '/home/<username>.<domain_name>' mdasDomainName '<domain_name>' mdasDomainHome '<domain_name>' srbUser '<username>' srbHost '<host computer>' srbPort '<port number>' defaultResource '<default vault name' AUTH_SCHEME 'ENCRYPT1' or 'PASSWD_AUTH' or 'GSI_AUTH'
.MdasAuth
This file contains only one line, on which is your SRB password.
External links
Return to main Storage Resource Broker page

