lsview

Lists view registry entries

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand
ClearCase LTcleartool subcommand

Platform
UNIX
Windows

SYNOPSIS

  • ClearCase:
    lsview [ –s·hort | –l·ong ] [ –hos·t hostname ]
    [ –pro·perties [ –ful·l ] | –age ] [ –reg·ion network-region ]
    [ –cview | view-tag ... | –sto·rage view-storage-dir-pname ...
    | –uui·d view-uuid ]

  • ClearCase LT:
    lsview [ –s·hort | –l·ong ] [ –pro·perties [ –ful·l ] | –age ]
    [ –cview | view-tag ... | –sto·rage view-storage-dir-pname ...
    | –uui·d view-uuid ]

DESCRIPTION

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:

  • One entry in the view_object registry file
  • One or more entries in the view_tag registry file

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.

ClearCase—Default Output

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:

  • Whether 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

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

Listing Format

Default
ClearCase: See the “ClearCase—Default Output” section.

ClearCase LT: Similar to that of ClearCase, but no information about dynamic views is listed.

–s·hort
Restricts the listing to view tags only.

–l·ong
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:
  • When and by whom the view was created, last modified, and last accessed

  • Permissions for the view owner, view group members, and others

With the –full option, reports the following additional properties:

  • When and by whom view-private data was last accessed

  • When and by whom a view-private object was last updated

  • When and by whom the config spec was last updated

  • For a dynamic view, when and by whom a derived object was last created, promoted, and winked in

  • For a dynamic view, whether it creates shareable derived objects or nonshareable derived objects

  • The view's text mode

  • Whether the view is a dynamic view or a snapshot view

  • Whether the view is read-only or writable

–age
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

Default
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.

–cvi·ew
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 unique identifier).

EXAMPLES

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.

  • List the views registered for the local network region.

    cmd-context lsview 
    *   mainRel5     /net/host5/usr/viewstore/ainRel5.vws
        anneRel5     /net/host5/usr/viewstore/anneRel5.vws
    *   anneTest     /net/host2/usr/anne/viewstore/anneTest.vws
        nordTest     /net/host2/usr/nord/nordTest.vws
    *   nordRel5     /net/host4/usr/viewstore/nordRel5.vws
        nordRel4      /net/host8/usr/viewstore/nordRel4.vws

  • List, using the long display format, the registry information for the view with view tag mainRel5.

    cmd-context lsview –long mainRel5 
    Tag: mainRel5
     Global path: \\pluto\viewshare\mainRel5.vws
     Server host: pluto
     Region: main_headqtrs
     Active: YES
     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.

    cmd-context lsview –host saturn '*anne*' 
    *   anne_main     /net/saturn/usr/anne/views/anne_main.vws
        anne_rel2     /net/saturn/usr/anne/views/anne_rel2.vws

  • List full view properties.

    cmd-context lsview –properties –full anne_main 
      anne_main         \\saturn\disk1\views\anne_main.vws
    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-99.12.31.20 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)

SEE ALSO

mktag, mkview, register, unregister, wildcards_ccase, Administrator's Guide



Copyright© 2003 Rational Software. All Rights Reserved.