How to create new view by using cleartool command in Clearcase?

How to create a view by using cleartool command? 

----Basic idea: user mkview


1. Check the parameter of this command first:

C:\Users\E885889>cleartool mkview

cleartool: Error: View directory pathname must be specified.
cleartool: Error: View tag must be specified.
Usage: mkview -tag dynamic-view-tag [-tcomment tag-comment] [-tmode text-mode]
              [-region network-region | -stream stream-selector]
              [-shareable_dos | -nshareable_dos] [-cachesize size]
              { -stgloc {view-stgloc-name | -auto}
              | [-host hostname -hpath host-stg-pname -gpath global-stg-pname]
                dynamic-view-storage-pname
              }
       mkview -snapshot [-tag snapshot-view-tag]
              [-tcomment tag-comment] [-tmode text-mode]
              [-cachesize size] [-ptime] [-stream stream-selector]
              [ -stgloc view-stgloc-name
              | -colocated_server [-host hostname -hpath host-snapshot-view-pnam
e -gpath global-snapshot-view-pname]
              | -vws view-storage-pname [-host hostname -hpath host-stg-pname -g
path global-stg-pname]

              ] snapshot-view-pname


2. Check your stgloc server address

C:\Users\E885889>cleartool lsstgloc
  ch01w0100_ccstg_e_vobs \\ch01w0100\ccstg_e\VOBs
  ch01w0107_ccstg_d_views \\ch01w0107\ccstg_d\views


3. Execute the command

C:\Users\E885889>cleartool mkview -tag E885889_1112_view -stgloc ch01w0107_ccstg_d_views
Created view.
Host-local path: ch01w0107:D:\ClearCase_Storage\views\PACRIM1\E885889\E885889_11
12_view.vws
Global path:     \\ch01w0107\ccstg_d\views\PACRIM1\E885889\E885889_1112_view.vws


4. A dynamic view is created on your server now!!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值