Difference: LHCbDiracCLI (11 vs. 12)

Revision 122019-07-05 - PhilippeCharpentier

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

LHCbDirac Data Management commands

Line: 28 to 28
  - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Added:
>
>
If a list of files was used through a pipe, the --File or --Terminal= option above, the last list of files used may be re-used using --LastLFNs. Note that this may not always work, depending on how the software is installed. This should however be fixed in a coming release (July 2019).
 Here is an example of piping commands:
[localhost, Patch] ~ $ dirac-transformation-debug 24847 --Status Processed --Info files | dirac-bookkeeping-get-file-descendants --Prod 24847 | grep full.dst | dirac-transformation-debug 24182 --Info tasks
Line: 119 to 121
  - --File= : File containing list of LFNs -l: --LFNs= : List of LFNs (comma separated) - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Added:
>
>
- --LastLFNs : Use last set of LFNs
  -a --All : Also show inactive replicas
Line: 144 to 147
  - --File= : File containing list of LFNs -l: --LFNs= : List of LFNs (comma separated) - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Added:
>
>
- --LastLFNs : Use last set of LFNs
  -g: --Sites= : Sites to consider [ALL] (comma separated list) -S: --SEs= : SEs to consider [ALL] (comma separated list)
Line: 174 to 178
  - --File= : File containing list of LFNs -l: --LFNs= : List of LFNs (comma separated) - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Added:
>
>
- --LastLFNs : Use last set of LFNs
  -g: --Sites= : Sites to consider [ALL] (comma separated list) -S: --SEs= : SEs to consider [ALL] (comma separated list) - --Check : Checks the PFN metadata vs LFN metadata
Line: 183 to 188
 For backward compatibility the list of URLs and SEs can be provided as positional arguments, but it is recommended to use option switches. If a site is selected, the metadata of all replicas at that site are reported. If no SE and no sites are specified, the metadata of all replicas is reported.
Added:
>
>

dirac-dms-pfn-exists

Shortcut for dirac-dms-pfn-metadata --Exists

$ dirac-dms-pfn-exists --help

Check existence of a (list of) LHCb LFNs/PFNs given a valid DIRAC SE (or for all replicas)
  Only the LFN contained in the PFN is considered, unlike the DIRAC similar script

Usage:
  dirac-dms-pfn-exists [option|cfgfile] ... [URL[,URL2[,URL3...]]] SE[ SE2...]
Arguments:
  URL:      Logical/Physical File Name or file containing URLs
  SE:       Valid DIRAC SE

General options:
  -o  --option <value>         : Option=value to add
  -s  --section <value>        : Set base section for relative parsed options
  -c  --cert <value>           : Use server certificate to connect to Core Services
  -d  --debug                  : Set debug mode (-ddd is extra debug)
  -   --autoreload             : Automatically restart if there's any change in the module
  -   --license                : Show DIRAC's LICENSE
  -h  --help                   : Shows this help

Options:
  -   --File=                  : File containing list of LFNs
  -l  --LFNs <value>           : List of LFNs (comma separated)
  -   --Terminal               : LFNs are entered from stdin (--File /dev/stdin)
  -   --LastLFNs               : Use last set of LFNs
  -g  --Sites <value>          :   Sites to consider [ALL] (comma separated list)
  -S  --SEs <value>            :   SEs to consider [ALL] (comma separated list)
  -   --Summary                :    Only prints a summary on existing files
 

dirac-dms-user-lfns

This command allows a user to get a list of all files they own on the Grid, within directories or with data/time criteria.

Line: 212 to 252
 

dirac-dms-lfn-accessURL

Changed:
<
<
This command returns tURLs for files at a given SE or site. This tURL is optimised for fast and efficient access to the data. Note that any other tURL may either be inefficient or its usage may be discontinued at some point.
>
>
This command returns tURLs for files at a given SE or site. This tURL is optimised for fast and efficient access to the data. Note that any other tURL may either be inefficient or its usage may be discontinued at some point. One can select for which protocol one wants to get a URL using --Protocol= (default is xrootd).
 In case the file is on tape storage, the tURL can currently only be obtained once the file has been staged, therefore the command may in this case timeout.
Changed:
<
<
[localhost, Patch] ~ $ dirac-dms-lfn-accessURL --help
>
>
[localhost] ~ $ dirac-dms-lfn-accessURL --help
  Retrieve an access URL for an LFN replica given a valid DIRAC SE.
Added:
>
>
 Usage:
Changed:
<
<
dirac-dms-lfn-accessURL [option|cfgfile] ... [LFN[,LFN2[,LFN3...]]] [SE[,SE2...]]
>
>
dirac-dms-lfn-accessURL [option|cfgfile] ... [LFN[,LFN2[,LFN3...]]] SE[,SE2...]
 Arguments: LFN: Logical File Name or file containing LFNs SE: Valid DIRAC SE
Line: 223 to 265
 Arguments: LFN: Logical File Name or file containing LFNs SE: Valid DIRAC SE
Added:
>
>
 General options:
Changed:
<
<
-o: --option= : Option=value to add -s: --section= : Set base section for relative parsed options -c: --cert= : Use server certificate to connect to Core Services -d --debug : Set debug mode (-dd is extra debug)
>
>
-o --option : Option=value to add -s --section : Set base section for relative parsed options -c --cert : Use server certificate to connect to Core Services -d --debug : Set debug mode (-ddd is extra debug) - --autoreload : Automatically restart if there's any change in the module - --license : Show DIRAC's LICENSE
  -h --help : Shows this help

Options: - --File= : File containing list of LFNs

Changed:
<
<
-l: --LFNs= : List of LFNs (comma separated)
>
>
-l --LFNs : List of LFNs (comma separated)
  - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Changed:
<
<
-g: --Sites= : Sites to consider [ALL] (comma separated list) -S: --SEs= : SEs to consider [ALL] (comma separated list)
>
>
- --LastLFNs : Use last set of LFNs -g --Sites : Sites to consider [ALL] (comma separated list) -S --SEs : SEs to consider [ALL] (comma separated list) - --Protocol= : Define the protocol for which a tURL is requested (default:root)
 

Positional arguments are supported for backward compatibility, but option switches are highly recommended. If no SE is specified, all allowed SEs are used.

Line: 262 to 309
  - --File= : File containing list of LFNs -l: --LFNs= : List of LFNs (comma separated) - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Added:
>
>
- --LastLFNs : Use last set of LFNs
  -D: --Directory= : Directory to download to (default = /home/phicharp)
Line: 293 to 341
  - --File= : File containing list of LFNs -l: --LFNs= : List of LFNs (comma separated) - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Added:
>
>
- --LastLFNs : Use last set of LFNs
 

dirac-dms-add-file

Line: 419 to 468
  - --File= : File containing list of LFNs -l: --LFNs= : List of LFNs (comma separated) - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Added:
>
>
- --LastLFNs : Use last set of LFNs
  -g: --Sites= : Sites to consider [ALL] (comma separated list) -S: --SEs= : SEs to consider [ALL] (comma separated list) -v --Verbose : use this option for verbose output [False]
Line: 458 to 508
  - --File= : File containing list of LFNs -l: --LFNs= : List of LFNs (comma separated) - --Terminal : LFNs are entered from stdin (--File /dev/stdin)
Added:
>
>
- --LastLFNs : Use last set of LFNs
  - --SetProcessed : Forced to set Removed the files in status Processed (default:not reset)
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback