This section describes commands that display and manage types of groups.
Add a group to the grid controller's local directory service database. The new group is created without any members.
group create <name> [ can_own=<val> ]
Name of the local group to create.
Specifies whether the group can be specified as an owner of an object. Valid values are 0 and 1, the default is 0.
create group my-group
Create a new local group named 'my-group'.
Destroy an existing group from the grid controller's local directory service database.
group destroy <name> [ --force ]
Name of the local group to destroy.
Do not ask for verification of the destroy operation.
destroy group my-group
Destroy the local group named 'my-group'.
Show group information. The information displayed includes: group name, ID, scope, description, principal group members, and the new object ACL definition associated to the group (if any).
group get <name> [ --batch ]
Name of the group for which to display information. The name may be specified in one of the following ways:
Local group.
Global group.
A fully qualified principal name where <scope> is 'global' or 'local', <type> is 'group', and <group> is the group name.
Display output in UDL format
group get my-group
Show information for local group 'my-group'.
group get /my-group
Show information for global group 'my-group'.
group get local:group:my-group
Show information for local group 'my-group'.
group get global:group:my-group
Show information for global group 'my-group'.
Only group members who have previously logged in to the grid are listed in the global group membership display.
The non-batch output of this command is as follows:
Group Name : <val> Group ID : <val> Scope : <val> Description : <val> --- Member Information --- ID Scope Type Name ------------------------------------------------------------------- <val> <val> <val> <val> ... <val> <val> <val> <val> --- New Object ACL Owner Information --- ID Scope Type Name ------------------------------------------------------------------------------ <val> <val> <val> <val> --- New Object ACL Entry Information --- ID Scope Type Name Access ------------------------------------------------------------------------------ <val> <val> <val> <val> <val> ... <val> <val> <val> <val> <val>
The batch output of this command is as follows:
group
{
name = <val>
id = <val>
scope = <val>
description = <val>
members
[
id=<val>, scope=<val>, type=<val>, name=<val>
...
id=<val>, scope=<val>, type=<val>, name=<val>
]
newobj_acl
{
owner: id = <val> # scope type name
entries
[
id = <val>, access_level1, ... access_levelN, permission1, ... permissionN # scope type name
...
id = <val>, access_level1, ... access_levelN, permission1, ... permissionN # scope type name
]
}
}
Display the new object ACL definition associated to a group, or display that portion of the new object ACL definition which relates to a particular principal.
group get_newobj_acl <name> [ <principal> ] [ --batch ]
Name of the group; prepend the group name with or to indicate a global group.
Name of the principal. <principal> is in the following form:
A fully qualified principal name where <scope> is 'global' or 'local', type is 'group' or 'user' and <name> is the group or user name.
Display output in UDL format
group get_newobj_acl admin
Get the new object ACL definition associated to the local group 'admin'.
The non-batch output of this command is as follows:
--- Owner Information --- ID Scope Type Name ------------------------------------------------------------------------- <val> <val> <val> <val> --- Entry Information --- ID Scope Type Name Access ------------------------------------------------------------------------------ <val> <val> <val> <val> <val> ... <val> <val> <val> <val> <val>
The batch output of this command is as follows:
acl
{
owner : id=<val> # scope type name
entries
[
id=<val>, access_level1, ... access_levelN, permission1, ... permissionN # scope type name
...
id=<val>, access_level1, ... access_levelN, permission1, ... permissionN # scope type name
]
}
Show group information. The information displayed includes: group name, ID, scope, description, principal group members, and the new object ACL definition associated with the group (if any).
group info <name> [ --batch ]
Name of the group for which to display information. The name may be specified in one of the following ways:
Local group.
Global group.
A fully qualified principal name where <scope> is 'global' or 'local', <type> is 'group', and <group> is the group name.
Display output in UDL format
group info my-group
Show information for local group 'my-group'.
group info /my-group
Show information for global group 'my-group'.
group info local:group:my-group
Show information for local group 'my-group'.
group info global:group:my-group
Show information for global group 'my-group'.
Only group members who have previously logged in to the grid are listed in the global group membership display.
The output of this command is as follows:
Non-batch output
Group Name = val Group ID = val Scope = val Can Own = val Description = val --- Member Information --- ID Scope Type Name ------------------------------------------------------------------------- val val val val ... The value of Scope is local or global. The value of Type is user or group. If a local user or local group member has been deleted, the value for Scope, Type and Name is *.
Batch output
group
{
name = "val"
id = "val"
scope = "val"
Can_Own = "val"
description = "val"
members
[
id="val", scope=val, type=val, name="val"
...
]
}
List groups in the grid controller's local directory service database and groups in the global directory service database (if the grid is configured to use such a service).
group list [ --local | --global ] [ --batch ]
List only local groups.
List only global groups.
Display output in UDL format.
group list
List groups.
Only global groups are listed which have among their members a global user who has logged in on the grid sometime in the past.
The output of this command is as follows:
Non-batch output
Group Name Group ID Scope Can Own Description -------------------------------------------------------------------------------- val val val val Val ... The value of Scope is local or global.
Batch output
group: name="val", id="val", scope="val", can_own=val, description="val" ...
Modify a local group's description, can_own attribute, or membership, or modify the can_own attribute of a global group.
group modify <name> [ description=<val> ] [ can_own=<val> ][ +/-<principal1> ... +/-<principalN> ]
Name of the local group.
Group description.
Specifies whether the group can be specified as an owner of an object. Valid values are 0 and 1. The default is 0.
Add the principal to the group if it is not already a member. <principal> is in the following form:
Local user or group.
Global user or group.
A fully qualified principal name where <scope> is 'global' or 'local', <type> is 'group' or 'user', and <name> is the group or user name.
Remove the principal from the group.
group modify my-group +local:user:admin
Add local user 'admin' to the local group 'my-group'.
group modify my-group +/admin
Add global user 'admin' to the local group 'my-group'.
Replace that portion of a new object ACL definition associated to a group which relates to the owner or a principal entry.
group modify_newobj_acl <name> [ <principal>=owner ] [ <principal1>=<val> ... <principalN>=<val> ] [ template=<principal> ] [ --test_only ]
Name of the group; prepend the group name with / to indicate a global group.
Set the owner attribute of the new object ACL definition to the specified principal. The principal must be a group.
Add the specified principal to the new object ACL definition with access level <val>. <principal> is in the following form:
Local user or group.
Global user or group.
A fully qualified principal name where <scope> is 'global' or 'local', <type> is 'group' or 'user', and <name> is the group or user name. Valid access levels are: read, control, configure and full.
Replace the principal entries of the new object ACL definition with those of the new object ACL definition associated to the specified principal.
Do not replace the new object ACL definition but rather test if the operation can succeed.
group modify_newobj_acl admin local:group:admin=full
Modify the new object ACL definition associated to the local group 'admin'.
The owner of a new object ACL definition associated to a group must itself be a group.
Replace a local group description and entire membership.
group put <name> description=<val> [ can_own=<val> ] [ <principal1> ... <principalN> ]
Name of the local group.
Group description.
Specifies whether the group can be specified as an owner of an object. Valid values are 0 and 1. The default is 0.
A group member specified in one of the following formats:
Local user or group.
Global user or group.
A fully qualified principal name where <scope> is 'global' or 'local', <type> is 'group' or 'user', and <name> is the group or user name.
group put my-group description='us' local:user:admin
Replace the description of local group 'my-group' and replace the membership such that the only member is local user 'admin'.
group put my-group description='us' admin
Replace the description of local group 'my-group' and replace the membership such that the only member is local user 'admin'.
Replace the entire new object ACL definition associated to a group.
group put_newobj_acl <name> [ <principal>=owner ] [ <principal1>=<val> ... <principalN>=<val> ] [ --test_only | --force ]
Name of the group; prepend the group name with / to indicate a global group.
Set the owner attribute of the new object ACL definition to the specified principal. The principal must be a group.
Add the specified principal to the new object ACL definition with access level <val>. <principal> is in the following form:
A fully qualified principal name where <scope> is 'global' or 'local', type is 'group' or 'user' and <name> is the group or user name.
Valid access levels are: read, control, configure, and full.
Do not replace the new object ACL definition but rather test if the operation can succeed.
Skip prompting the user for verification.
group put_newobj_acl admin local:group:admin=owner local:group:admin=full
Put the new object ACL definition associated to the local group 'admin'.
The owner of a new object ACL definition associated to a group must itself be a group.
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|