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

来源:互联网 发布:win10和mac os 编辑:程序博客网 时间:2024/06/05 22:21

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