Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 1


13.4.1 Setting the language environment

The following describes how to set the language environment of the system.

For details about the language types that can be used in the system, see 2.4.3 Language type of the system in the Job Management Partner 1/Automatic Job Management System 3 System Design (Configuration) Guide.

Organization of this subsection

(1) Changing the character encoding type

The following describes the procedure for changing the character encoding.

The following table shows the default character encoding for each operating system.

Table 13‒6: System default character encodings

No.

OS

System default character encodings

1

Linux

UTF-8

2

Solaris

EUC

3

AIX

SJIS

4

HP-UX

SJIS

Note that if the name of a unit that is running in JP1/AJS3 contains a kana character or a two-byte character, you must redefine the unit after changing the character encoding.

To change the character encoding:

  1. Stop JP1 services, the connected JP1/AJS3 - View, and any commands that are being executed.

  2. Change the character encoding type used in JP1/Base.

    For details about how to change the character encoding type used in JP1/Base, see the Job Management Partner 1/Base User's Guide.

  3. To change the output character encoding type of events issued by a JP1/AJS3 service or the job execution environment, open the following file by using an editor such as vi.

    • For physical host

      /etc/opt/jp1ajs2/conf/jp1ajs_env.conf

    • For logical host

      shared-directory/jp1ajs2/conf/jp1ajs_env.conf

  4. Change the existing LANG environment variable value to the desired value on the LANG= line in the file you opened in step 3. After making the change, save the file.

  5. To change the character encoding type of the job execution environment and unit definition environment, change the environment setting parameter.

    Execute the following command:

    jajs_config -k "[{JP1_DEFAULT|logical-host-name}\JP1AJSMANAGER\scheduler-service-name]" "AJSCHARCODE"="character-code"

    The specification of the {JP1_DEFAULT|logical-host} part depends on whether the host is a physical host or a logical host. For a physical host, specify JP1_DEFAULT. For a logical host, specify the logical host name.

    For details about the AJSCHARCODE environment setting parameter, see 2.2 Setting up the scheduler service environment in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2.

  6. To change the character encoding type of the messages that scheduler services output to syslog, change the environment setting parameter.

    Execute the following command:

    jajs_config -k "[{JP1_DEFAULT|logical-host-name}\JP1AJSMANAGER\scheduler-service-name]" "SYSLOGCODE"="LANG-environment-variable-value"

    The specification of the {JP1_DEFAULT|logical-host} part depends on whether the host is a physical host or a logical host. For a physical host, specify JP1_DEFAULT. For a logical host, specify the logical host name.

    Note that if a value other than C is specified, the character encoding depends on the LANG environment variable of the environment in which the scheduler service starts. If necessary, change the LANG environment variable value of the environment in which the scheduler service is to be started.

    LANG="ja_JP.SJIS"

    export LANG

    Important note

    It might not be possible for the character encoding specified for the LANG environment variable to be output to syslog . In such cases, make sure you specify C.

  7. If you use JP1/AJS3 Console, change the environment setting parameter to change the character encoding of information that will be stored in the user definition data.

    Execute the following command:

    jajs_config -k "[JP1_DEFAULT\JP1AJS2CONSOLEMANAGER\]" "CHARCODE"="EUC"

    For details about the CHARCODE environment setting parameter, see 2.8 Setting up the JP1/AJS3 Console environment in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2.

  8. If you use JP1/AJS3 Console, change the environment setting parameter to change the character encoding type of the messages that will be output to syslog by JP1/AJS3 Console Manager or JP1/AJS3 Console Agent.

    Execute the following command:

    • For JP1/AJS3 Console Manager

      jajs_config -k "[JP1_DEFAULT\JP1AJS2CONSOLEMANAGER]" "SYSLOGCODE"="C"

    • For JP1/AJS3 Console Agent

      jajs_config -k "[JP1_DEFAULT\JP1AJS2CONSOLEAGENT]" "SYSLOGCODE"="C"

    Note that if a value other than C is specified, the character encoding depends on the LANG environment variable of the environment in which the JP1/AJS3 Console Manager or JP1/AJS3 Console Agent service starts. If necessary, change the LANG environment variable value of the environment in which you want the JP1/AJS3 Console Manager or JP1/AJS3 Console Agent service to start.

    LANG="ja_JP.SJIS"

    export LANG

    Important note

    It might not be possible for the character encoding specified for the LANG environment variable to be output to syslog. In such cases, make sure you specify C.

  9. If you use JP1/AJS3 Console, change the messages that will be output by the JP1/AJS3 Console Manager or JP1/AJS3 Console Agent service.

    Change the LANG environment variable value of the environment in which you want the JP1/AJS3 Console Manager or JP1/AJS3 Console Agent service to start.

    LANG="ja_JP.SJIS"

    export LANG