ClearTeam 8.x
As mentioned in "The ClearCase 8.x remote client command-line interface (rcleartool
)":
rcleartool
is the command-line interface to the IBM Rational ClearCase remote client (CCRC).
This interface, first released as a separate download for compatibility with V7.1.2.x and later releases, is delivered in V8.0.0.3 with the changes that are described in this document.
rcleartool login
wasn't caching credentials before (7.x).
It should cache those credential now.
The CR 3508 mentions that enhancement has been delivered June 14th 2013 the RFE (Request for Enhancement):
In CCRC CLI single-line mode, you should only specifiy your login credentials once.
Session caching for rcleartool
was delivered in 8.0.0.3
That means after one rcleartool login -lname xxx -server xxx -password xxx
, all other rcleartool
commands shouldn't need login/password anymore.
ClearCase 7.x
You can try and follow the IBM article "How to run rcleartool without entering username, password and server URL every time"
It suggests modifying the rcleartool.bat
script.
Cause
Normally when one runs rcleartool
(not under rcleartool
prompt), he needs to input username, password and server URL every time.
For instance:
rcleartool lsvob -username myusername -password mypassword -server http://myserver:12080/TeamWeb/services/Team
rcleartool lsview -username myusername -password mypassword -server http://myserver:12080/TeamWeb/services/Team
Answer
You can backup the original rcleartool.bat
(rcleartool
under UNIX) and then modify that file as follows:
Locate the following line in rcleartool.bat
"%_JAVACMD%" -Djava.util.logging.config.file="%CCRCCLI%/logging.properties" -cp "%CM_API_DIR%stpwvcm.jar";"%CM_API_DIR%stpcmmn.jar";"%CM_API_DIR%stpcc.jar";"%CM_API_DIR%
emote_core.jar";"%CM_API_DIR%commons-httpclient-3.0.jar";"%CM_API_DIR%commons-codec-1.3.jar";"%CCRCCLI%commons-cli-1.1.jar";"%CM_API_DIR%icu4j-3_8.jar";"%CM_API_DIR%commons-logging-1.0.4.jar";"%CCRCCLI%
cleartool.jar" com.ibm.rational.ccrc.cli.command.ClearWan %*
Add the username, password and server URL at the end
"%_JAVACMD%" -Djava.util.logging.config.file="%CCRCCLI%/logging.properties" -cp "%CM_API_DIR%stpwvcm.jar";"%CM_API_DIR%stpcmmn.jar";"%CM_API_DIR%stpcc.jar";"%CM_API_DIR%
emote_core.jar";"%CM_API_DIR%commons-httpclient-3.0.jar";"%CM_API_DIR%commons-codec-1.3.jar";"%CCRCCLI%commons-cli-1.1.jar";"%CM_API_DIR%icu4j-3_8.jar";"%CM_API_DIR%commons-logging-1.0.4.jar";"%CCRCCLI%
cleartool.jar" com.ibm.rational.ccrc.cli.command.ClearWan %* -username myusername -password mypassword -server http://myserver:12080/TeamWeb/services/Team
After making the above change, rcleartool can be used without entering a username, password and server URL every time.
For instance,
rcleartool lsvob
rcleartool lsview
Note that there is still a need for running rcleartool
directly (not in rcleartool
prompt) such as:
- Being able to capture the result with > operator.
- Being able to run in a batch file.