IPnom Home • Manuals • ClearCase

 Rational ClearCase Commands Reference

ClearCase Stuff:ClearCase LinksClearCase BooksClearCase Commands ReferenceClearCase ForumsClearCase News
Keyword Live Search (10 results max):
 Type in part of a ClearCase command in the search box.
 
Commands Index:
  intro
  annotate
  apropos
  catcr
  catcs
  cc.icon
  cc.magic
  cd
  chactivity
  chbl
  checkin
  checkout
  checkvob
  chevent
  chflevel
  chfolder
  chmaster
  chpool
  chproject
  chstream
  chtype
  chview
  clearaudit
  clearbug
  cleardescribe
  cleardiffbl
  cleardiff
  clearexport_ccase
  clearexport_cvs
  clearexport_pvcs
  clearexport_rcs
  clearexport_sccs
  clearexport_ssafe
  clearfsimport
  cleargetlog
  clearhistory
  clearimport
  clearjoinproj
  clearlicense
  clearmake
  clearmake.options
  clearmrgman
  clearprojexp
  clearprompt
  cleartool
  clearviewupdate
  clearvobadmin
  comments
  config_ccase
  config_spec
  cptype
  credmap
  creds
  deliver
  describe
  diffbl
  diffcr
  diff
  dospace
  edcs
  endview
  env_ccase
  events_ccase
  export_mvfs
  exports_ccase
  file
  find
  findmerge
  fmt_ccase
  getcache
  get
  getlog
  help
  hostinfo
  init_ccase
  ln
  lock
  lsactivity
  lsbl
  lscheckout
  lsclients
  lscomp
  lsdo
  lsfolder
  lshistory
  ls
  lslock
  lsmaster
  lspool
  lsprivate
  lsproject
  lsregion
  lsreplica
  lssite
  lsstgloc
  lsstream
  lstype
  lsview
  lsvob
  lsvtree
  makefile_aix
  makefile_ccase
  makefile_gnu
  makefile_pmake
  makefile_smake
  makefile_sun
  man
  merge
  mkactivity
  mkattr
  mkattype
  mkbl
  mkbranch
  mkbrtype
  mkcomp
  mkdir
  mkelem
  mkeltype
  mkfolder
  mkhlink
  mkhltype
  mklabel
  mklbtype
  mkpool
  mkproject
  mkregion
  mkstgloc
  mkstream
  mktag
  mktrigger
  mktrtype
  mkview
  mkvob
  mount_ccase
  mount
  msdostext_mode
  mvfslog
  mvfsstorage
  mvfstime
  mvfsversion
  mv
  omake
  pathnames_ccase
  permissions
  profile_ccase
  promote_server
  protect
  protectvob
  pwd
  pwv
  query_language
  quit
  rebase
  recoverview
  reformatview
  reformatvob
  register
  relocate
  rename
  reqmaster
  reserve
  rgy_backup
  rgy_check
  rgy_passwd
  rgy_switchover
  rmactivity
  rmattr
  rmbl
  rmbranch
  rmcomp
  rmdo
  rmelem
  rmfolder
  rmhlink
  rmlabel
  rmmerge
  rmname
  rmpool
  rmproject
  rmregion
  rmstgloc
  rmstream
  rmtag
  rmtrigger
  rmtype
  rmver
  rmview
  rmvob
  schedule
  schemes
  scrubber
  setactivity
  setcache
  setcs
  setplevel
  setsite
  setview
  shell
  snapshot.conf
  softbench_ccase
  space
  startview
  type_manager
  umount
  uncheckout
  unlock
  unregister
  unreserve
  update
  version_selector
  view_scrubber
  vob_restore
  vob_scrubber
  vob_sidwalk
  vob_snapshot
  vob_snapshot_setup
  wildcards_ccase
  winkin
  xclearcase
  xcleardiff
  xmldiffmrg

lsprivate

Lists objects in a dynamic view's private storage area

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand

Platform
UNIX
Windows

SYNOPSIS

lsp·rivate [ –tag view-tag ] [ –inv·ob vob-selector ] [ –l·ong | –s·hort ]
[ –siz·e ] [ –age ] [ –co ] [ –do ] [ –oth·er ]

DESCRIPTION

The lsprivate command lists the file system objects that belong to a dynamic view:

  • View-private files, links, and directories
  • Derived objects
    • Nonshareable derived objects
    • Unshared derived objects
    • Shared derived objects that are cataloged in (visible through) the dynamic view, even though their data containers are stored in a VOB storage pool
  • Checked-out versions of file elements

Except for the shared derived objects, all of these objects are stored in the dynamic view's private storage area.

This command does not list checked-out directory elements, because such a checkout does not produce a view-private object. To list directory checkouts, use the lscheckout command.

The objects are listed with full pathnames (thus including the VOB tag), one per line.

Note: lsprivate does not work in a snapshot view. In a snapshot view, (cleartool) ls -recurse -view_only provides output equivalent to that of lsprivate.

Stranded View-Private Files

lsprivate sometimes lists a view-private file in a special way, because the file has become stranded: it has no name in the VOB namespace, as currently constructed by your dynamic view. There are several possible causes and, hence, several actions you can take.

File Still Accessible Through Some Directory Version

The lsprivate listing for a file can include a version-extended pathname to some directory element:

/usr/hw/src@@/main/3/subdir1/canUCme

In this example, file canUCme is stranded because its parent directory, subdir1, does not appear in the dynamic view as it is currently configured; but the file can be accessed through version /main/3 of directory element src, which contains an entry for subdir1. (Note that you cannot use this pathname to access the view-private object. A version-extended pathname can refer only to an element, branch, or version—not to a view-private file.)

To make a stranded file visible again, you must make its parent directory visible, by reconfiguring the dynamic view (in this case, to select version /main/3 of directory element src).

VOB Is Inactive

If a VOB is not currently active on your host, all view-private files corresponding to that VOB are temporarily stranded. lsprivate displays a warning message and prefixes a number sign (#) to pathnames within that VOB:

cleartool: Warning: VOB not mounted: “M:\jc_vw\jc_hw”
  VOB UUID is 1127d379.428211cd.b3fa.08:00:69:06:af:65
.
.
..
#M:\jc_vw\jc_hw\src\.cmake.state
#M:\jc_vw\jc_hw\src\findmerge.log.18-Mar-99.13:43:27
#M:\jc_vw\jc_hw\src\hello
#M:\jc_vw\jc_hw\src\hello.o
.
.
.

Reactivating the VOB on your host restores lsprivate command output to normal for pathnames within that VOB.

VOB Is Inaccessible

If a VOB has been unregistered, all view-private files corresponding to that VOB are temporarily stranded; if the VOB has been deleted, the view-private files are stranded permanently. lsprivate cannot distinguish these cases; it may infer the VOB's likely VOB tag, but it lists the view-private files with an Unavailable–VOB prefix:

cleartool: Error: Unable to get VOB object registry information for
  replica uuid "1127d379.428211cd.b3fa.08:00:69:06:af:65".
cleartool: Warning: VOB is unavailable -- using name: "<Unavailable-VOB-1>".
  If it has been deleted use 'recoverview -vob <uuid>'
  VOB UUID is 1127d379.428211cd.b3fa.08:00:69:06:af:65
  Last known location of storage is phobos:/usr/people/avid/tut/tut.vbs
#<Unavailable-VOB-1>/<DIR-3587d464.428211cd.b40c.08:00:69:06:af:65>
/.cmake.state
#<Unavailable-VOB-1>/<DIR-3587d464.428211cd.b40c.08:00:69:06:af:65>
/findmerge.log.18-Mar-99.13:43:27

The procedure for cleaning up stranded view-private files is described in the Administrator's Guide.

Directory Element Has Been Deleted

If a directory element (or its entire VOB) has been deleted, all the corresponding view-private files are permanently stranded. They are listed with the VOB's UUID, as above, with no remedy possible, except to use recoverview to move the files to the dynamic view's lost+found directory (as described in the Administrator's Guide).

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

Specifying the View

Default
The current dynamic view is listed; a working directory view takes precedence over a set view.

–tag view-tag
The view tag of any registered dynamic view to which you have read access.

Listing Style

Default
Checked-out versions are annotated with [checkedout].

–l·ong
Lists objects in the style of ls –long.

–s·hort
Lists pathnames only, without annotations.

–siz·e
Lists each file's size in bytes. At the end of the listing, lists the total size of view private files and of shared DOs in the view.

–age
Lists the last access time of each file.

Selecting Objects to List

Default
All of the dynamic view's objects are listed. You can use -co, -do, and -other in any combination to specify a partial listing.

–inv·ob vob-selector
Restricts the listing to objects for the specified VOB. Specify vob-selector in the form [vob:]pname-in-vob
pname-in-vob Pathname of the VOB tag (whether or not the VOB is mounted) or of any file system object within the VOB (if the VOB is mounted)

Note: Specifying a pathname within the VOB does not limit the listing to objects in and below that directory.

–co
Lists checked-out versions of file elements. (Checked-out directory elements are never listed by lsprivate.)

do
Lists derived objects.

oth·er
Lists view-private files and directories that are neither checked-out versions of file elements nor derived objects.

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 private objects in the dynamic view with view tag jackson_vu, from the VOB identified by the pathname /usr/hw/src.

    cmd-context  lsprivate -tag jackson_vu -invob /usr/hw/src 
    /usr/hw/src/bug.report
    /usr/hw/src/convolution.c [checkedout]
    /usr/hw/src/edge.sh
    /usr/hw/src/hello
    /usr/hw/src/hello.c [checkedout]
    /usr/hw/src/hello.h [checkedout]
    /usr/hw/src/hello.o
    /usr/hw/msg.o
    /usr/hw/util.c [checkedout]
    /usr/hw/util.c.contrib
    /usr/hw/util.c.contrib.1
    /usr/hw/util.o

  • List the private objects in the dynamic view with view tag jc_vw, from the VOB identified by the pathname M:\jc_vw\jc_hw\src.

    cmd-context  lsprivate -tag jc_vw -invob M:\jc_vw\jc_hw\src
    M:\jc_vw\jc_hw\src\bug.report
    M:\jc_vw\jc_hw\src\convolut.c [checkedout]
    M:\jc_vw\jc_hw\src\edge.sh
    M:\jc_vw\jc_hw\src\hello.c [checkedout]
    M:\jc_vw\jc_hw\src\hello.h [checkedout]
    M:\jc_vw\jc_hw\src\hello.o
    M:\jc_vw\jc_hw\msg.o
    M:\jc_vw\jc_hw\util.c [checkedout]
    M:\jc_vw\jc_hw\util.c.contrib
    M:\jc_vw\jc_hw\util.c.contrib.1
    M:\jc_vw\jc_hw\util.o

  • List all checked-out versions of elements in the current dynamic view, from all VOBs.

    cmd-context  lsprivate –co 
    /usr/hw/src/convolution.c [checkedout]
    /usr/hw/src/hello.c [checkedout]
    /usr/hw/src/util.c [checkedout]
    /vobs/doc/PLAN/DocumentationProposal[checkedout]
    /vobs/doc/reference_man/test/attest.dat [checkedout]
    /vobs/doc/reference_man/test/testelem.c [checkedout]

  • List all elements in the current dynamic view, from all VOBs, using a long listing.

    cmd-context  lsprivate –long 
    view private object   M:\jc_vw\tmp_vob\scd_reach\src
    \findmerge.log.04-Feb-99.10:01:01
    view private object   M:\jc_vw\tmp_vob\scd_reach\src\
    findmerge.log.04-Feb-99.11:00:59
    version               M:\jc_vw\doc\reqs@@\main\CHECKEDOUT from 
    \main\33 Rule: element * CHECKEDOUT
    version               M:\jc_vw\doc\specs@@\main\CHECKEDOUT from 
    \main\7 Rule: element * CHECKEDOUT

  • List the size and age of all private objects in the current dynamic view.

    cmd-context lsprivate –size –age 
    /tmp/sg_test/.cmake.state
         Size: 2724
         Age: 05-Apr-99.16:01:10
    /tmp/sg_test/bar
         Size: 10
         Age: 05-Apr-99.16:00:54
    /tmp/sg_test/foo
         Size: 10
         Age: 05-Apr-99.16:00:53
    /tmp/sg_test/foobar
         Size: 20
         Age: 05-Apr-99.16:00:55
    total size of view private files is 2764
    total size of shared derived objects is 0

SPONSORED LINKS



 

ClearCase Links • ClearCase Books • ClearCase Commands Reference • ClearCase Forums • ClearCase News