The Enterprise Server asadmin utility is a command-line tool that invokes subcommands for identifying the operation or task that you want to perform. You can run asadmin commands either from a command prompt or from a script. The format for starting the asadmin utility on the command line is as-install/bin/asadmin subcommand --option. For example:
asadmin list-applications --type web
Application deployment commands are listed in Appendix A, The asadmin Deployment Subcommands. All Enterprise Server asadmin commands are documented in Sun GlassFish Enterprise Server v3 Reference Manual.
For the most part, you can perform the same administrative tasks by using either the graphical Administration Console or the asadmin command-line utility, however, there are exceptions. Procedures for using the command-line utilities are provided in this guide and in the command-line help pages, which are similar to man pages. You can display the help material for a command by typing help followed by the subcommand. For example:
asadmin help list-applications
For additional information on the asadmin utility, see Using the asadmin Utility in Sun GlassFish Enterprise Server v3 Administration Guide and the asadmin(1M) help page.