Hitachi

Hitachi Application Server V10 Command Reference Guide (For UNIX® Systems)


2.4.7 list-domains

Lists the domains in the specified directory.

Synopsis

asadmin [asadmin-options] list-domains [--help]
    [--domaindir domaindir]
    [--long={false|true}]
    [--header={false|true}]

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The list-domains subcommand lists the domains in the specified domains directory. If the domains directory is not specified, the domains in the default directory are listed. This subcommand is supported in local mode only.

Arguments

--help | -?

Displays the help text for the subcommand.

--domaindir domaindir

Specifies the directory where the domains are to be listed. If specified, the path must be accessible in the files system. If not specified, the domains in the Application Server installation directory/javaee/glassfish/domains domain root directory are listed.

Type: String

The following values can be specified:

  • Name of the directory

Default value: Application Server installation directory/javaee/glassfish/domains

--long={false|true} | -l={false|true}

Displays detailed information about the administration servers in the listed domains, including host names and port numbers.

Type: Boolean

The following values can be specified:

  • true

  • false

Default value: false

--header={false|true} | -h={false|true}

Specifies whether a header is displayed when the --long option is used.

Type: Boolean

The following values can be specified:

  • true

  • false

Default value: true

Examples

This example lists the domains in the default directory.

asadmin list-domains

Exit Status

Exit Status

Explanation

0

subcommand executed successfully.

1

error in executing the subcommand.