Delegating Proxies to ARC CEs

From GridPP Wiki
Revision as of 12:27, 12 November 2014 by Jonathan Perkin ef8940a65f (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:


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


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}

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

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