Hitachi

Hitachi Application Server V10 Command Reference Guide (For Windows® Systems)


2.6.15 import-sync-bundle

Imports the configuration data of a clustered instance or standalone instance from an archive file.

Synopsis

asadmin [asadmin-options] import-sync-bundle [--help]
    --instance instance-name
    [--nodedir node-dir] [--node node-name]
    file-name

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The import-sync-bundle subcommand imports the configuration data of a clustered instance or standalone instance from an archive file that was created by the export-sync-bundle subcommand. Importing an instance's configuration data transfers the data to a host for an instance without the need for the instance to be able to communicate with the DAS. This subcommand is supported in local mode only.

Subcommand must run on the host where the instance resides. To contact the Domain Administration Server (DAS), this subcommand requires the name of the host where the DAS is running. If a non-default port is used for administration, this subcommand also requires the port number.

Precondition

For --instance option below is the pre-condition:

The instance must already exist in the DAS configuration. The archive file from which the data is being imported must contain data for the specified instance.

Files

The import-sync-bundle subcommand imports the configuration data of a clustered instance or standalone instance from an archive file (sync-bundle archive file) that was created by the export-sync-bundle subcommand.

Arguments

--help | -?

Displays the help text for the subcommand.

--instance instance-name

Specifies the instance for which configuration data is being imported. The instance must already exist in the DAS configuration. The archive file from which the data is being imported must contain data for the specified instance.

Type: String

The following values can be specified:

  • Name of the instance

Default value: N/A

--nodedir node-dir

Specifies the directory that contains the instance's node directory. The instance's files are stored in the instance's node directory.

Type: String

The following values can be specified:

  • Path of the node directory

Default value: Application Server installation directory/javaee/glassfish/nodes

--node node-name

Specifies the node on which the instance resides. If this option is omitted, the subcommand determines the node from the DAS configuration in the archive file.

Type: String

The following values can be specified:

  • Name of the node

Default value: node of the DAS configuration

file-name

Specifies the name of the file, including the path that contains the archive file to be imported. This operand is required.

Type: String

The following values can be specified:

  • Name of the file including the path

Default value: N/A

Examples

The following example imports the configuration for the clustered instance ymli2 on the node sj02 from the archive file /export/glassfish3/glassfish/domains/domain1/sync/ymlcluster-sync-bundle.zip.

The command is run on the host sj02, which is the host that the node sj02 represents. The DAS is running on the host sr04 and uses the default HTTP port for administration.

sj02# asadmin --host sr04 import-sync-bundle --node sj02 --instance ymli2
/export/glassfish3/glassfish/domains/domain1/sync/ymlcluster-sync-bundle.zip

Exit Status

Exit Status

Explanation

0

subcommand executed successfully.

1

error in executing the subcommand.