Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Operation Service Template Developer's Guide


4.1.8 Character set used for communication by JP1/AO during plug-in execution

The character set that is assigned at plug-in execution and used by JP1/AO for communication depends on the operating system of the device on which the operation is being performed.

Entries output to the task log and public log by the JP1/AO server are output in the default character set of the operating system of the JP1/AO server. For this reason, characters taken from a character set that is incompatible with the operation target device, machine-dependent characters, and Unicode-dependent characters might become garbled when output to a log file.

The following describes the character sets assigned at plug-in execution according to the operating system of the operation target device.

In Windows:

When executing a script or command on an operation target device, make sure that the locale and character set of the operation target device match those of the JP1/AO server. The locale and character set are determined by the settings in the Region and Language area of the Windows Control Panel.

In UNIX:

When executing a script or command on an operation target device, the character sets the JP1/AO server can use for communication are limited to the following character sets output by the locale charmap command. Note that the output of the locale charmap command is not case sensitive.

  • EUC-JP

  • eucjp

  • ibm-943C

  • ISO-8859-1

  • MS932

  • PCK

  • Shift_JIS

  • UTF-8

  • windows-31j

If the command returns a character set that is not one of those listed here, UTF-8 is assigned as the character set. Note that if the output of the locale charmap command is IBM-943, JP1/AO uses the ibm-943C character set for communication when executing the plug-in.

To find out which character set JP1/AO is using, use an SSH client or the ssh command to log in as the connection user, and then execute the locale charmap command. If you want to automatically change the character set when the connection user logs in, use a login script or other means to assign values to environment variables at login. You can change the character set at login by assigning a value to the LC_ALL or LANG environment variable.

If you want to assign a specific character set, see 4.1.9 Setting a specific character set during plug-in execution.