get_effective_groups
Use the get_effective_groups
command to return the list of effective groups from current zone up the zone hierarchy. Only groups who have a complete profile—whether defined in the current zone or inherited from a parent zone—are included.
The command supports hierarchical zone and classic zones. For classic zones, the command starts from current zone. For hierarchical zones, you can start the search for effective groups at the computer level by specifying the -hostname
option.
You can use the adinfo
command to return the computer name.
Syntax
get_effective_groups [-hostname computer_name]
Options
This command takes the following option:
Option | Type | Description |
-hostname |
string |
Specifies the name of the computer to start the search at the computer or computer role level if you run the command in a hierarchical zone with computer-level overrides or computer roles. If you don’t specify this option, the search starts in the current zone and computer roles are ignored. |
Return value
This command returns a Tcl list of groups with complete profiles in the currently selected zone and all of its parent zones.
Example
get_effective_groups -hostname centos7.ajax.com
The example returns the list of effective groups starting at the computer level for the computer named centos7.ajax.com
.