ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/yiiyama/Toolset/scripts/t2tools
(Generate patch)

Comparing UserCode/yiiyama/Toolset/scripts/t2tools (file contents):
Revision 1.1 by yiiyama, Mon Oct 15 09:28:43 2012 UTC vs.
Revision 1.3 by yiiyama, Tue Nov 20 17:21:59 2012 UTC

# Line 3 | Line 3 | which voms-proxy-init 2>/dev/null || sou
3   voms-proxy-init -voms cms
4  
5   t2ls(){
6 <    path=$1
6 >    path=$1 #path under yiiyama
7      srmls srm://srm-dcache.rcac.purdue.edu:8443/srm/v2/server?SFN=/mnt/hadoop/store/user/yiiyama/${path}
8   }
9  
10   t2up(){
11 <    local=$PWD/$1
12 <    remote=$2
11 >    local=$1 #full path
12 >    remote=$2 #path under yiiyama
13      lcg-cp -b -D srmv2 file://${local} srm://srm-dcache.rcac.purdue.edu:8443/srm/v2/server?SFN=/mnt/hadoop/store/user/yiiyama/${remote}
14   }
15  
16   t2down(){
17 <    remote=$1
18 <    local=$PWD/$2
17 >    remote=$1 #path under yiiyama
18 >    local=$2 #full path
19      lcg-cp -b -D srmv2 srm://srm-dcache.rcac.purdue.edu:8443/srm/v2/server?SFN=/mnt/hadoop/store/user/yiiyama/${remote} file://${local}
20   }
21  
22   t2rm(){
23 <    remote=$1
23 >    remote=$1 #path under yiiyama
24      lcg-del -b -l -D srmv2 srm://srm-dcache.rcac.purdue.edu:8443/srm/v2/server?SFN=/mnt/hadoop/store/user/yiiyama/${remote}
25 < }
25 > }
26 >
27 > dcachedown(){
28 >    #from a FNAL node
29 >    remote=$1 #path under /pnfs/cms/WAX
30 >    local=$2 #full path
31 >    lcg-cp -b -D srmv2 srm://cmssrm.fnal.gov:8443/srm/managerv2?SFN=/$remote file:///$local
32 > }
33 >
34 > fnaleosdown(){
35 >    remote=$1 #path under /eos/uscms
36 >    local=$2 #full path
37 >    lcg-cp -b -D srmv2 srm://cmseos.fnal.gov:8443/srm/v2/server?SFN=/eos/uscms$remote file:///$local
38 > }
39 >
40 > dcache2eos(){
41 >    #from a FNAL node
42 >    fnal=$1 #path under /pnfs/cms/WAX
43 >    cern=$2 #path under /store/user/yiiyama
44 >    caf=$3/
45 >    lcg-cp -b -D srmv2 srm://cmssrm.fnal.gov:8443/srm/managerv2?SFN=/$fnal srm://srm-eoscms.cern.ch:8443/srm/v2/server?SFN=//eos/cms/store/${caf}user/yiiyama$cern
46 > }
47 >
48 > #fnaleos2eos needs to be done from FNAL
49 > # fnal=$1 #path under /eos/uscms
50 > # cern=$2 #path under /store/user/yiiyama
51 > # lcg-cp -b -D srmv2 file:///eos/uscms$fnal srm://srm-eoscms.cern.ch:8443/srm/v2/server?SFN=/eos/cms/store/user/yiiyama$cern

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines