Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
create-connector-connection-pool(1)
create-connector-security-map(1)
create-connector-work-security-map(1)
create-jdbc-connection-pool(1)
create-message-security-provider(1)
create-resource-adapter-config(1)
delete-connector-connection-pool(1)
delete-connector-security-map(1)
delete-connector-work-security-map(1)
delete-jdbc-connection-pool(1)
delete-message-security-provider(1)
delete-resource-adapter-config(1)
disable-http-lb-application(1)
disable-secure-admin-internal-user(1)
disable-secure-admin-principal(1)
enable-secure-admin-internal-user(1)
enable-secure-admin-principal(1)
list-connector-connection-pools(1)
list-connector-security-maps(1)
list-connector-work-security-maps(1)
list-message-security-providers(1)
list-resource-adapter-configs(1)
list-secure-admin-internal-users(1)
list-secure-admin-principals(1)
list-supported-cipher-suites(1)
unfreeze-transaction-service(1)
update-admin-server-coordinates(1)
update-admin-server-local-coordinates(1)
update-connector-security-map(1)
update-connector-work-security-map(1)
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- creates a ZIP archive of all available log files
collect-log-files [--help] [--target target] [--retrieve={false|true}] [retrievefilepath]]
The collect-log-files subcommand collects all available log files for the domain administration server (DAS), the specified cluster, or the specified GlassFish Server instance and creates a single ZIP archive of the log files.
This subcommand is supported in remote mode only.
Displays the help text for the subcommand.
Specifies whether the ZIP archive is created in a directory other than the default directory.
By default the ZIP archive is created in the as-install/domains/domain1/collected-logs directory. The ZIP file names are constructed from the specified target and timestamp, as follows:
log_yyyy-mm-dd_hh-min-sec.zip
Possible values are as follows:
The ZIP archive will be created in the default directory. If omitted, the --retrieve option defaults to false.
The ZIP archive will be created in the directory that the retrievefilepath operand specifies. If retrievefilepath is omitted, the ZIP archive will be created in the default directory.
Specifies the target for which log files will be collected.
Possible values are as follows:
The log files will be collected for the DAS (default).
The log files will be collected for the specified GlassFish Server instance.
The log files will be collected for the specified cluster.
The name of the directory in which the ZIP archive will be created. If this operand is omitted, the ZIP archive will be created in the default directory. If the --retrieve option is false, this operand is ignored.
Example 1 Collecting Log Files for the Default Server
This example generates a ZIP archive from the log files for the default server.
asadmin> collect-log-files Created Zip file under /space/gfv3/v3setup/glassfish3/glassfish/domains/domain1/\ collected-logs/log_2010-12-15_15-46-23.zip. Command collect-log-files executed successfully.
Example 2 Collecting Log Files for a Cluster
This example generates a ZIP archive from the log files for a cluster named cluster1 and the two server instances running in the cluster.
asadmin> collect-log-files --target cluster1 Log files are downloaded for instance1. Log files are downloaded for instance2. Created Zip file under /space/gfv3/v3setup/glassfish3/glassfish/domains/domain1/\ collected-logs/log_2010-12-15_15-54-06.zip. Command collect-log-files executed successfully.
Example 3 Collecting Log Files in a Directory Other Than the Default for a Cluster
This example generates a ZIP archive from the log files for a cluster named cluster1 and its two server instances, and saves the archive in a directory named /space/output.
asadmin> collect-log-files --target cluster1 --retrieve true /space/output Log files are downloaded for instance1. Log files are downloaded for instance2. Created Zip file under /space/output/log_2010-12-15_15-55-54.zip. Command collect-log-files executed successfully.
subcommand executed successfully
error in executing the subcommand
list-log-attributes(1), list-log-levels(1), rotate-log(1), set-log-attributes(1), set-log-levels(1)
Chapter 7, Administering the Logging Service, in Oracle GlassFish Server 3.1 Administration Guide