Clearcase-查找创建视图的时间 [英] Clearcase - Find out when view was created

查看:94
本文介绍了Clearcase-查找创建视图的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们周围有许多旧的快照视图,我需要找出这些快照视图的创建时间。

We have many old snapshot views lying around and I need to find out when these snapshot views were created.

有一个转折-我们不再运行ClearCase,而用于运行它的硬件也不再存在。但是,我们仍然可以使用ClearCase内部使用的所有文件,因此我可以转到目录 / usr7 / viewstore / some_snapshot_sv 并在其中滚动。

我在这些目录上有一个时间戳,但这不一定是在创建视图时。

我想知道在此目录结构中是否有某个文件可以在其中搜索创建日期。

There is a twist - we are no longer running ClearCase and the hardware we used to run it is no longer around. However, we still have all the files used internally by ClearCase still lying around, so I can go to a directory /usr7/viewstore/some_snapshot_sv and poke around.
I've got a timestamp on these directories, but this is not necessarily when the view was created.
I was wondering if somewhere in this directory structure there was a certain file in which I can search for a creation date.

我在Unix / Linux环境中。 ClearCase确实在IRIX上运行。

I'm in a Unix/Linux environment. ClearCase did run on IRIX.

谢谢。

推荐答案

与视图关联的任何元数据都处于启用状态

Any metadata associated with the view is on the view server side, where the view storage are kept.

一个可能与创建日期最接近的文件是 .hostname 文件。

它仅在创建视图时创建和更新,除非更改视图未注册,否则再也不会更改。注册(非常罕见)。

view.dat 也是不错的选择(但也可以重新生成,并且

The one file which could be the closest from the creation date would be the .hostname file within a view storage.
It is only created and updated on the view creation, and never change unless the view is unregistered, and then re-registered (very rare).
view.dat is also a good candidate (but can also be regenerated, and is for snapshot view only)

IBM文章列出了所有相关文件:

This IBM article lists all relevant files:

# .access_info
# .pid



可以用ClearCase comman重新生成的文件ds:



Files that can be regenerated with ClearCase commands:

# .compiled_spec -- regenerate by running cleartool setcs -current
# .hostname -- regenerate by unregistering and re-registering the view
# view.dat -- Snapshot views only:  
  can be regenerated by running the "regen_view_dot_dat.pl" script 
  found in <cc-home-dir>\etc\utils

有关重新生成view.dat文件的更多详细信息,请参见technote1204161。 / p>

可以通过以下方式手动替换文件:在同一用户的同一台计算机上创建新视图,然后将受影响的文件复制到视图存储中:



See technote1204161 for more details on the regenerating the view.dat file.

# config_spec
# groups.sd
# identity.sd
# view_db.state (as long as the view is not in the process 
  of being reformatted); see technote 1134858 for more information
# db/view_db.dbd (for schema 9 views only; 2002.05.00 and earlier)
# db/view_db_schema_version
# .view - The copy obtained from the new view must be edited to contain the correct information for the old view as described below. The correct information can be obtained from the output of "cleartool lsview -long <old_viewtag>".




  • 第1行:视图存储目录的位置,以主机名:路径名格式

  • 第2行:视图的UUID(唯一标识符),不得更改

  • 第3行:第1行中指定的主机名

    • Line 1: the location of the view storage directory, in hostname:pathname format
    • Line 2: the view's UUID (unique identifier), which must not be changed
    • Line 3: the hostname specified in line 1
    • # All other files in the db directory except the ones mentioned above 
        ( view_db_schema_version and view_db.dbd)
      

      这篇关于Clearcase-查找创建视图的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆