IBM Support

"Not found" error or hang when running commands using SSH with Run Command in Rational Integration Tester

Troubleshooting


Problem

Attempts to use the IBM Rational Integration Tester (RIT) Run Command test action result in a "not found" error or hang.

Symptom

Commands that run correctly when using interactive login programs do not run through the RIT Run Command test action.

Cause


CAUSE #1
Most likely the user environment has incorrect settings when RIT connects with Run Command and SSH. When RIT connects to a server, RIT connects in a non-interactive way. The login is different from logging in with an interactive application such as Putty. The non-interactive connection does not run all of the user's login scripts.

As a consequence environment variables such as $PATH might have incorrect values. This means that RIT cannot locate and run programs.


CAUSE #2

Possibly one of the commands invokes another shell or logs into another system. This subsequent shell takes keyboard input which Run Command is unable to pass through. You need to run all Run Command steps in the same shell.

Resolving The Problem

The following steps will help you to resolve the issue, although it might not be possible to automate every remote command using RIT for the reasons mentioned above.


  1. Verify that the command works as expected when logging into the remote system using an interactive SSH client such as Putty.

  2. Look at the Run Command information in the Rational Integration Tester Knowledge Center.

  3. Speak to your system administrator who can help you to debug this issue.

  4. Log in and verify the settings of the environment variables with an SSH client program against those in Run Command.

    You can use test commands such as env and echo $PATH in the Run Command window.

  5. OPTIONAL
    Run the user's profile commands before running the actual command.

    The following example runs a shell script my_command.sh:

        $ . ~/.profile ; my_command.sh

    Note: Depending on the type of shell configured for the user, you might need to run different profile files.



REMARK
If you try to use a command that opens another shell or logs into another system, you need to convert both into a single command. This command must invoke the shell and the program together. Speak to your system administrator to see if this is possible.

For example, FTP requires a password to be entered and does not have a command option to pass it.
It also requires commands to be entered.

Create a file containing the FTP login and commands as follows:

user ftp_user ftp_password


cd whatever directory
bin
get whateverfile
quit


Run this from the Run Command with:

ftp -n server < myFTPScript

[{"Product":{"code":"SSBLQQ","label":"IBM Rational Test Workbench"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Rational Integration Tester","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.5;8.6","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 September 2018

UID

swg21608377