简体   繁体   English

rcleartool 登录失败,错误级别为 1

[英]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 命令登录到 ClearCase 远程客户端,当我尝试登录时出现此问题

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

You are successfully logged in as "userid" to server "https://something.com/cc".您已成功以“userid”身份登录到服务器“https://something.com/cc”。

But when I run echo %ERRORLEVEL% after above command I get 1 as the output.但是当我在上述命令之后运行 echo %ERRORLEVEL% 时,我得到 1 作为 output。

When I run logout after this当我在此之后运行注销时

rcleartool logout -server https://something.com/cc rcleartool 注销-服务器 https://something.com/cc

You are successfully logged out of the server https://something.com/cc您已成功登出服务器https://something.com/cc

And after logout when I run echo %ERRORLEVEL% it gives 0 as output.注销后,当我运行 echo %ERRORLEVEL% 时,它会给出 0 作为 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?我不确定为什么会这样,我可以使用 ClearTeam Explorer 登录到远程客户端我提供了与 rcleartool 命令相同的详细信息,只是我在 Clearteam Explorer 的首选项选项卡中添加了组,我需要添加组吗以及 rcleartool 配置中的某个地方?

Any help would be highly appreciated任何帮助将不胜感激

Thanks谢谢

There is a file at the users home directory with name .ccrccli_pref ( c:\users\username )用户主目录中有一个名为.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我们需要在该文件中指定组名,可以使用命令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如果您的组名是 domain\mygroupname 需要注意文件中的 \ 我们需要将其作为 domain\\mygroupname 还需要将服务器 url 放入文件中,之后登录工作正常,我可以连接到 clearcase

Looking at rcleartool man page , check first if this is more reliable than %ERRORLEVEL%查看rcleartool手册页,首先检查这是否比%ERRORLEVEL%更可靠

rcleartool -status

That would return the status (0 or 1) of each rcleartool subcommand that is executed (however, that would be in an interactive session).这将返回每个执行的rcleartool子命令的状态(0 或 1)(但是,这将在交互式会话中)。 If the issue is the same, then yes, try and add the group in your configuration.如果问题相同,那么可以,尝试在您的配置中添加组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM