Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (1147 KB)
asadmin(1M)Name | Synopsis | Description | Examples | Attributes | See Also Name
Synopsisasadmin subcommand [-short-option[ short-option-argument]]* [--long-option[ long-option-argument]]* [operand]* Description
Use the asadmin utility to perform administrative tasks for Sun GlassFish Enterprise Server. You can use this utility instead of the Administration Console interface. Subcommands of the asadmin UtilityThe subcommand identifies the operation or task that you are performing. Subcommands are case-sensitive. Each subcommand is either a local subcommand or a remote subcommand. Options for the asadmin UtilityOptions control how the asadmin utility performs a subcommand. Options are also case-sensitive. Options have a long form and a short form. For example, the short form and the long form of the option for specifying terse output are as follows: Most options require argument values, except Boolean options, which toggle to enable or disable a feature. Operands of the asadmin UtilityOperands appear after the argument values, and are set off by a space, a tab, or double dashes (--). The asadmin utility treats anything that comes after the options and their values as an operand. Required Options for Remote asadmin SubcommandsAll remote subcommands require the following options: Escape Characters in Options for the asadmin UtilityEscape characters are required in options of the asadmin utility for the following types of characters: The escape character disables the delimiter in the command-line interface, and is a special character in the UNIX operating system and in Java technology. Therefore, in the UNIX operating system, you must apply an escape character to every escape character in the command line. This requirement does not apply to the Windows operating system. Tip – Instead of using the backslash (\) escape character, you can use the double quote character ("). However, because the double quote is a special character in Java technology, you must add an escape character in single mode. Password File OptionsAS_ADMIN_PASSWORD=value AS_ADMIN_ADMINPASSWORD=value AS_ADMIN_USERPASSWORD=value AS_ADMIN_MASTERPASSWORD=value If the AS_ADMIN_PASSWORD environment variable has been exported to the global environment, specifying the --passwordfile option produces a warning about using the --password option. To avoid this warning, unset the AS_ADMIN_PASSWORD environment variable. The master password is not propagated on the command line or an environment variable, but can be specified in the file that the --passwordfile option specifies. Requirements for Using the --secure OptionTo use the --secure option, you must use the set(1) command to set the security-enabled attribute of the http-listener in Sun GlassFish Enterprise Server v3 Prelude Administration Reference element to true. This element is stored in the domain.xml configuration file. Server Restart After Creation or DeletionWhen you use the asadmin subcommands to create or delete an item, you must restart the DAS for the change to take effect. To restart the DAS, use the start-domain(1) command. Usage Information for asadmin Utility SubcommandsTo obtain usage information for an asadmin utility subcommand, specify the --help option. If you specify a subcommand, the usage information for that subcommand is displayed. If you specify the --help option without a subcommand, this usage information for the asadmin utility is displayed. To obtain a listing of available asadmin subcommands, use the list-commands(1) command. Examples
Example 1 Specifying a UNIX Operating System Meta Character in an OptionThe commands in this example show how to specify the UNIX operating system meta character backslash (\) in the option argument Test\Escape\Character. For the UNIX operating system, the backslash (\) is required to escape the meta character backslash (\):
For the Windows operating system, no escape character is required:
Example 2 Specifying a Meta Character and an Option Delimiter Character in a PropertyThe commands in this example show how to specify the UNIX operating system meta character backslash (\) and the option delimiter character colon (:) in the --property option of the create-jdbc-connection-pool(1) command. The name and value pairs for the --property option are as follows:
For the UNIX operating system, a backslash (\) is required to escape the colon (:) and the backslash (\):
For the Windows operating system, a backslash (\) is required to escape only the colon (:), but not the backslash (\):
For all operating systems, the need to escape the colon (:) in a value can be obviated by enclosing the value in double quotes:
Example 3 Specifying an Option Delimiter and a Java Technology Escape Character in a JVM Machine OptionThe commands in this example show how to specify the following characters in the JVM machine option -Dlocation=c:\sun\appserver: For the UNIX operating system, two backslashes (\\) are required to escape the colon (:) and three backslashes (\\\) are required to escape the backslash (\). As a result, a total of four backslashes are required: The resulting command is as follows:
For the Windows operating system, a backslash (\) is required to escape the colon (:) and the backslash (\):
Example 4 Specifying an Option That Contains an Escape CharacterThe commands in this example show how to specify the backslash character in the option argument "admin\admin". For the UNIX operating system, a backslash (\) is required to escape the double quote (") and the backslash (\):
For the Windows operating system, a backslash (\) is required to escape only the double quote ("), but not the backslash (\):
AttributesSee attributes(5) for descriptions of the following attributes:
See Alsocreate-jdbc-connection-pool(1), create-jvm-options(1), list-commands(1), set(1), start-domain(1) http-listener in Sun GlassFish Enterprise Server v3 Prelude Administration Reference Name | Synopsis | Description | Examples | Attributes | See Also |
|||||||||||||||||