IBM Support

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

Technote (troubleshooting)


Problem(Abstract)

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.

Document information

More support for: Rational ClearCase
Cleartool

Software version: 7.0, 7.1, 8.0

Operating system(s): AIX, Linux, Solaris

Reference #: 1585596

Modified date: 12 March 2012