nmscatgets — Get localized catalog strings for NNMi
The nmscatgets
command is used to query a message catalog
and retrieve a localized (non-English) string from that catalog file.
This string can then be displayed, for example, from a perl script.
The caller must know the message catalog containing the desired localized strings,
as well as the set-number and message-number within that file.
If the specified message is not found, the default (English) value is returned.
The nmscatgets
command is mostly used internally by other NNMi or
HP-provided scripts. It doesn't provide much value for other uses.
The nmscatgets
command recognizes the following options.
-f FILE
The file name containing the localized strings to query.
-s SETNUM
The set number within the catalog file, generally "1".
-m MSGNUM
The message number within the catalog file.
-d DEFAULT
The default (English) string to be printed if one or more of the
FILE
, SETNUM
, or
MSGNUM
values are not available.
The nmscatgets
command returns the localized string when the
FILE
, SETNUM
, and MSGNUM
values are all valid. Otherwise the nmscatgets
command returns the DEFAULT
(English) string provided to the command.