mkregion
Registers a new VersionVault network region
Applicability
Product |
Command type |
---|---|
VersionVault |
cleartool subcommand |
Platform |
---|
UNIX® |
Linux® |
Windows® |
Synopsis
- mkregion –tag region-tag [ –tco/mment tag-comment ] [ –rep/lace ]
Description
The mkregion command registers a new network region by adding a new region tag (region name) and, optionally, a comment to the regions file on the VersionVault registry server host. Use the lsregion command to display the region tags contained in regions.
After creating a new region, you can create VOB tags and view tags for the region with mktag, mkvob, and mkview.
A VersionVault client host can belong to only one region. Use the hostinfo –long command to display the client host's registry region. For more information about VersionVault network regions, see the Help.
Restrictions
None.
Options and arguments
Specifying the region tag
- Default
- None. You must name the region.
- –tag region-tag
- Names the region. region-tag can be up to 32 characters.
- –tco/mment tag-comment
- Adds a comment to the region-tag's entry in the registry file. Use lsregion –long to display the tag-comment.
Overwriting an existing tag
- Default
- An error occurs if mkregion names a region-tag that already exists.
- –rep/lace
- Replaces the tag-comment of an existing region-tag. No error occurs if the region-tag does not exist. You cannot use –replace to change an existing region-tag; to do so, you must first delete the existing tag with rmregion –tag, and then create a new one with mkregion –tag.
Examples
The UNIX system and Linux 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 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.
- Register a new region with tag us_east.
cmd-context mkregion –tag us_east \
–tcomment "all east coast VersionVault hosts" - Change the comment stored with region
tag us_east.
cmd-context mkregion –tag us_east ^
–tcomment "east coast development hosts" –replace
UNIX® and Linux® files
- /var/adm/hcl/versionvault/rgy/regions
- /var/adm/hcl/versionvault/config/rgy_region.conf
Windows® files
- versionvault-home-dir\var\rgy\regions