lcg_lr_python(3) - Linux man page
Name
lcg_lr - get the list of replicas for a given LFN, GUID or SURLSynopsis
(int returncode, listOfstring pfns, string errmsg ) lcg_lrx (string file, string vo, string conf_file, int insecure);
(int returncode, listOfstring pfns, string errmsg ) lcg_lr2 (string file, int nobdii, string vo)
(int returncode, listOfstring pfns, string errmsg ) lcg_lr3 (string file, int nobdii, string vom int verbose)
Description
lcg_lr gets the list of replicas for a given LFN, GUID or SURL.- file
- specifies the Logical File Name, the Grid Unique IDentifier or the Site URL. An SURL scheme can be sfn: for a classical SE or srm:.
- nobdii
- If set to a non-zero value, it means that you don't want to make BDII calls to get LFC endpoint. So, you have to define the environment variable 'LFC_HOST'.
- vo
- specifies the Virtual Organization the user belongs to. If it is not specified, the environment variable LCG_GFAL_VO will be used.
- conf_file
- This argument is currently ignored.
- insecure
- This argument is currently ignored. The access to the Replica Catalog or the LFC is done according to the endpoints published in MDS.
- pfns
- will be set by the routine to the address of the array of pointers to the replicas. The application should free both the replica names and the array of pointers.
- verbose
- Verbose level. Here are the possible levels:
- Only critical errors are put into errmsg.
- Warnings are displayed on stderr as well as critical errors.
- Debug information is displayed as well as warnings and critical errors.
Note
The environment variable LCG_GFAL_INFOSYS must point to the BDII, unless nobdii is set to a non-zero value. To use the RLS as catalog instead of the LFC, the environment variable LCG_CATALOG_TYPE must explicitely be set to "edg". By default, it is set to "lfc".Return Value
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, errno is set appropriately.Errors
- ENOENT
- The named file does not exist.
- EFAULT
- file, vo or pfns is an invalid pointer.
- EINVAL
- file has an invalid syntax.
- ECOMM
- Communication error.
- ENAMETOOLONG
- vo is too long.
- EPROTONOSUPPORT
- Access method not supported.
See Also
lcg_aa_python(3), lcg_cp_python(3), lcg_cr_python(3), lcg_del_python(3), lcg_gt_python(3), lcg_la_python(3), lcg_lg_python(3), lcg_lr_python(3), lcg_ra_python(3), lcg_rep_python(3), lcg_rf_python(3), lcg_sd_python(3), lcg_stmd_python(3), lcg_uf_python(3)