register

Creates an entry in the VOB or view object registry

Applicability

Product

Command type

VersionVault

cleartool subcommand

Platform

UNIX

Linux

Windows

Synopsis

  • VersionVault—Register a view:
    reg/ister –vie/w [ –rep/lace ]
    [ –hos/t hostname –hpa/th host-storage-pname ]

    view-storage-pname

  • VersionVault—Register a VOB:
    reg/ister –vob [ –ucm/project ] [ –rep/lace ]
    [ –hos/t hostname –hpa/th host-storage-pname ] vob-storage-pname

Description

The register command creates or replaces an entry in VOB or view object registries. The registries enable clients to determine the physical storage locations of VOBs and views they access. Note that register has no effect on the VOB or view tag registries. You can also use register to update an existing registry entry, or to re-register a VOB or view that was temporarily removed from service with unregister.

Other commands that affect registries

The mkview and mkvob commands add an entry to the appropriate registry; the rmview and rmvob commands remove registry entries. You can use the unregister command to remove an existing entry. The reformatvob command updates a VOB's object registry entry (or creates one, if necessary).

Restrictions

None.

Options and arguments

View/VOB specification

Default
None.
–vob
Registers a VOB storage directory.
–ucm/project
Marks a VOB as a UCM project VOB in the registry.
–vie/w
Registers a view storage directory.

Overwriting an existing entry

Default
An error occurs if the view or VOB storage directory already has an entry in the registry.
–rep/lace
Replaces an existing registry entry. (No error occurs if there is no existing entry.)

Specifying the location of the storage directory

Default
None.
view-storage-pname
The path to the view storage; to determine the path, use lsview.
vob-storage-pname
The path to the VOB storage; to determine the path, use lsvob.

Specifying network accessibility

Default
Values are derived from the view-storage-pname or vob-storage-pname arguments.
–hos/t hostname, –hpa/th local-pname
See the mkstgloc reference page for descriptions of how to use these options.
To register a VOB or view that resides on a supported network-attached storage (NAS) device, you must specify the option set, –host –gpath. (NAS devices must be specially configured for use with VersionVault. For more information, see the Administrator's help.)

Examples

The UNIX system and Linux examples in this section are written for use in csh. If you use another shell, you might 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 might 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 system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.

  • On a UNIX or Linux system, register a VOB storage directory that was previously unregistered with the unregister –vob command.

    cmd-context  register –vob /vobstore/vob2.vbsfs