Sregisterresource

From SRB

Contents

NAME

Sregisterresource - register a new physical resource

SYNOPSIS

Sregisterresource [-h] NewResourceName ResourceType Location PhysicalPath Class

DESCRIPTION

Sregisterresource is an SRB Administrator command to register a new physical resource into the MCAT. It is similar to the MCAT command ingestResource but can run on any supported host whereas ingestResource needs to run on the MCAT host. It uses SRB client/server calls to update the MCAT. You must have SRB administrative privileges for this command to succeed.


NewResourceName is a name of your choosing for your new resource.

ResourceType needs to be one of the ResourceTypes defined in your SRB MCAT system, such as 'unix file system', 'hpss file system', etc. Use Stoken to display your complete list.

Location needs to be a Location that is defined in your MCAT; again use Stoken to display a complete list.

PhysicalPath is the path name under which this physical resource will be storing the files.

Class needs to be one of the ResourceClass items that is defined in your MCAT, such as 'archival', 'generic', etc; again use Stoken to display a complete list.


OPTIONS

-h
display command options

EXAMPLES

Sregisterresource NewResource 'unix file system' sdsc '/scratch/slo- cal/?USER.?DOMAIN/?SPLITPATH/?PATH?DATA== NAME ==.?RANDOM.?TIMESEC' permanent

Sregisterresource 'ora-catharsis-sdsc' 'oracle dblobj database' 'catharsis oracle Vault' "/srbVault/OBJ_LOCATOR/OBJ_ID='TEST.?PATH/?DATA== NAME ==.?RANDOM.?TIMESEC'" permanent

SEE ALSO

Stoken, Sregisterlocation, and mcatAdmin the Java GUI Admin Tool.