version-controlclearcaseclearcase-ucmclearcase-remote-client

rcleartool login failing with Errorlevel 1


I am trying to use rcleartool command to login to ClearCase Remote Client, when I try to login I get this issue

rcleartool login -lname userid -server https://something.com/cc -pas mypassword

You are successfully logged in as "userid" to server "https://something.com/cc".

But when I run echo %ERRORLEVEL% after above command I get 1 as the output.

When I run logout after this

rcleartool logout -server https://something.com/cc

You are successfully logged out of the server https://something.com/cc

And after logout when I run echo %ERRORLEVEL% it gives 0 as output.

I am not sure why this is happening, I can login with the ClearTeam Explorer to the remote client I gave same details as the rcleartool command just that I had added group as well in the preferences tab of Clearteam Explorer, do I need to add group as well somewhere in rcleartool configuration ?

Any help would be highly appreciated

Thanks


Solution

  • There is a file at the users home directory with name .ccrccli_pref ( c:\users\username )

    we need to specify the group name in that file, content of that file can be checked with command rcleartool set

    Need to take care of \ in the file if your group name is domain\mygroupname we need to put it as domain\\mygroupname also need to put the server url in the file, after that login works fine and I can connect to clearcase