...
To use the return-values-feature configure a SSH job with JOE and choose SOSSSHJob2JSAdapter
.
Example: minimum configuration of a SSH Job
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="ISO-8859-1"?>
<job title="Launch remote commands or executable files by SSH" stop_on_error="no">
<description >
<include file="jobs/JobSchedulerSSHJob.xml"/>
</description>
<params >
<param name="host" value="HOSTNAME"/>
<param name="port" value="22"/>
<param name="user" value="USERNAME"/>
<param name="password" value="PASSWORD"/>
<param name="auth_method" value="password"/>
<param name="command" value="printenv"/>
</params>
<script language="java" java_class="sos.scheduler.job.SOSSSHJob2JSAdapter"/>
<run_time />
</job> |
For known limitations using the SSH Job to connect to a Windows Remote Host see Limitations when using SSH jobs for Windows.
...