RLS: Developer's Guide
Overview
APIs
Server Documentation (globus-rls-server)
Admin Command Line Tool (globus-rls-admin)
>Client Command Line Tool (globus-rls-cli)
Index Service Info Provider (globus-rls-reporter)
RPC Protocol
Description (pdf)
Client Command Line Tool (globus-rls-cli)
The RLS Client Tool (globus-rls-cli) provides a command line interface to some of the functions supported by RLS. It also supports an interactive interface (if command is not specified). In interactive move double quotes may be used to encode an argument that contains white space.
Synopsis
command [ -c ] [ -h ] [ -l reslimit ] [ -s ] [ -t timeout ] [ -u ] [ command ] rls-server
Options
The client command tool uses getopt for command line parsing.
Note: Some versions
will continue scanning for options (works that begin with a hyphen) for the
entire command, line, which makes it impossible to specify negative integer
or floating point value for an attribute. The workaround for this problem
is to tell getopt() that
there are no more options, by including 2 hyphens. For example, to
specify the value -2 you must enter --
-2.
-c |
Sets "clearvalues" flag when deleting an attribute (will remove any attribute value records when an attribute is deleted). |
-h |
Shows usage. |
-l reslimit |
Sets limit on number of results returned by wildcard query at a time. Zero means no limit. |
-s |
Uses SQL style wildcards (% and _). |
-t timeout |
Sets timeout (in seconds) for RLS server requests. Default is 30 seconds. |
-u |
Uses Unix style wildcards ( and ?). |
-v |
Shows version. |
Commands
add <lfn> <pfn> |
Adds pfn to mappings of lfn in an LRC catalog. |
attribute add <object> <attr> <obj-type> <attr-type> |
Adds an attribute to an object, object should be the lfn or pfn name. obj-type should be one of lfn or pfn. attr-type should be one of date, float int, or string. If <value> is of type date then it should be in the form "YYYY-MM-DD HH:MM:DD". |
attribute bulk add <object> <attr> <obj-type> |
Bulk adds attribute values. |
attribute bulk delete <object> <attr> <obj-type> |
Bulk deletes attributes. |
attribute bulk query <attr> <obj-type> <object> |
Bulk queries attributes. |
attribute define <attr> <obj-type> <attr-type> |
Defines new attribute. |
attribute delete <object> <attr> <obj-type> |
Removes attribute from object. |
attribute modify <object> <attr> <obj-type> <attr-type> |
Modifies the value of an attribute. |
attribute query <object> <attr> <obj-type> |
Retrieves value of specified attribute for object. |
attribute search <attr> <obj-type> <operator> <attr-type> |
Searches for objects which have the specified attribute matching operator and value. operator should be one of =, !=, >, >=, <, <=, like. |
attribute show <attr> <obj-type> |
Shows attribute definition. If attr is a hypen (-) then all attributes are shown. |
attribute undefine <attr> <obj-type> |
Deletes an attribute definition. Will return an error if any objects possess this attribute. |
bulk add <lfn> <pfn> [<lfn> <pfn> |
Bulk adds lfn, pfn mappings. |
bulk create <lfn> <pfn> [<lfn> <pfn> |
Bulk creates lfn, pfn mappings. |
bulk delete <lfn> <pfn> [<lfn> <pfn> |
Bulk deletes lfn, pfn mappings. |
bulk query lrc lfn [<lfn> ...] |
Bulk queries lrc for lfns. |
bulk query lrc pfn [<pfn> ...] |
Bulk queries lrc for pfns. |
bulk query rli lfn [<lfn> ...] |
Bulk queries rli for lfns. |
create <lfn> <pfn> |
Creates a new lfn, pfn mapping in an LRC catalog. |
delete <lfn> <pfn> |
Deletes a lfn, pfn mapping from an LRC catalog. |
exit |
Exits interactive session. |
help |
Prints help message. |
query lrc lfn <lfn> |
Queries an LRC server for mappings of lfn. |
query lrc pfn <pfn> |
Queries an LRC server for mappings to pfn. |
query rli lfn <lfn> |
Queries an RLI server for mappings of lfn. |
query wildcard lrc lfn <lfn-pattern> |
Performs a wildcarded query of an LRC server for mappings of lfn-pattern. Patterns use the standard Unix wildcard characters, an asterisk () matches 0 or more characters, and a question mark (?) matches any single character. |
query wildcard lrc pfn <pfn-pattern> |
Queries an LRC server for mappings to pfn-pattern. Patterns use the standard Unix wildcard characters, an asterisk () matches 0 or more characters, and a question mark (?) matches any single character. |
query wildcard rli lfn <lfn-pattern> |
Queries an RLI server for mappings of lfn-pattern. Patterns use the standard Unix wildcard characters, an asterisk () matches 0 or more characters, and a question mark (?) matches any single character. |
set reslimit <limit> |
Sets limit on number of results returned at a time by a wildcard query. Zero means no limit. |
set timeout <timeout> |
Sets timeout (in seconds) on calls to the RLS server. The
default value is |
version |
Shows version and exit. |