IBM Support

multisiteinfo.pl script fails with error: cleartool: command not found

Troubleshooting


Problem

This technote explains how to resolve an error, cleartool: command not found, that can occur when running IBM Rational ClearCase MultiSite multisiteinfo.pl script.

Symptom

Running multisiteinfo.pl as described in technote 11125539 fails with an error:

cleartool: command not found

The error occurs even if you have an alias to cleartool such as:
alias cleartool                            
alias cleartool='/usr/atria/bin/cleartool'  

Example:

# perl /opt/ibm/RationalSDLC/clearcase/linux_x86/etc/utils/multisiteinfo.pl -site $(hostname) -vobtag /vobs/testvob

msinfo.pl version 3.29.06

******************************************************************

***** Vob:  /vobs/testvob

***** Site: xyz.ibm.com

***** Host: xyz.ibm.com

******************************************************************

######## Output of "cleartool -VerAll "

sh: cleartool: command not found

  System Error encountered in :

  system(cleartool -VerAll > "/usr/tmp/MultisiteInfoTemp.22230.1") returned 0x7f00:

  Command completed with non-zero exit status 127.

Cause


cleartool path must be present on PATH variable

Environment

Unix/Linux machines

Diagnosing The Problem

Run

which cleartool

or

type cleartool

to determine if cleartool is inside the PATH variable.

Resolving The Problem

Put cleartool path on PATH variable.

Linux example:

Run

PATH=$PATH:/opt/rational/clearcase/bin:/opt/rational/clearcase/etc/utils

Also to keep this change permanent, edit the login script files, for instance on Red Hat:

/etc/profile or /etc/bashrc to set this globally.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Cleartool","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"8.0;7.0;7.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21585596