When the user has produced a list of existing files, the following script lists the file replicas:
set `cat files-in-RC` echo "Searching Replicas for Files; echo "" for args do edg-replica-manager-listReplicas -l $args -c alice_rc_def.conf >> zz.zz grep location zz.zz > replicas.all doneAs the replica list file is a complex file that contains many useful informations as shown in the following fragment, the script searches for lines containing the
locationkeyword to collect the SE(s) holding the replica.
logical file name: galice_3.07.01_100203_115853.root protocol: gsiftp For LFN galice_3.07.01_100203_115853.root the following replicas have been found: location 1: grid007g.cnaf.infn.it/shared/alice/galice_3.07.01_100203_115853.root location 2: lxshare0393.cern.ch/flatfiles/SE00/alice/galice_3.07.01_100203_115853.root The program was successfully executed. logical file name: galice_3.07.01_100203_121528.root protocol: gsiftp For LFN galice_3.07.01_100203_121528.root the following replicas have been found: location 1: lxshare0393.cern.ch/flatfiles/SE00/alice/galice_3.07.01_100203_121528.root The program was successfully executed.As shown in the fragment, each replica is listed in a line starting with
locationfollowing by the replica number, i.e. , etc.