Using command line interface commands, Using command, Line interface commands – HP Systems Insight Manager User Manual

Page 79

Advertising
background image

tools) or each execution system (for MSA tools, usually the CMS), we have defined the format of some
properties that can be added to the globalsettings.props file. These properties provide the character
map encoding to use for each language on each operating system, what Code Page code to use for each
language on a Windows target and execution system, and the string that defines that encoding in the

LANG

environment variable on a Linux or HP-UX system. Also, some properties define what to use for unsupported
languages on each operating system. The format of the property names are:

"TargetCharacterMapEncoding_" + language + "_" + os_name + "=" + encoding

“TargetCodePage_” + language or encoding + “_” + os_name + ”=” + code page

number "TargetLangEncoding” + encoding + “_” + os_name + “=” + encoding string

where language is the two-character code for a language, os_name is the uppercase keyword for the
supported operating system (for example, LINUX, HPUX, WINNT), and encoding is the canonical name
for character map encoding for that language on the operating system. The supported names can be found
in column 2 of the web page

http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html

.

The entries look like:

TargetCharacterMapEncoding_ja_LINUX=EUC_JP

TargetCharacterMapEncoding_??_LINUX=ISO8859_1-

TargetCharacterMapEncoding_ja_HPUX=SJIS

TargetCharacterMapEncoding_??_HPUX=ISO8859_1

TargetCharacterMapEncoding_ja_WINNT=SJIS

TargetCharacterMapEncoding_??_WINNT=ISO8859_1

TargetCodePage_ja_WINNT=932

TargetCodePage_??_WINNT=437

For the Windows target and execution systems, these properties are used to choose the chcp command to
execute in the SSH command prompt shell, to force the language and encoding to set to execute the Windows
command line command. For example:

chcp 932

(forces the language to Japanese Shift-JIS)

chcp 437

(forces the language to US English with at least ISO-8859-1 support)

For Linux and HP-UX target and execution systems, the encoding is used with the locale to define the

LANG

environment variable to be defined in the SSH environment on the target and execution systems. Example
values can be found by executing the locale -a command on these operating systems. For example:

LANG=en_US.iso88591

(US English language, ISO-8859-1 encoding on HP-UX)

LANG=ja_JP.SJIS

(Japanese language, Shift-JIS encoding on HP-UX)

LANG=ja_JP.eucjp

(Japanese language, EUC-JP encoding on Linux)

LANG=en_US.utf8

(US English language, UTF-8 encoding on Linux)

Using command line interface commands

HP Systems Insight Manager (HP SIM) provides a

command line interface

(CLI) in addition to the

graphical

user interface

(GUI). Many functions available in the GUI are also available through the CLI.

HP SIM commands are installed in the following locations on the Central Management Server (CMS):

HP-UX and Linux: /opt/mx/bin/

Windows: C:\Program Files\HP\Systems Insight Manager\bin\

Using command line interface commands

79

Advertising