2.12.4 list-commands
Lists the available commands.
Synopsis
asadmin [asadmin-options] list-commands [--help] [--localonly={false|true}] [--remoteonly={false|true}] [pattern-list]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The list-commands subcommand lists the asadmin subcommands. By default, the list-commands subcommand displays a list of local subcommands followed by a list of remote subcommands. You can specify the following to be listed:
-
only remote subcommands
-
only local subcommands
-
only subcommands whose names contain a specified text string
This subcommand is supported in local mode and remote mode.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --localonly={false|true}
-
Lists only the local commands if this option is set to true.
If this option is set to true, the --remoteonly option must be set to false. Otherwise, an error occurs.
Type: Boolean
The following values can be specified:
-
true
-
false
Default value: false
-
- --remoteonly={false|true}
-
Lists only the remote commands if this option is set to true.
If this option is set to true, the --localonly option must be set to false. Otherwise, an error occurs.
Type: Boolean
The following values can be specified:
-
true
-
false
Default value: false
-
- pattern-list
-
Specifies a space-separated list of text strings on which to filter the list of subcommands. Only the subcommands that contain any one of the specified text strings is listed.
Type: String
The following values can be specified:
-
Name of the subcommand
Default value: N/A
-
Examples
The following example lists only the local subcommands.
asadmin list-commands --localonly=true
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |