Before doing anything else, please verify the system date on your local machine. It needs to be reasonably accurate for the grid security infrastructure to work.
date
date MMDDhhmmto check the current time
to set the current time
At the beginning of every shell session, you will need to set some environment variables and initialize a grid proxy. This can be done by issuing the following commands:
source ~/ldg-3.0/setup.sh
grid-proxy-initNote: The source command assumes the LSC DataGrid Client software was installed into your home directory. Adjust if necessary.
You can quickly verify that the setup script worked correctly by issuing the command:
echo $GLOBUS_LOCATION
This variable should have a value associated with it (e.g. /home/<userid>/ldg-3.0/globus).
Problems? Contact support.
This should find the ssh executable in the ~/ldg-3.0/globus/bin directory.which ssh
At this point, you should be able to ssh to any of the LSC DataGrid servers without specifying a password (the grid proxy certificate is used instead), e.g.:
ssh ldas-grid.ligo-la.caltech.edu
Exit the remote shell to return back to your local machine.
exit
Problems? Contact support.
globus-hostname
If the server, ldas-grid.ligo-la.caltech.edu, cannot open connections back to your machine using this name, then issue the following export command:
export GLOBUS_HOSTNAME=141.142.22.154 <-- IP Address of your client machine
Copy a local file to a remote GridFTP server by doing something like this:
Problems? Contact support.# create a test file
cd
cat >mytestfile.txt
line1
line2
line3
<Cntl-D># send it to server
globus-url-copy file:/home/<userid>/mytestfile.txt \
gsiftp://ldas-grid.ligo-la.caltech.edu/data2/<userid>/mytestfile.txt
# check that file transferred okayssh ldas-grid.ligo-la.caltech.edu
ls
cat mytestfile.txt
exit