This function has the following control parameters.
• $HORCC_LOGSZ variable
This variable is used to specify a maximum size (in units of KB) and
normal logging for the current command. /HORCM/log*/horcc_HOST.log
file is moved to /HORCM/log*/horcc_HOST.oldlog file when reaching in
the specified maximum size. If this variable is not specified or specified as
0, it is same as the current logging for only command error.
This variable is able to define to the environment variable and/or
horcc_HOST.conf as discussed below.
For example setting 2MB size: HORCC_LOGSZ=2048 Export
HORCC_LOGSZ
• /HORCM/log*/horcc_HOST.conf file
This file is used to describe HORCC_LOGSZ variable and the masking
variable for logging. If the HORCC_LOGSZ as the environment variable is
not specified, then HORCC_LOGSZ variable of this file is used. If both
variable is not specified, then it is same as the current logging for only
command error.
• HORCC_LOGSZ variable
This variable must be described as follows: HORCC_LOGSZ=2048
• The masking variable
This variable is used to mask (disable) the logging by specifying a
condition of the command and returned value (except inqraid or EX_xxx
error code). This variable is valid for NORMAL exit.
If executing the pairvolchk command repeatedly at every interval (30
seconds), logging of this command might not be wanted. Therefore, you
can mask it by specifying HORCC_LOGSZ=0 as shown below, and you
might need to change your scripts if tracing is ON.
Example of masking pairvolchk on a script:
Export HORCC_LOGSZ=0 Pairvolchk -g xxx -s Unset HORCC_LOGSZ
The masking feature is to enable the tracing without changing their
scripts. And this feature is available for all CCI commands (except
inqraid or EX_xxx error code).
For example, if you want to mask pairvolchk (returns 22) and raidqry,
specify the following:
pairvolchk=22 raidqry=0
You can track script performance, and then decide to mask by auditing
the command logging file, as needed.
• Relationship between an environment variable and
horcc_HOST.conf
Logging depends on the $HORCC_LOGSZ environment variable and/or the
HORCC_HOST.conf file as shown below.
$HORCC_LOGSZ HORCC_HOST.conf Performing
=value Any (does not matter) Tracing within this APP
=0 NO tracing within this APP
2-44
CCI software environment
Command Control Interface User and Reference Guide