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

lsreplica

Lists VOB replicas

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand
MultiSitemultitool subcommand

Platform
UNIX
Windows

SYNOPSIS

lsrep·lica [ –l·ong | –s·hort | –fmt format ]
[ –sib·lings | [ –sib·lings ] –invob vob-selector | replica-selector ... ]

DESCRIPTION

This command lists information about all VOB-replica objects recorded in the VOB database of the current replica (except for deleted replicas). Other replicas may exist, but the packets that contain their creation information have not yet been imported at the current replica.

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

Listing Format

Default
Includes creation event information for each replica.

–l·ong
Lists each replica's creation information, master replica, mastership request setting, ownership information, and host. If the current replica is in the process of restoration, this option annotates the listings of other replicas from which restoration updates are required. (See the restorereplica reference page.)

–s·hort
Lists only replica names.

–fmt format
Lists information using the specified format string. For details about using this report-writing facility, see the fmt_ccase reference page.

–sib·lings
Lists the family members of the current replica, but does not list the current replica itself. Use this option in scripts that process only sibling replicas.

Specifying the VOB Family

Default
Lists family members of the replica containing the current working directory.

–invob vob-selector
Lists the replicas in the specified family. 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)

Specifying the Replica

Default
Lists all known replicas in the family.

replica-selector ...
Restricts the listing to one or more replicas. Specify replica-selector in the form [replica:]replica-name[@vob-selector]
replica-name Name of the replica
vob-selector VOB family of the replica; can be omitted if the current working directory is within the 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)

EXAMPLES

In these examples, the lines are broken for readability. You must enter each command on a single physical line.

  • List the names of all replicas of the VOB containing the current working directory.

    multitool lsreplica –short 
    bangalore
    boston_hub
    buenosaires
    sanfran_hub

  • List the names of all siblings of the VOB containing the current working directory.

    multitool lsreplica –short –siblings 
    bangalore
    buenosaires
    sanfran_hub

  • Display a long listing of the current VOB's replicas.

    multitool lsreplica –long 
    replica "bangalore"
     15-Aug-00.15:48:39 by Susan Goechs (susan.user@minuteman)
      replica type: unfiltered
      master replica: boston_hub@/vobs/dev
      request for mastership:enabled
      owner: susan
      group: user
      host: "ramohalli"
    replica "boston_hub"
     19-May-99.15:47:13 by Susan Goechs (susan.user@minuteman)
      replica type: unfiltered
      master replica: boston_hub@/vobs/dev
      request for mastership:enabled
      owner: susan
      group: user
      host: "minuteman"
    replica "buenosaires"
     15-Aug-00.15:48:44 by Susan Goechs (susan.user@minuteman)
      replica type: unfiltered
      master replica: boston_hub@/vobs/dev
      request for mastership:enabled
      owner: susan
      group: user
      host: "mardelplata"
    replica "sanfran_hub"
     19-May-99.15:49:46 by Susan Goechs (susan.user@minuteman)
      replica type: unfiltered
      master replica: sanfran_hub@/vobs/dev
      request for mastership:enabled
      owner: susan
      group: user
      host: "goldengate"

  • List all replicas of the VOB whose VOB tag is \doc.

    multitool lsreplica –invob \doc 
    For VOB replica “\doc”:
    11-Mar.13:42 jcole replica "boston_hub"
    11-Mar.13:45 jcole replica "sanfran_hub"
    11-Mar.13:48 jcole replica "tokyo"

  • List the name, master replica, and replica host of all replicas in the family /vobs/doc.

    cmd-context lsreplica –fmt 
    "Name: %n\n\tMaster replica: %[master]p\n\tReplica host: %[replica_host]p\n" 
    -invob /vobs/doc
     
    Name: boston_hub
    Master replica: boston@/vobs/doc
    Replica host: minuteman
    Name: sanfran_hub
    Master replica: sanfran_hub@/vobs/doc
    Replica host: goldengate
    Name: tokyo
    Master replica: sanfran_hub@/vobs/doc
    Replica host: shinjuku

SPONSORED LINKS



 

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