<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY metainfo SYSTEM "metainfo.sgm">
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY Dash "&ndash;">
]>
<?Pub UDT _bookmark _target>
<?Pub Inc>
<refentry id="list-virtual-servers-1">
<refmeta><refentrytitle>list-virtual-servers</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="list-virtual-servers">list-virtual-servers &mdash;
lists the existing virtual servers</primary></indexterm><indexterm><primary
sortas="gets the virtual servers">lists the existing virtual servers &mdash;
list-virtual-servers</primary></indexterm><refname>list-virtual-servers</refname>
<refpurpose>lists the existing virtual servers</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>list-virtual-servers </command>&synopsis-common;
<arg><replaceable>target</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>The <command>list-virtual-servers</command> command lists the existing
virtual servers. This command is supported in remote mode only.</para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<variablelist termlength="medium">&options-common;
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>target</replaceable></term><listitem><para>
This operand specifies the target for which the virtual servers are to be
listed. Valid values are:<itemizedlist>
<listitem><para><literal>server</literal>, which lists the virtual servers
in the default server instance and is the default value</para>
</listitem>
<listitem><para><replaceable>configuration_name</replaceable>, which lists
the virtual servers in the specified configuration</para>
</listitem>
<listitem><para><replaceable>cluster_name</replaceable>, which lists the virtual
servers in the specified cluster</para>
</listitem>
<listitem><para><replaceable>instance_name</replaceable>, which lists the
virtual servers in a particular server instance</para>
</listitem>
</itemizedlist></para>
<para>&se-ee-only;</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;<?Pub Caret></title>
<example>
<title>Using the list-virtual-servers command</title>
<para>The following command lists all the virtual servers for the server instance:
</para>
<screen>asadmin> <userinput>list-virtual-servers --user admin --passwordfile passwords.txt 
--host localhost --port 4848</userinput>
server
__asadmin
Command list-virtual-servers executed successfully.</screen>
</example>
</refsect1>
<refsect1><title>&exit-tt;</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><title>&also-tt;</title>
<para><link linkend="create-virtual-server-1"><citerefentry><refentrytitle>
create-virtual-server</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>, <link
linkend="delete-virtual-server-1"><citerefentry><refentrytitle>delete-virtual-server
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000003603>
