Green Grid Project
Project Home
Project Background
MDS Data
Presentations
Downloads

Campus Grid Resources
grid-mapfile
Dartmouth CA
fMRIDC Grid
CGL Discovery Cluster

Green Grid: Job Management

Single Command Job Submission

To execute a single command on a remote Green Grid server use the globusjob- run command. This is a blocking command that will only return when the remote executable has finished running. You can request that the binary you submit be staged with the -stage argument for the globus-job-run command. When you stage a binary you need to make sure the executable will run on the remote system. The architecture used by the Green Grid is currently able to run binaries for the i386/i686 architecture and the x86 64 (AMD64) architecture.

[jed@mitral] ~> file /bin/hostname
/bin/hostname: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), not stripped
[jed@mitral] ~> ldd /bin/hostname
	libc.so.6 => /lib/i686/libc.so.6 (0x42000000) 
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

The file command will identify the architecture a binary was compiled for. If you submit a binary that is dynamically linked against a set of libraries you will need to make sure the libraries are available on the Green Grid or provided by your application. You can use the ldd system utility to identify library requirements of a dynamically linked executable. The following executable is a dynamically linked executable for the i386 (Intel 80386) architecture. It is linked against two system libraries which are both part of the GLIBC package. These are standard system libraries and available on all Linux systems using a recent version of GLIBC.

[jed@mitral] ~ > globus-job-run math-01.grid.dartmouth.edu /bin/hostname 
bellows-falls

Batch Submission

Long running scripts can be submitted to the Green Grid using the globus-job-submit command. Once the job is submitted you will be returned to your shell's prompt. You can query the status of your job and check the output using the contact string that is returned by the globus-job-submit program.

[jed@mitral] ~ > globus-job-submit cs-01.grid.dartmouth.edu \
    -stage /bin/hostname
https://cs-01.grid.dartmouth.edu:35030/32763/1090613434/

The globus-job-status command will take as an argument the contact string provided by globus-job-submit. It will return one of the following strings:

  • PENDING
  • RUNNING
  • DONE
  • FAILED
  • SUSPENDED

[jed@mitral] ~ > globus-job-status https://cs-01.grid.dartmouth.edu:35030\
/32763/1090613434/
DONE

[jed@mitral] ~ > globus-job-get-output https://cs-01.grid.dartmouth.edu:35030\
/32763/1090613434/
cs-01

References:

Globus Toolkit 3.2 Documentation
Documentation for Web Services (WS) and Pre-WS GRAM. The Globus Alliance.
[HTML]


Globus Toolkit 2.4 Users's Guide
GRAM client usage (globus-job-{run,submit})
[HTML]

$Id: job_management.php,v 1.2 2004/10/06 20:26:47 jed Exp jed $