reqmaster

Sets access controls for mastership requests or requests mastership of a branch or branch type

APPLICABILITY

Product Command type

ClearCase

cleartool subcommand

MultiSite

multitool subcommand


Platform

UNIX

Windows


SYNOPSIS

reqmaster -acl [ -edi·t | -set pname | -get ] vob-selector
reqmaster [ -c·omment comment | -cq·uery | -nc·omment ]

{ { -enable | -dis·able } vob-selector
| { -den·y | -allow } [ -inst·ances ] branch-type-selector ...
| { -den·y | -allow } branch-pname ...
}
reqmaster [ -c·omment comment | -cq·uery | -nc·omment ]

[ -lis·t ] { [ branch-pname ... ] [ branch-type-selector ... ] }

DESCRIPTION

This command has three forms: two forms to configure access controls for mastership requests and one form to request mastership of a branch or branch type from the replica that masters the object. For more information, see Chapter 9, Implementing Requests for Mastership in the Administrator's Guide for Rational ClearCase MultiSite.

SETTING ACCESS CONTROLS

To allow requests for mastership, the MultiSite administrator must set access controls at each replica:

Also, the type and the object must allow mastership requests. By default, type-level and object-level access are enabled. You can enable replica-level access, but deny requests for mastership of specific branches, specific branch types, or 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. Use the -deny option to deny requests at the type and object level.

REQUESTING MASTERSHIP OF A BRANCH OR BRANCH TYPE

This form of the reqmaster command contacts a sibling replica and requests that the replica transfer mastership to the current replica. You can also use reqmaster to display information about whether a mastership request will succeed.

If you specify multiple branches or branch types and the request fails for one or more items, reqmaster prints error messages for the failures and continues processing the other items.

TROUBLESHOOTING

If the reqmaster command fails, the error message indicates whether the failure occurred at the current replica or the sibling replica.

If the reqmaster command fails with the message can't get handle, enter the command again. If it continues to fail, ask the administrator of the sibling replica to check the status of the VOB server.

When you request mastership, the reqmaster command may complete successfully, but the mastership is not transferred to your current replica. In this case, verify that the synchronization packet was sent from the sibling replica and that your current replica imported it successfully.

Errors that occur during the mastership request process, including errors occurring during the synchronization export, are written to the msadm log file. To view this log, use the cleartool getlog command or the ClearCase Administration Console (Windows).

For more information on error messages from the reqmaster command, see Chapter 9, Implementing Requests for Mastership in the Administrator's Guide for Rational ClearCase MultiSite.

RESTRICTIONS

Setting Access Controls

Identities: To set the ACL, you must have write permission on the ACL or have one of the following identities:

To enable mastership requests at the replica level, you must have one of the following identities:

Locks: No locks apply.

Mastership: The replica must be self-mastering. For you to allow or deny mastership requests for a branch or branch type, your current replica must master the object.

Requesting Mastership of a Branch:

Identities: You must be on the replica's ACL.

Locks: An error occurs if one or more of these objects are locked: branch, branch type, VOB.

Mastership: Your current replica must not master the branch.

Other: An error occurs in any of the following cases:

Requesting Mastership of a Branch Type:

Identities: You must be on the replica's ACL.

Locks: An error occurs if one or more of these objects are locked: branch type, VOB, branch instances that have default mastership.

Mastership: Your current replica must not master the branch type.

Other: An error occurs in any of the following cases:

OPTIONS AND ARGUMENTS

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.

-c·omment comment | -cq·uery | -nc·omment

Overrides the default with the specified comment option.

DISPLAYING OR SETTING ACCESS CONTROLS. Default: None. You must specify access controls. Specifying -acl with no other option displays the ACL for the current replica in the VOB family specified by vob-selector.

-acl [ -edi·t | -set pname | -get ] vob-selector

By default or with -get, displays the ACL for the current replica in the VOB family specified by vob-selector. With -edit, opens the ACL for the current replica in the editor specified by (in order) the WINEDITOR (UNIX), VISUAL, or EDITOR environment variable. With -set, uses the contents of pname to set the ACL for the current replica.
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)


-enable vob-selector

Allows mastership requests to be made to the current replica in the VOB family specified by vob-selector.
-dis·able vob-selector

Denies all mastership requests made to the current replica in the VOB family specified by vob-selector.
{ -deny | -allow } [ -inst·ances ] branch-type-selector ...

Denies or allows requests for mastership of the specified branch type. With -instances, denies or allows requests for mastership of all branches of the specified type. Specify branch-type-selector in the form brtype:type-name[@vob-selector]

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)


{ -deny | -allow } branch-pname ...

Denies or allows requests for mastership of the specified branch object. Specify branch-pname in the form file-pname@@branch. For example:
cmdsyn.c@@/main/v3.8
header.h@@\main\v1\bugfix

REQUESTING MASTERSHIP. Default: Sends a request for mastership to the master replica of the object.

-lis·t

Does not request the mastership change; instead, displays information about whether a request would succeed.
branch-pname

Branch whose mastership you are requesting. For example:
cmdsyn.c@@/main/v3.8
header.h@@\main\v1\bugfix
branch-type-selector

Branch type whose mastership you are requesting. For example:
brtype:v2.0_integration@vob:\tests

EXAMPLES

SEE ALSO

chmaster