Using the asadmin CLI utility
Located in the $AS_INSTALL/bin
directory, the asadmin
CLI utility has been improved to provide more capability in GlassFish 3. You can enter the following command to view the help page of the asadmin
utility:
# cd $AS_INSTALL/bin
# ./asadmin help | more
There are two types of subcommands. Local subcommands can be run without a running domain administration server (DAS). However, you must have access to the installation directory and the domain directory. Remote subcommands are always run by connecting to a DAS. You can view a list of subcommands supported by asadmin
with the following command:
# cd $AS_INSTALL/bin
# ./asadmin list-commands
The output of the list-commands
lists both local and remote commands, as shown in the following sample output:
********** Local Commands **********
create-domain
delete-domain
list-commands
list-domains
login
monitor
start-database
start-domain
stop-database
stop-domain
version
********** Remote Commands **********
__locations...