Hitachi

JP1 Version 13 JP1/Integrated Management 3 - Event Gateway for Network Node Manager i


2.4.2 Environment variable settings (UNIX only)

UNIX users must set the language code used by JP1/IM - EG for NNMi. Configure the language code setting for both the environment variables file and common definitions.

Note the following points about the environment variables settings.

Each setting must maintain uniformity within the local host. For details about the procedure to use to configure settings, see below.

Organization of this subsection

(1) Setting the language encoding in the environment variable file

Using a text editor such as vi, open the /etc/opt/jp1eg4nnmi/conf/jegn_env.conf file and, following LANG= on the first line, set the appropriate value for the LANG environment variable based on the following table.

Table 2‒5: Values that can be specified for LANG in the jegn_env.conf file

OS

Language type in use

Value of LANG environment variable

Type

Language type

Encoding

Linux

Japanese

UTF-8#1

Japanese

ja_JP.UTF-8 or ja_JP.utf8

SJIS#2

ja_JP.SJIS or ja_JP.sjis

English

UTF-8#1

English

en_US.UTF-8 or en_US.utf8

C

C

#1

In UTF-8 encoding, two character codes are used to represent each of the following symbols:

Yen sign (\): 0x5C or 0xC2A5

Tilde (~): 0x7E or 0xE280BE

JP1/IM - EG for NNMi uses character codes 0x5C and 0x7E for these symbols.

#2

Applicable to SUSE Linux only.

Environment variables file settings will be applied the next time you start up JP1/IM - EG for NNMi.

(2) Setting the language encoding in the common definitions

  1. Edit the jp1bs_param.conf file of JP1/Base.

    Use a text editor to open the /etc/opt/jp1base/conf/jp1bs_param.conf file. After LANG=, set a value for the LANG environment variable based on the table below.

    Table 2‒6: Values that can be specified for LANG in the jp1bs_param.conf file

    OS

    Language type in use

    Value of LANG

    Type

    Language

    Encoding

    Linux

    Japanese

    UTF-8

    Japanese

    UTF-8

    SJIS#

    SJIS

    English

    UTF-8

    English

    UTF-8

    C

    C

    #: Applicable to SUSE Linux only.

  2. Stop JP1/IM - EG for NNMi.

  3. Stop JP1/Base.

  4. Execute the following command:

    /opt/jp1base/bin/jbssetcnf /etc/opt/jp1base/conf/jp1bs_param.conf

  5. Start JP1/Base.

  6. Start JP1/IM - EG for NNMi.