Use the list-domains subcommand to display 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.
List domains by using the list-domains(1) subcommand.
This example lists the domains in the default as-install/domains directory:
asadmin> list-domains Name: domain1 Status: Running Name: domain4 Status: Not Running Name: domain6 Status: Not Running Command list-domains executed successfully. |
You can also view the full syntax and options of the subcommand by typing asadmin help list-domain at the command line.