Hitachi

JP1 Version 12 JP1/Data Highway - Server Configuration and Administration Guide


9.2.2 Installing the of the data transfer command (in Linux)

This subsection describes how to install the data transfer command to use the command in a Linux OS.

Organization of this subsection

(1) Copying the executable file

Before the installation, copy the executable file of the data transfer command (DWClientApp.zip or DWClient.tar.gz) in any folder on the machine where the command is to be executed.

The executable file of the data transfer command is installed together with the installation of JP1/DH - Server. The storage folders of the executable file are as follows:

When JP1/DH - Server is constructed on Windows

When you use the commands that come with Java:

JP1/DH-Server-installation-folder\Client\DWClientApp.tar.gz

When you use the commands that do not come with Java (traditional commands):

JP1/DH-Server-installation-folder\Client\DWClient.tar.gz
When JP1/DH - Server is constructed on Linux

When you use the commands that come with Java:

/opt/jp1dh/server/Client/DWClientApp.tar.gz

When you use the commands that do not come with Java (traditional commands):

/opt/jp1dh/server/Client/DWClient.tar.gz

(2) Checking the environment prerequisites (in Linux)

(a) Checking the prerequisite OS

See 9.1.2 Precondition for installation and make sure that the software on the machine where the data transfer command is to be installed satisfies the prerequisites of that command.

(b) Checking JRE

It's confirmed that JRE is installed.

Important

If you use the commands that come with Java, you do not need to check JRE.

(3) Installating JRE (in Linux)

How to introduction of JRE.

When JRE isn't installed or the version doesn't satisfy the precondition, it's put into effect.

Important

You do not need to install JRE when:

  • You run the data transfer command on the machine where JP1/DH - Server is installed.

  • You use the commands that come with Java.

  1. An installation file of JRE is downloaded from the site of Oracle company.

  2. A downloaded installation file is carried out.

    Please complete the installation work in accordance with the instructions on the screen.

(4) Setting the system environment variable (in Linux)

  1. Add the environment variable DW_CMD_JRE_HOME to the configuration file for the login shell you are using.

  2. Set the path to the installation folder for JRE to the environment variable DW_CMD_JRE_HOME.

    A setting example is shown below.

    When using tcsh as the login shell, add the setting to the .../.tcshrc file.

    # .tcshrc
     
    # User specific aliases and functions
     
    alias rm 'rm -i'
    alias cp 'cp -i'
    alias mv 'mv -i'
     
    set prompt='{%n@%m %c}# '
     
    # Command
    setenv DW_CMD_JRE_HOME /usr/java/jre

    When using bash as the login shell, add the setting to the .../.bashrc file.

    # .bashrc
     
    # User specific aliases and functions
     
    alias rm='rm -i'
    alias cp='cp -i'
    alias mv='mv -i'
     
    # Source global definitions
    if { -f /etc/bashrc }; then
            . /etc/bashrc
    Fi
     
    # Command
    export DW_CMD_JRE_HOME=/usr/java/jre
    Important

    When you execute the data transfer command on the machine where JP1/DH - Server is installed, specify the path of JRE included in JP1/DH - Server for the installation directory for JRE. The installation path for JRE is as follows:

    /opt/jp1dh/server/uCPSB/jdk/jre

(5) Installing (in Linux)

The following procedure shows how to install the data transfer command.

  1. Create a directory for installing the data transfer command. An example of a directory is as follows:

    mkdir /usr/bin/DWClient

  2. Move to the created directory.

    cd /usr/bin/DWClient

  3. Copy the executable file (DWClientApp.zip or DWClient.tar.gz) that was copied to the folder you selected, to the directory where you moved in step 2.

  4. Decompress the executable file (DWClientApp.zip or DWClient.tar.gz) stored in the installation directory created in step 1.

    In DWClientApp.tar.gz

    tar zxvf DWClientApp.tar.gz

    In DWClient.tar.gzの場合

    tar zxvf DWClient.tar.gz