sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

User Commands | list-domains(1)

- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- EXAMPLES
- EXIT STATUS
- SEE ALSO

## NAME

| list-domains - lists all the domains

## SYNOPSIS

| `list-domains [ --user admin_user ] [ --password admin_password ] [ --host localhost ] [ --port 4848 ] [ --local=false ] [ --passwordfile filename ] [ --secure|-s ]`

## DESCRIPTION

| Use the `list-domains` command to list all the domains associated with the Sun Java System Application Server. The `list-domains` command can be run both locally and remotely. Set the --local option to true to execute locally. If running remotely, the administrative server must be running on the hostname specified. One or more domain must already exist.

## OPTIONS

| --user administrative user associated for the instance. --password administrative password corresponding to the administrative user. --host host name of the machine hosting the administrative instance. --port administrative port number associated with the administrative host. --local determines if the command should delegate the request to administrative instance or run locally. --passwordfile file containing passwords appropriate for the command (e.g., administrative instance). --secure if true, uses SSL/TLS to communicate with the administrative instance.

## EXAMPLES

| Example 1. Using list-domains in local mode
    asadmin> list-domains
    domain1 [/software/AS7SE/sep9/domains/domain1]
    domain2 [/u/mydomain/domain_root/domain2]
Where: the `domain1` and `domain2` are listed and their directory paths are identified.

## EXIT STATUS

| 0 command executed successfully 1 error in executing the command

## SEE ALSO

| `create-domain`(1), `delete-domain`(1), `start-domain`(1), `stop-domain`(1), `list-instances`(1), `multimode`(1)

| Go To Top | Last Changed April 2004

Company Info | Contact | Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.