Hitachi

uCosminexus Service Platform Setup and Operation Guide


2.9.2 Procedure for configuring multiple environments on one machine

The following figure shows the procedure for configuring multiple HCSC-Manager environments on one machine:

Figure 2‒15: Procedure for configuring multiple HCSC-Manager environments on one machine

[Figure]

Organization of this subsection

(1) Setting the CSCMNG_HOME environment variables

When configuring multiple HCSC-Manager environment on one machine, you must set the CSCMNG_HOME environment variable only for the number of configured environments.

Set an absolute path of an optional folder in the CSCMNG_HOME environment variables. By setting up this path, the HCSC-Manager references the definition file under the CSCMNG_HOME environment variable.

The following table describes the definition file under the CSCMNG_HOME environment variable referenced by the HCSC-Manager:

Table 2‒26: Definition file under the CSCMNG_HOME environment variables referenced by HCSC-Manager

Directory name

Description

%CSCMNG_HOME%\config

Configuration file storage directory used in operating environment

%CSCMNG_HOME%\log

Default log directory used in operating environment

%CSCMNG_HOME%\repository

Default repository directory used in operating environment

%CSCMNG_HOME%\spool

Temporary directory used in operating environment

Tip

Hitachi recommends the setup the absolute path of the optional folder such as c:\cscmng which is easy to understand.

Important note

When configuring multiple HCSC-Manager environments with the same CSCMNG_HOME environment variables, execute with the CSCMNG_HOME environment variables that is set to the same value by the CSCMNG commands after setting up the CSCMNG_HOME environment variables.

Hitachi recommends creating user environment variables, command prompt short cuts, shelling script for resource setup to avoid any miss outs in the set up

The following are the examples for settings of CSCMNG_HOME environment variables:

(a) Examples for settings of CSCMNG_HOME environment variables (In Windows)

The following is the example for setting c:\cscmng:

Examples for settings of user environment variables

The following table shows the example for setting c:\cscmng:

  1. Input the environment variable to be set as shown in the following dialog box:

    [Figure]

  2. Click the OK button.

    The CSCMNG_HOME environment variable is enabled.

Example for setting short cut of command prompt

The following is the procedure for setting short cut to the command prompt:

  1. Create the cscmng_env.bat file where the following contents are described, in an optional directory:

    set CSCMNG_HOME=C:\cscmng

    [Figure]

  2. Copy the short cut of the command prompt in the optional directory and change the property link destination as follows:

    cmd.exe /K full-path-of-the-cscmng_env.bat-file-create-in-step1

    [Figure]

(b) Examples for settings of CSCMNG_HOME environment variables (In UNIX)

The following is the example for setting /home/user1/cscmng:

Example for setting Bourne-shell

The following is the procedure for setting Bourne-shell:

  1. Create the cscmng_env.bat file where the following contents are described, in an optional directory:

    export CSCMNG_HOME=/home/user1/cscmng
  2. Execute shell by the following format:

    . cscmng.sh

    When shell is executed, cscmng.sh file is read and the CSCMNG_HOME environment variable is enabled.

Example for setting C shell

The following is the example for setting Cshell:

  1. Create the cscmng.csh file in which the following contents are described, in an optional directory:

    setenv CSCMNG_HOME /home/user1/cscmng
  2. Execute shell by the following format:

    source cscmng.csh

    When shell is executed, cscmng.sh file is read and the CSCMNG_HOME environment variable is enabled.

(2) Setting up the operating environment

When configuring multiple operating environments on one machine, you must see setup only the environments to be configured. For details about how to set up operating environment, see 2.4 Settings Related to the Operating Environment.

The following are the precautions that you must take when changing the common definition of the HCSC-Manager command and the HCSC-Manager definition file from an initial value.

(a) Precautions when changing the HCSC-Manager definition file from initial value

  • Create the %CSCMNG_HOME%\config\manager directory, and then after copying the following property file under the %CSCMNG_HOME%\config\manager directory you can use the property file.

    Service Platform installation directory\CSC\config\manager\templates\cscmng.properties
  • The HCSC-Manager definition file changes to %CSCMNG_HOME%\config\manager\cscmng.properties and not <Service Platform installation directory>\CSC\config\manager\cscmng.properties.

  • Confirm if %CSCMNG_HOME%\config\manager\cscmng.properties exists when the HCSC-Manager definition file is not enabled. If the file exists, check if file correctly edited.

(b) Precaution when changing the common definition of HCSC-Manager commands from initial value

  • Create the %CSCMNG_HOME%\config\manager directory, and then after copying the following property file under the %CSCMNG_HOME%\config\manager directory, you can use the property file.

    Service Platform installation directory\CSC\config\manager\templates\csccmd.properties
  • The common definition file of the HCSC-Manager command changes to %CSCMNG_HOME%\config\manager\csccmd.properties and not Service Platform installation directory\CSC\config\manager\csccmd.properties.

  • Confirm if %CSCMNG_HOME%\config\manager\csccmd.properties exists when HCSC-Manager command common definition file is not enabled. If the file exists, check if the file is correctly edited.

(3) Setting up the HCSC server

For details about the HCSC server setups, see 3.1 Setting Up the System.

(4) GUI start-up

After the HCSC server is setup, and when the operation is executed using the GUI of Eclipse, startup Eclipse when the CSCMNG_HOME environment variable is in an enabled state. For example, if the CSCMNG_HOME environment variable is enabled at the Command Prompt, startup eclipse.exe from the Command Prompt.