You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

FEATURE AVAILABILITY STARTING FROM RELEASE 1.9

UNDER CONSTRUCTION

Mode Of Operation

To use the SSH Session Management you have to configure your SSH Job and define a second jobchain for the cleanup work.

Ths feature is available only with the use of the JSch implementation by JCraft. To configure your SSH Job to use the JSch implementation, see How To - Usage of the SOSSSHJob2JSAdapter Job with JCrafts JSch .

 

Adjust the SSH Job to be monitored

To be able to monitor the SSH Job you have to add some additional parameters to the job configuration. 

runWithWatchdog

  • format:
    • true/false
  • default value:
    • false
  • description:
    • If this parameter is set to true, the job itself is aware that it is monitored and generates an new order for the second jobchain with all parameters of the job and the pid of the connected shell. If the parameter is set to false or is not present the SSH Session Management will not be processed.

cleanupJobchain

  • format:
    • path to the configuration files of the jobchain
  • default value:
    • empty
  • description:
    • This parameters defines the jobchain to use for the cleanup work.

ssh_job_kill_pid_command

  • format:
    • <command> \${pid}
  • default value:
    • kill -9 \${pid}
  • description:
    • The command to kill a process on the remote machine. The command depends on the OS of the remote host. If the command is not set, the cleanup Job checks the remote host if it runs on Linux or Windows and uses the related default commands.
      The placeholder ${pid} will be substituted by the cleanup job and the leading $ character has to be escaped.

ssh_job_terminate_pid_command

  • format:
    • <command> \${pid}
  • default value:
    • kill -15 \${pid}
  • description:
    • The command to terminate a process on the remote machine. The command depends on the OS of the remote host. If the command is not set, the cleanup Job checks the remote host if it runs on Linux or Windows and uses the related default commands.
      The placeholder ${pid} will be substituted by the cleanup job and the leading $ character has to be escaped with \.

ssh_job_get_pid_command

  • format:
    • <command>
  • default value:
    • echo $$
  • description:

ssh_job_get_active_processes_command

  • format:
  • default value:
  • description:

 

  • No labels