Subject: HowTo test sam_gridftp From: Stefan Stonjek Date: Wed, 05 Nov 2003 18:41:32 -0600 To: cdfsam-admin@fnal.gov Hello, in the last days I saw some mails about problems with gridftp. In particular there where certificate and gridmap file problems. Here is an easy way to test if gridftp is able to transfer file from fcdfdata016.fnal.gov (the cdf-sam SAM station at FNAL). This does not check whether your station can transfer files from dCache! First set up the CDF software in the usual way (this example is for the bash shell. $ . ~cdfsoft/cdf2.shrc then setup the sam_gridftp product $ setup sam_gridftp Now export this two environment variables. Depending on your setup those two files might be in a different location. You can find them with "locate". Put the correct path in your variables. $ export X509_USER_CERT=/etc/grid-security/samserver.cert $ export X509_USER_KEY=/etc/grid-security/samserver.key N.B. with latest (dec 03) sam_gsi_config: $ export X509_USER_CERT=`sam_gsi_read_config SAM_GSI_GRIDFTP_X509_CERT` $ export X509_USER_KEY=`sam_gsi_read_config SAM_GSI_GRIDFTP_X509_KEY` $ export X509_CERT_DIR=`sam_gsi_read_config SAM_GSI_GRIDFTP_CERT_DIR` Now you should be able to transfer a file from fcdfdata016.fnal.gov. The trans_test_file already exist on fcdfdata016. It is short and contains 11 bytes. $ gridftp sam@fcdfdata016.fnal.gov:/home/sam/trans_test_file . If this does not work, the error message might help us to find the cause for your problem. Tschuess Stefan -- ************* Stefan Stonjek ******** s.stonjek1@physics.ox.ac.uk ****** * Univ. of Oxford; Physics Dept.; Keble Road; Oxford; OX1 3RH; UK * ******** phone: +44-1865-273442 ********** fax: +44-1865-273418 ******** * FNAL; MS 318; P.O. Box 500; Batavia, IL 60510, USA * +1-630-840-2969 *