Applying the msub Submit Filter
When using msub to submit a job by specifying a job script, Moab will usually process that script and then send an XML representation of the job to the Moab scheduler. It is possible to change the job XML before it is sent to Moab via an msub submission filter.
The filter gives administrators the ability to customize the submission process. Customization may be helpful if jobs should have certain defaults assigned to them, if an administrator wants to keep detailed submission statistics, or if an administrator wants to change job requests based on custom needs.
The submit filter, which must be written by an administrator, is a simple executable or script that receives XML via its standard input and then returns the modified XML in its standard output. To see the schema for job submission XML, please refer to Submitting Jobs via msub in XML.
Sample Submit Filter Script
The script is executed by the user running msub.
To configure msub to use the submit filter, you must add a SUBMITFILTER parameter to the Moab configuration file (moab.cfg). The following exemplifies how you might modify the moab.cfg file:
If you experience problems with your submit filter and want to debug its interaction with msub, enter msub --loglevel=9, which causes msub to print verbose log messages to the terminal.
|© 2001-2010 Adaptive Computing Enterprises, Inc.|