Skip to content
oweidner edited this page Mar 1, 2012 · 28 revisions

PBS over SSH Plug-In

The PBS over SSH plug-in interfaces with a remote PBS, PBS Pro or TORQUE scheduler via SSH. The plug-in supports the job API as well as the SD (Service Discovery) API. The adaptor supports custom security contexts of the type saga.context.SSH

URL schema to trigger the plugin is: pbs+ssh://

Example usage:

ctx = saga.Context()
ctx.type = saga.Context.SSH
ctx.userid  = 'username' # like 'ssh username@host ...'
ctx.usercert = '/Users/username/.ssh/id_rsa_special' # like ssh -i ...'

session = saga.Session()
session.contexts.append(ctx)
 
# a pbs+ssh job service
js = saga.job.Service("pbs+ssh://alamo.futuregrid.org", session=session)

# a pbs+ssh service discoverer
sdd = saga.sd.Discoverer("pbs+ssh://alamo.futuregrid.org", session=session)

SFTP Plug-In

The SFTP plug-in supports file transfer to and from remote hosts via SSH/SFTP. The plug-in supports the file API. The adaptor supports custom security contexts of the type saga.context.SSH

URL schema to trigger the plugin is: sftp://

Example usage:

ctx = saga.Context()
ctx.type = saga.Context.SSH
ctx.userid  = 'username' # like 'ssh username@host ...'
ctx.usercert = '/Users/username/.ssh/id_rsa_special' # like ssh -i ...'

session = saga.Session()
session.contexts.append(ctx)
 
# an sftp remote directory service
dir = saga.file.Directory("sftp://alamo.futuregrid.org/home/username/myapp", session=session)
dir.make_dir("run_01")