Subcommand names are case-sensitive.
Subcommands that are supplied in GlassFish Server distributions typically create, delete, and list objects of a particular type. For consistency with the names of subcommands that are supplied in GlassFish Server distributions, follow these conventions when specifying the name of a subcommand:
For subcommands that create an object of a particular type, use the name create-object.
For subcommands that delete an object of a particular type, use the name delete-object.
For subcommands that list all objects of a particular type, use the name list-objects.
For example, GlassFish Server provides the following subcommands for creating, deleting, and listing HTTP listeners:
You must also ensure that the name of your subcommand is unique. To obtain a complete list of the names of all asadmin subcommands that are installed, use the list-commands(1) subcommand. For a complete list of asadmin subcommands that are supplied in GlassFish Server distributions, see Oracle GlassFish Server 3.0.1 Reference Manual.