list_zones

Use the list_zones command to list the zones within a specified domain along with information about each zone. If executed in a script, this command outputs its list to stdout so that the output appears in the shell where the script is executed. The command does not return a Tcl list back to the executing script. Use the ADEdit command get_zones to return a Tcl list.

Syntax

list_zones domain

Options

This command takes no options.

Arguments

This command takes the following argument:

Argument Type Description

domain

string

Required. The name of the domain in which to list zones.

Return value

This command returns a list to stdout of the zones within the specified domain. Each entry in the list contains:

  • The zone’s distinguished name (DN)
  • The zone type: tree (supported in Centrify Server Suite 2012 or later), classic3 or classic4
  • The schema used in the zone

Each entry component is separated from the next by a colon (:).

Examples

list_zones

This example returns a list of zones similar to this:

{CN=default,CN=Zones,CN=Centrify,DC=acme,DC=com} : classic4 : std
{CN=cz1,CN=Zones,CN=Centrify,DC=acme,DC=com} : tree : std
{CN=cz2,CN=Zones,CN=Centrify,DC=acme,DC=com} : tree : std
{CN=global,CN=Zones,CN=Centrify,DC=acme,DC=com} : tree : rfc

Related Tcl library commands

The following commands perform actions related to this command:

  • create_assignment creates a new role assignment and saves it to Active Directory.
  • precreate_computer creates a zone profile and, if necessary, a new Active Directory computer account.