<!--Arbortext, Inc., 1988-2007, v.4002-->
<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD SolBook 3.5//EN" [
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "common.ent">
%commonents;
]>
<refentry id="list-domains-1">
<!-- @(#)list-domains.1 1.9 07/04/25 SMI; -->
<refmeta><refentrytitle>list-domains</refentrytitle><manvolnum>1</manvolnum>
<refmiscinfo class="date">30 Jan 2007</refmiscinfo>
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
<refmiscinfo class="software">&software;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">Copyright (c) 2007, Sun Microsystems, Inc.
All Rights Reserved</refmiscinfo>

</refmeta>
<refnamediv><indexterm><primary>list-domains</primary></indexterm>
<indexterm><primary>
lists the domains in the specified domain directory</primary>
</indexterm><refname>list-domains</refname><refpurpose>lists the domains in
the specified domain directory</refpurpose></refnamediv>
<refsynopsisdiv><title></title>
<synopsis><command>list-domains</command>  [<option role="double-dash">domaindir</option> <replaceable>install_dir</replaceable>/domains]
 [<option role="double-dash">terse</option>=<replaceable>false</replaceable>] [<option role="double-dash">echo</option>=<replaceable>false</replaceable>]</synopsis></refsynopsisdiv>
<refsect1 role="description"><title></title>
<para>Use the <command>list-domains</command> command to list the domain.
If the domain directory is not specified, the domain in the default <filename><replaceable>
install_dir</replaceable>/domains</filename> directory is listed. If there
is more that one domain, the <replaceable>domain_name</replaceable> operand
must be identified.</para>
</refsect1>
<refsect1 role="options"><title></title>
<variablelist termlength="medium">
<varlistentry><term><option role="double-dash">domaindir</option></term>
<listitem><para>The directory where the domains are to be started. If specified,
the path must be accessible in the filesystem. If not specified, the domain
in the default <filename><replaceable>install_dir</replaceable>/domains</filename>
directory is started.</para>
</listitem></varlistentry>
<varlistentry><term><option>t</option> <option role="double-dash">terse
</option></term><listitem><para>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.</para>
</listitem></varlistentry>
<varlistentry><term><option>e</option> <option role="double-dash">echo
</option></term><listitem><para>Setting to true will echo the command line
statement on to the standard output. Default is false.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 role="examples"><title></title>
<example>
<title>Using the list-domains command</title>
<screen>asadmin> <userinput>list-domains</userinput>
domain1 running
sampleDomain not running
Command list-domains executed successfully

</screen>
<para>Where: <filename>domain1</filename> and <filename>sampleDomain</filename>
are the domains located in the default <filename>install_dir/domains</filename>
directory.</para>
</example>
</refsect1>
<refsect1 role="exit-status"><title></title>
<variablelist termlength="medium">
<varlistentry><term>0</term><listitem><para>command executed successfully
</para>
</listitem></varlistentry>
<varlistentry><term>1</term><listitem><para>error in executing the command
</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1 role="see-also"><title></title>
<para><olink targetdoc="ASREFMAN" targetptr="create-domain-1">create-domain(1)</olink>, <olink targetdoc="ASREFMAN" targetptr="delete-domain-1">delete-domain(1)</olink>, <olink targetdoc="ASREFMAN" targetptr="start-domain-1">start-domain(1)</olink>, <olink targetdoc="ASREFMAN" targetptr="stop-domain-1">stop-domain(1)</olink>, 
</para>
</refsect1>
</refentry>
<?Pub *0000004424>
