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
You can use the
adinfo command to return the computer name.
get_effective_groups [-hostname computer_name]
This command takes the following option:
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.
This command returns a Tcl list of groups with complete profiles in the currently selected zone and all of its parent zones.
get_effective_groups -hostname centos7.ajax.com
The example returns the list of effective groups starting at the computer level for the computer named