(Click to open topic with navigation)
By default, Viewpoint uploads job scripts to a user-specific folder under $VIEWPOINT_HOME/uploads, such as $VIEWPOINT_HOME/uploads/tsmith. You can overwrite the location of the job script directory by setting the jobs.scripts.upload.dir property in ViewpointConfig.groovy. It specifies where Viewpoint should upload the file.
Moab must have access to the upload folder to run the scripts. This does not require any special configuration when Moab and Viewpoint run on the same machine. When they run on separate machines, however, you must use the job.scripts.remote.dir property in ViewpointConfig.groovy to override the default path to the Viewpoint job scripts. It specifies where Viewpoint should tell MWS and Moab to find the file.
You can set the jobs.scripts.upload.dir and jobs.scripts.remote.dir properties independently of each other.
The following four procedures demonstrate the correct way to set up your job script directory based on your system setup.
To set up the default job script directory on one server
The following procedure demonstrates how to set up the default job script directory when Moab and Viewpoint run on the same machine.
To set up a custom job script directory on one server
The following procedure demonstrates how to set up a custom job script directory when Moab and Viewpoint run on the same machine.
jobs.scripts.upload.dir = '/opt/viewpoint/jobScripts'
To set up the default directory when Moab and Viewpoint run on different machines
The following procedure demonstrates how to set up the default job script directory when Moab and Viewpoint run on different machines.
jobs.scripts.remote.dir = '/media/viewpoint-shared-scripts'
To set up a custom directory when Moab and Viewpoint run on different machines
The following procedure demonstrates how to set up a custom job script directory when Moab and Viewpoint run on different machines.
jobs.scripts.upload.dir = '/opt/viewpoint/common-scripts'
jobs.scripts.upload.dir = '/opt/viewpoint/common-scripts' jobs.scripts.remote.dir = '/media/job-scripts'
When user tsmith submits a job with a script called res1.sh, Viewpoint stores it at /opt/viewpoint/common-scripts/tsmith/res1.sh. Viewpoint transmits the job to MWS, setting the commandFile parameter to /media/job-scripts/tsmith/res1.sh. Viewpoint and Moab use the same actual directory, but they reference it with their own system-specific paths.
Related topics