<!--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;
]>
<?Pub UDT _bookmark _target>
<?Pub CX solbook(>
<refentry id="version-1">
<!-- @(#)version.1 1.9 07/04/25 SMI; -->
<refmeta><refentrytitle>version</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>version</primary></indexterm><indexterm>
<primary>displays the version information</primary></indexterm>
<refname>version</refname><refpurpose>displays the version information</refpurpose>
</refnamediv>
<refsynopsisdiv><title></title>
<synopsis><command>version</command> &synopsis-common; [<option
role="double-dash">verbose</option>=<replaceable>false</replaceable>]</synopsis>
</refsynopsisdiv>
<refsect1 role="description"><title></title>
<para>Use the <command>version</command> command to display the version information.
If the command cannot communicate with the administration server with the
given user/password and host/port, then the command will retrieve the version
locally and display a warning message.</para>
<para>This command is supported in remote mode only.</para>
</refsect1>
<refsect1 role="options"><title></title>
<variablelist termlength="medium">&options-common;
<varlistentry><term><option role="double-dash">verbose</option></term>
<listitem><para>By default this flag is set to false. If set to true, the
version information is displayed in detail.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="examples"><title></title>
<example><title>Using remote mode to display version</title>
<screen>asadmin> <userinput>version</userinput>
Version = Sun GlassFish Communications Server 0.5<?Pub Caret>
Command version executed successfully.

</screen>
</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="help-1">help(1)</olink></para>
</refsect1>
</refentry>
<?Pub *0000002464 0>
