CAF @ CNAF How to use
by Antonio Sidoti and Stefano Belforte


HOME Stefano Belforte's home page        Offline Stefano's offline page        CAF documents & links

Farm "opening" message


Main differences with CAF(s)@FNAL

Report problems to Antonio and/or Armando and/or Stefano and please be patient and collaborative


Stop by step how-to (assuming you already know how to use CNAF@FNAL, have your exe/script ready etc., if you don't, see CDF CAF page. Most steps only need to be done only once. You should be able to figure out very easily which ones, since you already mastered the much more difficult steps needed to use CDF software !! Relax and keep reading.
  1. send mail to Antonio and/or Armando and/or Stefano to have your queue setup

  2. if you work from a FNAL machine:
           cp ~belforte/.cafrc ~
           cp ~belforte/krb5.conf .
            add to your ~/local.login the line:
               setenv KRB5_CONFIG ${HOME}/krb5.conf
            if you use bash instead, add to ~/bash.profile the line
               export KRB5_CONFIG=${HOME}/krb5.conf
           
  3. if you work from Italy:
           cp /afs/infn.it/project/cdf/cdfsoft/DotCafrc ~/.cafrc
           cp /afs/infn.it/project/cdf/cdfsoft/krb5.conf ~
           
            Then modify your .login or .bash_profile ot whatever
            your local sysman decided your local initialization
            script has to be called, so to inclue the definition of
            KRB5_CONFIG as indicated above
            
    Note that if you work from Italy and your desktop does not have the kerberos client installed, you can still work by using KRB_Lite, although this is not as conveniente and you may need more "gimnick" with kerberos conifguration

  4. add to your ~/.k5login your new principal name/cdf/cnafcaf@FNAL.GOV, in order to allow the CAF@CNAF to send files (your logs e.g.) to your directory. After this your .k5login must look something like:
    belforte@FNAL.GOV
    caf/cdf/belforte@FNAL.GOV
    belforte/cdf/cnafcaf@FNAL.GOV
           
  5. if you work from Italy:
    source /afs/infn.it/project/cdf/cdfsoft/cdf2.shrc
    (assuming you use bash, if you use tchs, put a "c" after the dot)

  6. setup cdfsoft2 development

  7. define the CAF@CNAF as your preferred CAF:

  8. use CafGui and/or cafcom as usual, but make sure you fully specify the output node with a user@node:/directory string, you can not use the icaf: and/or scratch: shortcuts
    Example
           belforte@fcdflnx3.fnal.gov:/cdf/scratch/belforte/test.tgz
            or
           belforte@pccdf2.ts.infn.it:caf/cnaf/out/test.tgz
           
  9. make sure you do not try to access any local data disk file, there are none at CNAF

  10. in principle you can use rootd to access static data on fcdfsgi2 and/or FNAL's CAF static servers, in practice performance is lilkely to be awfull

  11. monitor your job with the usual cafjobs/tail/top/dir/kill

  12. monitor your jobs and/or the full farm from CAF@CNAF fbswww page and/or CAF@CNAF UserMonitor page

  13. For examples of real analysis jobs that run on the CNAF farm, look at Antonio's Plug Electrons Analysis page

  14. Send Antonio/Stefano e-mail if you find we forgot something !

Stefano Belforte ( stefano.belforte@ts.infn.it)
Last modified: Tue Jan 27 14:12:45 CET 2004