IntroductionYou can set the language or locale in your operating system, in a command shell, or in your Web browser to English or Japanese and run HP Systems Insight Manager (HP SIM). Both the central management server (CMS) and the managed systems must have support for all of the desired languages installed. The language is used to present all the labels, menus, and status and error messages in HP SIM in the requested language. The graphical user interface (GUI) shown in your browser appears in the preferred language of the Web browser. Also, tools and tasks executed interactively through the CMS have the same language used as the language the tool command line is executed with on the target system. This enables your Web browser to run tools, create scheduled tasks, and manually run scheduled tasks in the preferred language. Likewise, the language setting of your command shell is forwarded through the mxexec and mxtask command line commands to set the language for executing a tool, manually executing a task, or creating a scheduled task when the command line for the tool is executed on the target systems. The CMS also has another locale independent from any user sessions (refer to "Configuring HP SIM" ). This is referred to as the CMS Locale. Some of the features inherit this locale, such as logging files and e-mail messages sent by Automatic Event Handling which are neutral from any sessions.
Setting the Web Browser Language or LocaleWhen you configure your Web browser and select the language you prefer, the HP SIM GUI honors this request. This is for English and Japanese only. The browser locale is also used to set the language and encoding in the Secure Shell (SSH) command shell in which the tool command executes. The browser locale is saved on a scheduled task when it is created and is used to set the language and encoding on the target system for Single-system Aware (SSA) tools and on the execution system for Multiple-system Aware (MSA) tools. When you manually execute a task, the current browser locale overrides the locale set in the scheduled task for this single manual execution of the task (for SSA and MSA tools). Configuring the Language Settings in Internet ExplorerComplete the following procedure to set the preferred language settings to Japanese in Internet Explorer. Select Tools Internet Options [Languages]. The Language Preference window appears. Click [Add]. The Add Language window appears. Select Japanese from the list. Click [OK] to add it to the language preference list. Select Japanese in the language preference list and click [Move Up] until it is at the top of the list, or select and remove any other languages listed here. Click [OK]. Continue to click [OK] until you have closed all windows.
Configuring the Language Settings in MozillaComplete the following procedure to set the preferred language setting to Japanese in Mozilla. Select Edit Preferences. The Preferences window appears. In the Category list on the left, select and open the Navigator dropdown list and select Languages. The Languages view appears on the right. Click [Add]. The Add Languages window appears. Select Japanese from the list. Click [OK] to add it to the language preferences list. Select Japanese in the language preferences list and click [Move Up] until it is at the top of the list, or select and remove any other languages listed here. Click [OK] to save preferences and close the window.
Configuring the Language or Locale Settings in WindowsTo have HP SIM installed and running in Japanese mode, you must set the Locale for the current user to Japanese. Refer to "Configuring Windows XP Language Settings" or "Configuring Windows 2000 Locale Settings" for more information. After you have completed these steps, install HP SIM and it will run in Japanese language mode. Refer to the HP Systems Insight Manager Technical Reference Guide at http://h18013.www1.hp.com/products/servers/management/hpsim/infolibrary.html for more information on installing HP SIM. Configuring Windows XP Language SettingsClick Start Control Panel Regional and Language Options Advanced. Under Language to use for non-unicode programs, select Japanese. Click [Apply] to apply changes. Reboot the system.
After rebooting the system, open a command prompt window and execute the chcp 932 (Japanese) and chcp 437 (English) to toggle between the two languages. The HP SIM CLI commands use the Code page to determine what locale and encoding to output, as do the Command Prompt commands, such as dir. Configuring Windows 2000 Locale SettingsClick Start Settings Control Panel Regional Options General. Click [Set default]. The Select System Locale window appears. From the dropdown list, select Japanese. Click [OK]. Click [Apply].
Click [Apply] to apply changes. Reboot the system.
After rebooting the system, open a command prompt window and execute the chcp 932 (Japanese) and chcp 437 (English) to toggle between the two languages. The HP SIM CLI commands use the Code page to determine what locale and encoding to output, as do the Command Prompt commands, such as dir.
Configuring HP-UX and Linux Language SettingsEnsure that support for the desired languages and character map encodings are installed on the managed systems (for SSA tools) and execution system (for MSA tools, usually the CMS). To verify this, execute:
locale -a
to see if the language and character map encodings you need are listed. Furthermore, if you want to run command tools of the x-window command type, you must make sure that the X Display you select to display the X-Window application has been configured to use the font lists required for that application and for the requested language. For Motif X Window applications (X clients), it might be enough to just have the CDE Desktop configured for the language you want to display, it should have all the X11 resource file properties for X11 Motif or Gnome widget set font lists configured with fonts that support the language and encoding you want to use (for example, Japanese and SJIS) or you must configure the X resource file of your X clients to set the specific font lists you want to use for each application. This usually means running xlsfonts to find out what fonts are installed, knowing what languages the X application
supports, seeing how the application sets fonts in its app-defaults file, and then edit the X Resource file properties on the X clients to configure the application font list properties.
Configuring HP SIMHP SIM has a configuration file that can be modified to override locale settings that control: CMS Locale. The locale of the CMS, which affects the language used in the CMS logs and in e-mails sent by Automatic Event Handling tasks. Target Locale. The locale, character map encoding, code page, and LANG variables used when executing a command on a remote system through SSH.
This configuration file is globalsettings.props and is located: On Windows. It is located at C:\Program Files\HP\Systems Insight Manager\config\globalsettings.props. On HP-UX and Linux. It is located at /etc/opt/mx/config/globalsettings.props.
CMS LocaleBy default, the CMS Locale is determined by the environment. On an HP-UX CMS, it looks for "LANG=" in "/etc/rc.config.d/LANG" and uses that setting. On a Linux CMS, it looks for "LANG=" in "/etc/sysconfig/i18n" and "/etc/sysconfig/language" and uses that setting. On a Windows CMS, it uses the default locale setting of the Java Virtual Machine, which is based on the locale setting of the user account used to install HP SIM. If the locale used by the CMS is not the desired locale, you can manually edit globalsettings.props and add a line, such as CMSLocale=en_US, or whatever locale you want to override the CMS locale. Target LocaleFor HP SIM, the character map encoding for a locale might be different for each target operating system and each language.
To allow the HP SIM to select the encoding to use for each target system (for SSA 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.
There are also properties that 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 upper-case 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)
|