Creates a view-tag or a public/private VOB-tag
ClearCase (cleartool subcommand), Attache (command)
For an existing view or VOB, the mktag command creates or replaces an entry in the network's view_tag or vob_tag registry file. A view or VOB gets one tag when it is created with mkview or mkvob. The principal use of mktag is to create additional tags, enabling access from multiple network regions. Each network region needs its own tag for a view or VOB. A single region cannot have multiple tags for the same VOB. (Multiple tags for a view are valid, but not recommended.) However, a single tag can be assigned to multiple regions with multiple mktag commands. See the registry_ccase reference page for a discussion of network regions.
By default, creating a view-tag activates the view on your host, by implicitly performing a startview command. This does not occur if your host is not in the tag's assigned network region, or if you use the -nstart option. For a dynamic view, creating the view-tag also activates the view.
Creating a VOB-tag does not activate the VOB; use mount for this purpose.
Only the VOB owner can create a private VOB-tag. Locks do not apply to this command.
SPECIFYING THE KIND OF TAG. Default: None.
SPECIFYING THE TAG. Default: None.
OVERWRITING AN EXISTING TAG. Default: An error occurs if the view or VOB already has a tag in the target network region.
STARTING THE VIEW. Default: Starts the view_server process on the host where the view storage directory resides, if it isn't already running. For a dynamic view, creating a view tag also makes the view active on your host, making the view tag appear as a directory entry in the ClearCase viewroot directory (by default, M:\).
SPECIFYING A NETWORK REGION. Default: Creates a tag in the local host's network region. (Use the hostinfo -long command to list a host's network region.) See the registry_ccase reference page for a discussion of network regions.
SPECIFYING MOUNT OPTIONS. Default: No mount options are included in the VOB registry entry for a new VOB-tag.
PUBLIC VS. PRIVATE VOB. Default: Creates a private VOB-tag (does not apply to view-tags). An error occurs if you are not the VOB owner.
SPECIFYING THE LOCATION OF THE STORAGE DIRECTORY. Default: None. You must specify the location of the VOB or view storage directory. In rare cases, you must also specify the host name and local/global access path. See the mkview and mkvob reference pages for details.
Examples including 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 command interpreter prompt. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
cmd-context mktag -view -tag view5 -region europe \\pluto\vw_store\view5.vws
cmd-context mktag -vob -tag \us_east1 -region europe -public -password tagPword ^
\\earth\vb_store\vob1.vbs
cmd-context mktag -vob -tag \publicvob -replace -public ^
-pass tagPword \\saturn\vobs\private.vbs
lsview, lsvob, mkview, mkvob, rmtag, startview, view_server, vob_server
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |