In this directory you will find examples on how to use ARC6 clients packaged in this repository.
For the purposes of these examples, we assume that the URL of the ARC6 endpoint is pointed to by the environmental variable `ARC_CE`. At CC-IN2P3, the value of that variable can be set to the LSST ARC computing element, i.e.
To interact with the ARC computing element you must be authenticated as a member of a virtual organization (VO). To acquire a proxy as a member of the LSST VO use the command:
```bash
$ voms-proxy-init --voms lsst
```
You can inspect the acquired proxy and ensure it was delivered to you as a member of the LSST VO with the command
```bash
$ voms-proxy-info --all
...
=== VO lsst extension information ===
VO : lsst
...
```
## Submit, query and retreive the results of a canned job
The [ARC6 client tools](https://www.nordugrid.org/arc/arc6/users/client_tools.html) include with some job descriptions that you can use for testing purposes. For instance, the command [`arctest`](https://www.nordugrid.org/arc/arc6/users/client_tools.html#arctest) can be used to submit a simple job which executes `/usr/bin/env`. Use the command below to submit your job:
```bash
$ arctest -J 2 -C$ARC_CE
Job submitted with jobid: https://ccarccelsst01.in2p3.fr:9443/arex/3GPKDm1QWz0n3NnJ7oI0cbupABFKDmABFKDmbRGKDmEBFKDm9PJd5n
```
After successful submission, you can query the status of the job:
Jobs processed: 1, successfully retrieved: 1, successfully cleaned: 1
```
## Submit, query and retreive your own jobs
The command [`arcsub`](https://www.nordugrid.org/arc/arc6/users/client_tools.html#arcsub) allows you to submit a job given its description. One of the job description languages supported by ARC6 is the **extended Resource Specification Language (xRSL)**, described [here](https://www.nordugrid.org/arc/arc6/users/xrsl.html). We will be using that language to describe the jobs we use in these examples.
To submit a job which will execute `/usr/bin/env` and store its results in file `stdout` we can use the description included in file `arc-env.xrsl`:
```bash
$ cat arc-env.xrsl
&( executable ="/usr/bin/env")
( jobname ="arc-env-flash")
( queue ="flash")
( stdout ="stdout")
(join="yes")
( gmlog ="gmlog")
$ arcsub -C$ARC_CE arc-env.xrsl
Job submitted with jobid: https://ccarccelsst01.in2p3.fr:9443/arex/lJPNDmDMZz0n3NnJ7oI0cbupABFKDmABFKDmbRGKDmFBFKDmAQSF3n