ARC client CentOS 6 – English

 

It is recommended to use NTP time sync.

Installation packages are available in EPEL repository.

rpm -ivh http://ftp.uni-kl.de/pub/linux/fedora-epel/6/i386/epel-release-6-8.noarch.rpm

Install the required packages.

yum install nordugrid-arc-client nordugrid-arc-plugins-globus wget

Install the metapackage for CA-s. First, EGI-trustanchors repository is needed.

cd /etc/yum.repos.d/
wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI-trustanchors.repo
yum install ca-policy-egi-core

CA-s need to be updated regulary. You can install fetch-crl package and add it to a daily cronjob.

Create .arc directory in your home directory

mkdir ~/.arc

Transform your personal grid certificate to the required format and put it in .arc directory .

openssl pkcs12 -in usercert.p12 -clcerts -nokeys -out usercert.pem
openssl pkcs12 -in usercert.p12 -nocerts -nodes -out userkey.pem
chmod 400 userkey.pem
chmod 644 usercert.pem
mv userkey.pem ~/.arc/
mv usercert.pem ~/.arc/

Continue by setting your VO. The following instructions are suitable for VO gen.vo.sling.si .  ~/.arc/vomsdir/voms.sling.si.lsc is required and ~/.arc/vomses .

cd ~/.arc
mkdir vomsdir
echo -e "/C=SI/O=SiGNET/O=SLING/CN=voms.sling.si\n/C=SI/O=SiGNET/CN=SiGNET CA" > vomsdir/voms.sling.si.lsc
echo -e '"gen.vo.sling.si" "voms.sling.si" "15001" "/C=SI/O=SiGNET/O=SLING/CN=voms.sling.si""gen.vo.sling.si"' > vomses

#this is the content:
cat ~/.arc/vomsdir/voms.sling.si.lsc
/C=SI/O=SiGNET/O=SLING/CN=voms.sling.si
/C=SI/O=SiGNET/CN=SiGNET CA

cat ~/.arc/vomses
"gen.vo.sling.si" "voms.sling.si" "15001" "/C=SI/O=SiGNET/O=SLING/CN=voms.sling.si""gen.vo.sling.si"

Create proxy certificate.

arcproxy -S gen.vo.sling.si
Your identity: /C=SI/O=SiGNET/O=ARNES/CN=Ime Priimek
Contacting VOMS server (named gen.vo.sling.si): voms.sling.si on port: 15001
Proxy generation succeeded
Your proxy is valid until: 2014-04-24 01:03:10

Submit a test job.

vi test.xrsl
&
(executable = /usr/bin/env)
(jobname = "test")
(stdout=test.log)
(join=yes)
(gridtime=1000)
(gmlog=log)
(memory=2000)

arcsub -c jost.arnes.si -S org.nordugrid.gridftpjob -o joblist.xml test.xrsl -d DEBUG
...
Job submitted with jobid: gsiftp://jost.arnes.si:2811/jobs/4fQLDmY3BxjnmmR0Xox1SiGmABFKDmABFKDmvxHKDmABFKDmiPhU9m

Check the job status.

arcstat -c jost.arnes.si

When the job is FINISHED, download the results by using arcget.

arcget gsiftp://jost.arnes.si:2811/jobs/4fQLDmY3BxjnmmR0Xox1SiGmABFKDmABFKDmvxHKDmABFKDmiPhU9m
Results stored at: 4fQLDmY3BxjnmmR0Xox1SiGmABFKDmABFKDmvxHKDmABFKDmiPhU9m
Jobs processed: 1, successfully retrieved: 1, successfully cleaned: 1

or
arcget -a (for all finished jobs)

or
arcget -i joblist.xml (for all jobs in the list)