Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Display feature availability
StartingFromRelease1.9

Mode Of Operation

The SOSSSHJob2JSAdapter can run with either the Trilead implementation (default) or the JSch implementation by JCraft.

The JSch implementation for SSH connections SOSSSHJob2JSAdapterJSch uses the JSch implementation from JCraft for SSH connections and adds the use of return values to the already existing functionality of the SOSSSHJob2JSAdapter class.

To use the JSch implementation you have to configure the following parameter in the params section of the scheduler.xml.

Code Block
languagexml
<param name="jitl.ssh.use_jsch_impl" value="true"/>

The Job sets an environment variable to the session on the remote host with the name SCHEDULER_RETURN_VALUES which is available for the script or command to be executed on the remote machine. The value (the name of the temporary file) for this environment variable will be generated at runtime. After the execution of the script or command the jobs reads the return values from that temporary file on the remote host, returns them to the Jobscheduler for further processing and deletes the temporary file afterwards.

...

  • format: 
    • <command> <placeholder>
  • default value: 
    • rm %s
  • description:
    • The command to delete the temporary file with the return values. The placeholder will be substituted during the job execution. 

Configuration

The SOSSSHJob2JSAdapterJSch job will replace the existing SOSSSHJob2JSAdapter Job in future releases. Image Added

To use the return-values-feature configure a SSH job with JOE and choose SOSSSHJob2JSAdapterJSchSOSSSHJob2JSAdapter

...

Example of the parameter configuration for a Windows Client 

...