URL:
<http://savannah.cern.ch/bugs/?99627>
Summary: $USER parameter not passed by frm.xfr.copycmd
Project: XROOTD
Submitted by: bdouglas
Submitted on: 2012-12-29 11:00
Report Type: Bug
Priority: 5 - Normal
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Fixed by commit(s):
_______________________________________________________
Details:
Hi,
Not sure if this is a bug or just pilot error -
In section "5.1 The frm_xfrd Configuration directives" of the frm
manual (see Andy I do occasionally read the manuals ;-) )
The follow var's are referenced -
var: $CID | $CGI | $DST | $INS | $LFN | $PFN | $RFN |
$NOTIFY | $MDP | $OFLAG | $PRTY | $RID | $SRC |
$USER | $eVar
Though later in the manual under the section -
These variables (and others) are referenced.
$RID request identifier.
$SRC the source file name. This may be $PFN or $RFN, depending on
the transfer direction. It may also be a url for url-based copy commands.
$TID original requesting client’s trace identification.
$eVar any variable that has been passed along with the file name
as opaque information (i.e., contained in $CGI).
-------
Here is the frm.xfr.copycmd from my config file.
frm.xfr.copycmd in stats noalloc /etc/xrootd/new-stagein.sh $SRC $DST $CID
$USER $TID
Here is how I handle the variables in new-stagein,sh
local_svr=`/bin/hostname`:${xrdport}
lfn=`echo $1 | /usr/bin/tr -d [:blank:]`
pfn=`echo $2 | /usr/bin/tr -d [:blank:]`
cid=$3
user=$4
tid=$5
Here what I see in a log file created when running the stagein script :
lfn:
/atlas/local/dbenjamin/data12_8TeV.00212809.physics_Egamma.merge.AOD.f481_m1233/data12_8TeV.00212809.physics_Egamma.merge.AOD.f481_m1233._lb0276._0001.1
pfn:
/dataxrd/atlas/local/dbenjamin/data12_8TeV.00212809.physics_Egamma.merge.AOD.f481_m1233/data12_8TeV.00212809.physics_Egamma.merge.AOD.f481_m1233._lb0276._0001.1
rfn:
root://atlasfs.hep.anl.gov:1094//atlas/local/dbenjamin/data12_8TeV.00212809.physics_Egamma.merge.AOD.f481_m1233/data12_8TeV.00212809.physics_Egamma.merge.AOD.f481_m1233._lb0276._0001.1?tried=+1213aschead021213aschead01.hep.anl.gov
tfn:
root://ascwork01.hep.anl.gov:1094//atlas/local/dbenjamin/data12_8TeV.00212809.physics_Egamma.merge.AOD.f481_m1233/data12_8TeV.00212809.physics_Egamma.merge.AOD.f481_m1233._lb0276._0001.1
user: $USER
tid: manager.0:26@aschead02
-------------
I am trying to capture the user name who triggered the frm transfer so that I
can save that information with the extended attributes of the file.
Thanks.
Doug B
_______________________________________________________
Reply to this item at:
<http://savannah.cern.ch/bugs/?99627>
_______________________________________________
Message sent via/by LCG Savannah
http://savannah.cern.ch/
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
|