Hi Trevor, No, there isn't. This is meant to be an 'expert' command which is only used to fix something that has gone wrong before (dirac-dms-add and related commands automatically register an uploaded file in the catalogue.) As I guess this ties in with your other question. We (the dirac admins) keep scripts we use here: https://github.com/ic-hep/DIRAC-tools/tree/master BUT (and that's a big BUT), most of them were written for a specific use case and are not necessarily as robust as they could be. So by all means make use of them, but don't use them blindly. Importing existing files into the dirac file catalogue: The dirac file catalogue requires LFNs to start with /experiment-name. (This also helps us, as the DIRAC instance is shared by multiple experiments.) The actual SURL is then constructed by attaching the LFN to the VO path, hence for the KEK SE you end up with: kek2-se01.cc.kek.jp:8444/srm/managerv2?SFN=/t2k.org/t2k.org/user/s/trevor.stewart/mac_vector.tar.gz (If you look e.g. at CA-TRIUMF-T2K1-disk, there 't2k.org' doesn't appear in the base storage path at all, so we cannot assume that all base storage paths include the full VO name (and t2k.org is short compared to some ....)). What I would suggest for transitioning t2k.org off the LFC and onto the dirac catalog is that the SE admins move the directory down one level wholesale (this *will* break the LFC unless you reregister the files or convince RAL to change this in the LFC data base)) and we then do the initial registration. We did this for the solid VO, and you can see the scripts here: https://github.com/ic-hep/DIRAC-tools/tree/master/solid to see what you are getting into. Hope this helps. Daniela On 25 August 2017 at 04:32, <trevor.stewart@stfc.ac.uk> wrote:
Hi Daniela
Thank you for the hints about the command line tools: dirac-dms-lfn-replicas and dirac-dms-lfn-accessURL.
Is there a dirac-dms* command line tool that is analogous the CLI 'register file <LFN> <SRM path> <size> <SE>'?
Cheers Trevor ________________________________________ From: gridpp-dirac-users-bounces@imperial.ac.uk [gridpp-dirac-users-bounces@imperial.ac.uk] on behalf of Daniela Bauer [daniela.bauer.grid@googlemail.com] Sent: August 24, 2017 4:50 PM To: gridpp-dirac-users@imperial.ac.uk Subject: [Gridpp-Dirac-Users] Don't use the dirac-dms-filecatalog-cli...
... unless you have to.
Hi All,
Please only use this CLI to list files. A number of its commands are misleading at best and will cause more harm than good if you try to use them: E.g. the 'replicas' file catalog command will give you the wrong path as Trevor has found out and it's unlikely this can easily be fixed.
@Trevor: dirac-dms-lfn-replicas [lfn] should offer identical functionality as the 'replicas' command. We just fixed a problem with this command, so if you had tried it out earlier and found it didn't work, please give it another go.
Regards, Daniela
-- Sent from the pit of despair
----------------------------------------------------------- daniela.bauer@imperial.ac.uk HEP Group/Physics Dep Imperial College London, SW7 2BW Tel: +44-(0)20-75947810 http://www.hep.ph.ic.ac.uk/~dbauer/
-- _______________________________________________ Gridpp-Dirac-Users mailing list Gridpp-Dirac-Users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/gridpp-dirac-users
-- _______________________________________________ Gridpp-Dirac-Users mailing list Gridpp-Dirac-Users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/gridpp-dirac-users
-- Sent from the pit of despair ----------------------------------------------------------- daniela.bauer@imperial.ac.uk HEP Group/Physics Dep Imperial College London, SW7 2BW Tel: +44-(0)20-75947810 http://www.hep.ph.ic.ac.uk/~dbauer/