In ClearCase, the lsview command lists one or more views, including nonactive dynamic views. In ClearCase LT, lsview lists views registered at the ClearCase LT server host. To be accessible to cleartool subcommands , a view requires these registry entries:
These files, view_object and view_tag, constitute the view registry on the network's registry server host. For more information about registry files, see the Administrator's Guide.
In ClearCase, the lsview command lists all views registered for the current network region by default, whether or not they are active. The default output line for each listed view shows:
the view is active on the host (* indicates
the active dynamic view; active snapshot views are listed, but not annotated
with a *)
Note: lsview does not report unmounted local views as active even if they have running servers. Also, lsview does not report removed views as active.
- The view tag
- The view-storage directory pathname
OPTIONS AND ARGUMENTS
- ClearCase: See
the “ClearCase—Default Output” section.
ClearCase LT: Similar to that of ClearCase, but no information about dynamic views is listed.
- Restricts the listing to view tags only.
- Expands the listing to include all information
stored in the view registry regarding the listed views.
ClearCase—The network accessibility information includes the global path to the view if a value is set for this property; otherwise, lists the host name and host-local path only.
ClearCase LT—The network accessibility information lists the host name and the host-local path.
- –pro·perties [ –ful·l ]
- Reports the following properties:
and by whom the view was created, last modified, and last accessed
for the view owner, view group members, and others
With the –full option, reports the following additional properties:
and by whom view-private data was last accessed
and by whom a view-private object was last updated
and by whom the config spec was last updated
a dynamic view, when and by whom a derived object was last created, promoted,
and winked in
a dynamic view, whether it creates shareable derived objects or nonshareable
view's text mode
the view is a dynamic view or a snapshot view
the view is read-only or writable
- When and by whom the view was created, last modified, and last accessed
- Reports when and by whom the view was last
accessed. Because view access events are updated only every 60 seconds, lsview may
not report all recent events.
Specifying the Views
- ClearCase: Views
registered for the local network region.
ClearCase LT: All views registered at the ClearCase LT server host.
- –hos·t hostname
- Confines the listing to views whose storage
directories reside on host hostname.
- –reg·ion network-region
- Confines the listing to the views registered
for a particular network region. (The mkview and mktag commands have a –region option,
which can be used to assign view tags to specific network regions.) The network-region argument
can include pattern-matching characters as described in wildcards_ccase.
If the network-region argument includes pattern-matching
characters, enclose it in single quotes.
- Lists the current view. On UNIX systems, lsview lists
the working directory view, if there is one; otherwise, it lists the set view.
- view-tag ...
- Specifies a single view to be listed. The
view must be registered, but it need not be active to be listed with lsview.
The view-tag argument can include pattern-matching
characters as described in the wildcards_ccase reference
page. Enclose in single-quotes any view-tag argument
that includes pattern-matching characters.
- –sto·rage view-storage-dir-pname ...
- One or more views, identified by full pathnames
to their storage directories.
- –uui·d view-uuid
- A single view, specified by its UUID (universal
The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
the views registered for the local network region.
* mainRel5 /net/host5/usr/viewstore/ainRel5.vws
* anneTest /net/host2/usr/anne/viewstore/anneTest.vws
* nordRel5 /net/host4/usr/viewstore/nordRel5.vws
using the long display format, the registry information for the view with
view tag mainRel5.
cmd-context lsview –long mainRel5
Global path: \\pluto\viewshare\mainRel5.vws
Server host: pluto
View tag uuid:a9c1ba4d.853e11cc.a96b.08:00:69:06:05:d8
View on host: pluto
View server access path: C:\views\mainRel5.vws
View uuid: a9c1ba4d.853e11cc.a96b.08:00:69:06:05:d8
- For a particular host, list the views whose view tags match a wildcard pattern.
full view properties.
cmd-context lsview –properties –full anne_main
Created 18-Jun-99.17:41:34 by anne.user@saturn
Last modified 22-Jul-99.15:42:16 by sue.user@pluto
Last accessed 22-Jul-99.15:42:16 by sue.user@pluto
Last read of private data 21-Jul-99.17:06:20 by anne.user@saturn
Last derived object promotion 11-Mar-184.108.40.206 by anne.user@saturn
Last config spec update 18-Jun-99.17:55:27 by anne.user@saturn
Last derived object winkin 21-Jul-99.17:05:49 by anne.user@saturn
Last derived object creation 21-Jul-99.17:06:18 by anne.user@saturn
Last view private object update 22-Jul-99.15:42:16 by sue.user@pluto
Text mode: msdos
Properties: dynamic readwrite shareable_dos
Owner: ACME\anne : rwx (all)
Group: ACME\user : rwx (all)
Other: : r-x (read)