Difference between revisions of "Swestore/Lund Seminar Apr18"

From SNIC Documentation
Jump to: navigation, search
(Links)
(proxy_transfer package)
Line 13: Line 13:
 
[http://download.nordugrid.org/repos-13.02.html Installing NorduGrid Client]
 
[http://download.nordugrid.org/repos-13.02.html Installing NorduGrid Client]
  
== proxy_transfer package ==
+
== proxy_upload script ==
 +
 
 +
<nowiki>#!/bin/bash
 +
 
 +
if [ $# -ne 2 ]
 +
then
 +
  echo "Usage: `basename $0` hostname username"
 +
  exit $E_BADARGS
 +
fi
 +
 
 +
proxyPath=/tmp/x509up_u$UID
 +
 
 +
echo "Generating proxy certificate."
 +
arcproxy --proxy=$proxyPath
 +
echo
 +
 
 +
if [ -e $proxyPath ] ; then
 +
        echo "Found generated proxy certificate : $proxyPath"
 +
else
 +
        echo "Could not find any proxy certificate."
 +
        return -1
 +
fi
 +
 
 +
uuid=`uuidgen`
 +
 
 +
remoteProxyPath=/tmp/x509_up_$2_$uuid
 +
 
 +
echo
 +
echo "Uploading proxy certificate to $1."
 +
scp -p -q $proxyPath $2@$1:$remoteProxyPath
 +
 
 +
echo
 +
echo "-------------------------------------------------------------"
 +
echo "To use the uploaded proxy on $1, issue the"
 +
echo "following command:"
 +
echo
 +
echo "proxy_use"
 +
echo "-------------------------------------------------------------"
 +
echo</nowiki>

Revision as of 21:29, 18 April 2013

Slides

File:Swestore slides sem apr15.pdf

Links

General information on SweStore

Applying for storage

Applying for certificate

Installing NorduGrid Client

proxy_upload script

#!/bin/bash if [ $# -ne 2 ] then echo "Usage: `basename $0` hostname username" exit $E_BADARGS fi proxyPath=/tmp/x509up_u$UID echo "Generating proxy certificate." arcproxy --proxy=$proxyPath echo if [ -e $proxyPath ] ; then echo "Found generated proxy certificate : $proxyPath" else echo "Could not find any proxy certificate." return -1 fi uuid=`uuidgen` remoteProxyPath=/tmp/x509_up_$2_$uuid echo echo "Uploading proxy certificate to $1." scp -p -q $proxyPath $2@$1:$remoteProxyPath echo echo "-------------------------------------------------------------" echo "To use the uploaded proxy on $1, issue the" echo "following command:" echo echo "proxy_use" echo "-------------------------------------------------------------" echo