Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Reference Manual

## list-domains(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | EXIT STATUS | ERROR CODES | SEE ALSO

#### NAME

list-domains– lists the domains in the specified domain directory

#### SYNOPSIS

`list-domains` [––domaindir install_dir/domains] [––terse=false] [––echo=false] [––interactive=true]

#### DESCRIPTION

Use the `list-domains` command to list the domain. If the domain directory is not specified, the domain in the default `install_dir/domains` directory is listed. If there is more that one domain, the domain_name operand must be identified.

This command is supported in local mode only.

#### OPTIONS

`––domaindir`

  The directory where the domains are located. If specified, the path must be accessible in the filesystem. If not specified, the domain in the default `install_dir/domains` directory are listed.

`–t` `––terse`

  Indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-formatted data for consumption by a script. Default is false.

`–e` `––echo`

  Setting to true will echo the command line statement on to the standard output. Default is false.

#### EXAMPLES

##### Example 1 Using the list-domains command

    asadmin> list-domains
    List of domains:
    domain1 running
    samples not running

Where: the `domain1` and `samples` are the domains located in the default`install_dir/domains` directory.

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### ERROR CODES

0

  error message

1

  error message

#### SEE ALSO

create-domain(1), delete-domain(1), start-domain(1), stop-domain(1),

J2EE SDK 1.4 Last Revised 31 Jan 2005

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | EXIT STATUS | ERROR CODES | SEE ALSO

- © 2010, Oracle Corporation and/or its affiliates