Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo List Domains

The list-domains command provides a list of domains and their statuses. If the domain directory is not specified, the contents of the default as-install/domains directory is listed. If there is more than one domain, the domain name must be specified.

To list domains that were created in other directories, specify the --domaindir option.

  1. List domains by using the list-domains(1) command.


Example 2–2 Listing Domains

The following example command lists the domains in the default as-install/domains directory:


asadmin list-domains

Information similar to the following is displayed:


Name: domain1 Status: Running
Name: domain4 Status: Not Running
Name: domain6 Status: Not Running
Command list-domains executed successfully.

See Also

To see the full syntax and options of the command, type asadmin list-domain --help at the command line.