lcg_stmd_python(3) - Linux man page
Name
lcg_stmd - get space tokens associated to a space token description,and their metadata
Synopsis
import lcg_util(int returncode, listOfDict spacemd, string errmsg ) lcg_stmd (string spacetokendesc, string endpoint, int nobdii, int timeout)
Description
- spacetokendesc
- the space token description whom you want to get metadata.
- endpoint
- the endpoint of the SE where the spacetokendesc is defined. Note that as only SRMv2 supports space tokens the endpoint must be SRMv2-compliant.
- nobdii
- If set to a non-zero value, it means that you don't want to make BDII calls to get SE type. So, you must provide the full (SRMv2) endpoint.
- timeout
- specifies the value of timeout (default 0).
Notes
Only SRMv2 supports space tokens, so this function is compatible with SRMv2 endpoints only. The environment variable LCG_GFAL_INFOSYS must point to the BDII, unless nobdii is set to a non-zero value.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
- EINVAL
- At least one of the arguments is not correct.
- ENOMEM
- Memory problem, maybe not enough free memory.
- ECOMM
- Communication error.