Sets access controls for mastership requests or request mastership of a branch
ClearCase (cleartool subcommand), MultiSite (multitool subcommand)
This command configures access controls for mastership requests and requests mastership of a branch from the replica that masters the branch. For more information, see Implementing Requests for Branch Mastership in ClearCase MultiSite Manual.
For a reqmaster command to succeed, all of the following conditions must be true:
If your local replica does not have up-to-date information about which replica masters the branch, the reqmaster command goes to the wrong replica and fails.
You can enable replica-level access, but deny requests for mastership of specific branches or for mastership of all branches of a specific type. Even if replica-level access is enabled, the reqmaster command fails if requests for mastership are denied at the type level or object level.
The reqmaster command contacts a remote replica and requests that the replica transfer mastership of a branch to the local replica. You can also use reqmaster to display information about whether a mastership request for the branch will succeed.
If you specify multiple branches and the request fails for one or more branches, reqmaster prints error messages for the failures and continues processing the other branches.
If the reqmaster command fails, the error message indicates whether the failure occurred at the local replica or the remote replica.
If the reqmaster command fails with the message can't get handle, enter the command again. If it continues to fail, contact the administrator of the remote replica.
When you request mastership of a branch, the reqmaster command may complete successfully, but the mastership is not transferred to your local replica. In this case, check that the synchronization packet was sent from the remote replica and that your local replica imported it successfully.
Restrictions for setting access controls:
Permissions:
Anyone can display the ACL with reqmaster -acl -get. See the permissions reference page in the ClearCase Reference Manual.
Locks: No locks apply.
Mastership: For you to allow or deny mastership requests for a branch, your local replica must master the branch.
Other restrictions: You must be logged in to the VOB server host to edit or set the ACL for the replica.
Restrictions for requesting mastership of a branch:
Permissions: You must be on the replica's ACL.
Locks: The reqmaster command fails if the branch or branch type is locked.
Other restrictions: The reqmaster command fails if mastership requests are denied at any of the following levels: replica, type object, object. The reqmaster command fails if there are checkouts on the branch (except for unreserved checkouts made with the -nmaster option).
EVENT RECORDS AND COMMENTS. Default: Creates one or more event records, with commenting controlled by the standard ClearCase user profile (default: -nc). See Customizing Comment Handling in the multitool reference page. To edit a comment, use chevent.
DISPLAYING OR SETTING ACCESS CONTROLS. Default: None. You must specify access controls. Specifying -acl with no other option displays the ACL for the local replica in the VOB family specified by vob-selector.
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) |
type-name | Name of the branch type | |
vob-selector | VOB specifier; 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) | |
REQUESTING MASTERSHIP OF A BRANCH. Default: Sends a request for mastership to the mastering replica of the branch.
multitool reqmaster -acl -get vob:\dev
# Replica hosmer@\dev
# Request for Mastership ACL:
Everyone: Read
Create a file (for example, c:\tmp\hosmer_aclfile) containing the following lines:
# Replica hosmer@\dev
# Request for Mastership ACL:
User:foobar/ccadmin Full
User:foobar/susank Change
User:foobar/johng Change
multitool reqmaster -acl -set c:\tmp\hosmer_aclfile vob:\dev
multitool reqmaster -acl -get vob:\dev
# Replica hosmer@\dev
# Request for Mastership ACL:
User:foobar/ccadmin Full
User:foobar/susank Change
User:foobar/johng Change
multitool reqmaster -enable vob:\test_dev
Requests for mastership enabled in replica "vob:\test_dev"
multitool reqmaster -deny -instances brtype:v2.6_beta
Requests for mastership denied on all instances of "brtype:v2.6_beta"
multitool reqmaster -enable vob:\dev
Requests for mastership enabled in replica "vob:\dev"
multitool reqmaster -deny cmdsyn.m@@\main\v2.6_integ
Requests for mastership denied on branch "cmdsyn.m@@\main\v2.6_integ"
multitool reqmaster -disable vob:\doc
Requests for mastership disabled in replica "vob:\doc"
multitool reqmaster cmdsyn.m@@\main\v2.6_dev
multitool reqmaster -list include.h@@\main\integ acc.c@@\main
multitool: Error: The following errors will be encountered
multitool: Error: acc.c@@\main
Request Mastership remote "reqmaster" operation (host "neon") would fail:
the requested operation is denied.
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |