Download LCG-2 USER GUIDE

Transcript
$ edg-lrc addMapping guid:$GUID $SURL2 - -endpoint \
http://rlscert01.cern.ch:7777/dteam/v2.2/edg-local-replica-catalog/services > /edg-local-replica-catalog
$ edg-lrc pfnExists $SURL2 - -endpoint \
http://rlscert01.cern.ch:7777/dteam/v2.2/edg-local-replica-catalog/serv ices/edg-local-replica-catalog
> Pfn exists : ’sfn://tbed0101.cern.ch/flatfile/SE00/dteam/my fake
Example 6.3.15
(Removing a mapping)
Removing the previously added SURL:
$ edg-lrc removePfn guid:$GUID $SURL2 - -endpoint \
http://rlscert01.cern.ch:7777/dteam/v2.2/edg-local-replica-catalog/services/edg-local-replica-catalog
6.3.2. Replica Metadata Catalog Commands
The edg-rmc commands operate with GUID-LFNs mappings. The -i option is used in the same way as with edg-lrc,
and so are the options used to specify the endpoint for the RMC server (which, again, can be obtained with the
edg-rm printInfo command).
The following tables summarize the most useful commands;
Mapping management commands:
addAlias guid alias
aliasExists alias
guidExists guid
guidForAlias alias
aliasesForGuid guid
removeAlias guid alias
Add a new alias to the catalog.
Does the alias exist in this catalog?
Does the GUID exist in this catalog?
Return the GUID for a given alias.
Return the aliases for a given GUID.
Remove an alias from a given GUID.
Wildcard query commands (to retrieve GUIDs or SURLs that match a pattern):
mappingsByAlias aliasPattern
mappingsByGuid guidPattern
getResultLength
setResultLength length
Get a set of mappings by a wildcard search on alias name.
Get a set of mappings by a wildcard search on guid.
Return the result length by default (i.e. how many mappings will be
returned when using mappingsByGuid or mappingsByAlias).
Set the result length by default (i.e. how many mappings will be
returned when using mappingsByGuid or mappingsByAlias).
As in the case of edg-lrc, there are some other commands that set/get attributes for the GUIDs or the aliases,
and some that retrieve mappings whose attribute satisfy certain conditions. For details refer to [R21].
Examples.
The same environmental variables of the previous section are used in the following examples.
CERN-LCG-GDEIS-454439
LCG-2 User Guide
Page 62