<!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 EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip laquo lArr loz mdash nabla ndash para pound rArr raquo sect yen ne>
<?Pub Inc>
<refentry id="version-1">
<refmeta><refentrytitle>version</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="version">version &mdash; displays the version information</primary></indexterm><indexterm><primary sortas="displays the version information">displays the version information &mdash; version</primary></indexterm><refname>version</refname><refpurpose>displays the
version information</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>version</command>&synopsis-common;
<arg>&Dash;&Dash;verbose=<replaceable>false</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</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><title>&opts-tt;</title>
<variablelist termlength="medium">&options-common;
<varlistentry><term><option role="nodash">&Dash;&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><?Pub Caret1></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using remote mode to display version</title>
<screen>asadmin> <userinput>version</userinput>
Java 2 Platform Enterprise Edition 1.4 Application Server</screen>
</example>
<example>
<title>Using remote mode to display version in detail</title>
<screen>asadmin> <userinput>version --user admin --passwordfile mysecret 
--host bluestar --port 4848 --verbose</userinput>
Java 2 Platform Enterprise Edition 1.4 Application Server (build A021930-126949)</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="help-1"><citerefentry><refentrytitle>help</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000003083>
