问题
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)
来源:https://stackoverflow.com/questions/7864492/how-does-one-find-the-clearcase-registry-server-name-for-a-view