Hitachi

JP1 Version 12 JP1/Automatic Operation Service Template Reference


A.4 Prerequisites for executing command lines containing non-ASCII characters in UNIX

When the operation target device is running UNIX, certain settings are needed if you intend to execute commands with non-ASCII characters specified in properties. The affected plug-ins and properties are as follows:

#

When the operation target device is running UNIX, settings must be entered in the script when you execute a command that uses non-ASCII characters in a property. For a content plug-in, this applies to the command line and properties referenced from the command line.

The settings that need to be entered in the script depend on the plug-in you are executing and the operating system of the operation target device. The following table describes the required settings by plug-in and operating system. The output of the command will be invalid if these settings are not correct.

Table A‒9: Settings required to execute command lines containing non-ASCII characters in UNIX

Plug-in

OS of operation target device

Login script setting

.bashrc setting

General command plug-in

File-transfer plug-in#

Content plug-in

AIX

Y

N

HP-UX

Y

N

Linux

Y

N

Solaris

Y

Y

Terminal command plug-in

UNIX

Y

N

Legend:

Y: The setting is required. N: The setting is not required.

#

When a non-ASCII character is included in the value of the remoteFilePath property of the file-transfer plug-in.

Login script setting

Overview

Disable the istrip setting in the login script of the connection user.

Confirmation

You can check the status of the istrip setting in standard output by executing the stty -a command in the command line for each plug-in. If -istrip appears in standard output, the istrip setting is disabled. If istrip is not prefixed with - in standard output, the istrip setting is enabled. In this case, use the procedure below to disable it.

Procedure

Enter the stty -istrip command into the login script for the connection user.

Important

If you use the setting that elevates user permissions to root, the istrip setting will be overwritten in the login script of the root user. Make sure that the istrip setting is disabled in the login script of the root user.

.bashrc setting

Overview

In the .bashrc file of the connection user or the root user, set a valid locale other than C for the LC_ALL environment variable. Set a valid locale other than C even if there is no line in the file that assigns a value to the LC_ALL environment variable.

The confirmation method and setting procedure differ depending on whether you are using the setting that elevates the user to root. The confirmation and setting procedures for each scenario are shown below.

Confirmation
  • When JP1/AO is configured to elevate the user to root

    In the .bashrc file of the root user, make sure that a value other than C is assigned to the LC_ALL environment variable.

  • When JP1/AO is not configured to elevate the user to root

    In the .bashrc file of the connection user, make sure that a value other than C is assigned to the LC_ALL environment variable.

Procedure
  • When JP1/AO is configured to elevate the user to root

    In the .bashrc file of the root user, set a locale other than C that is valid in the user's environment as the value of the LC_ALL environment variable.

  • When JP1/AO is not configured to elevate the user to root

    In the .bashrc file of the connection user, set a locale other than C that is valid in the user's environment as the value of the LC_ALL environment variable.