I want to use the cleartool lsview -quick command but it requires a host name argument, also called a "registry server". Can one use a cleartool command or examine a client log file to determine which host/registry server a given view is using?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I should have looked harder. The answer is cleartool hostinfo -long
which will include the Registry host in the output listing.
回答2:
cleartool hostinfo
is not ideal, because not always meant to be parsed (on Unix for instance, it can be truncated)
On Windows, I would prefer fetching that information directly from the registry, which should be under HKLM\Software\Atria\ClearCase\CurrentVersion
- (I'll check tomorrow)
reg query HKLM\Software\Atria\ClearCase\CurrentVersion -v AtriaRegy
(a bit like when you have to manually switch registry server)