This tableau is intended to get you started with Globus in something less that the 35 pages contained in the Globus Quick-start guide. These instructions are valid on any machine listed in the machine list for this class, and no others. That is not to say that some variation will not work in other environments, but these examples work exactly as depicted on the machines in the machine list.
WARNING: Graziano Obertelli and Martin Swany are NOT TAs for this class, nor are they your tutors. They are professional research staff members of my group who have installed Globus and the NWS (respectively) on the UCSB instructional machines as a courtesy. DO NOT contact them directly with questions or bug reports. That includes email contact, phone contact, and personal contact. There are ample Globus and NWS references and documentation, many pointers to which are shown above. Graziano and Martin are not reference material nor are they on-call to help you use Globus or the NWS. All questions regarding Globus and the NWS must be directed to The TAs at all times (including times when you think these systems aren't working and the TAs are not immediately available). Your grade in this class will suffer severely if you do not direct all questions regarding Globus and the NWS to either The TAs or to me. The only exception to this iron-clad requirement is when you email Graziano your user-cert-request as described below.
export GLOBUS_LOCATION=/usr/local/globus . $GLOBUS_LOCATION/etc/globus-user-env.sh
setenv GLOBUS_LOCATION /usr/local/globus source $GLOBUS_LOCATION/etc/globus-user-env.csh
cd ~ mkdir .globus
grid-cert-requestand follow the instructions. You will be asked to type in a pass phrase (twice). If you lose this pass phrase, you will have to re-do the entire process so please keep track of it. You will then be asked to mail your certificate to the CA (who happens to be Graziano, in our case).
grid-proxy-initand you will asked for your pass phrase. Once you have successfully authenticated yourself to the proxy, it will handle your authentication duties for a fixed amount of time (24 hours, by default). Every time you invoke a Globus command that requires authentication, the proxy will handle the necessary certificate and RSA challenge functions for you without asking you for a password. Typing
grid-proxy-init -timeleftwill tell you how much time is left before the proxy expires.
grid-info-search -x -b 'mds-vo-name=mayhem, o=Grid' -h pompone.cs.ucsb.edu -p 2135 'Mds-Host-hn=*'all on one line, exactly as shown. If you want information on one host (marge.cs.ucsb.edu, say) type
grid-info-search -x -b 'mds-vo-name=mayhem, o=Grid' -h pompone.cs.ucsb.edu -p 2135 'Mds-Host-hn=marge'again, exactly as shown. If you add the .cs.ucsb.edu to name dagwood, it will fail.
Anyway, you need to specify a different part for the tree and a different GIIS to use. Getting the NWS CPU data for marge, you would type
ldapsearch -x -h dreadnought.cs.ucsb.edu -p 3389 -b "o=data,service=nws,o=grid" "forecast=*marge*CPU*"
globusrun -r resource_contact_string RSL_stringIn our environment, for reasons explained in the lecture, the contact string contains redundant information. If you wish to run "/bin/date" on marge.cs.ucsb.edu, here is the command you must issue:
globusrun -o -r marge:2119:/O=Grid/O=ucsb/CN=marge.cs.ucsb.edu '&(executable=/bin/date)'exactly as shown. If you inadvertently move the ".cs.ucsb.edu" parts of this string around, it will fail.