Hitachi MK-90RD011-25 Computer Drive User Manual


 
356 Appendix A Maintenance Logs and Tracing Functions
A.4 Logging Commands for Audit
RAID Manager supports the command error logging only, so this logging function will not be
able to use for auditing the script issuing the command. Thus RAID Manager supports the
function logging the result of the command executions by expanding the current logging.
This function has the following control parameter.
$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 below format.
For Example
HORCC_LOGSZ=2048
The masking variable
This variable is used to mask (disable) the logging by specifying a condition of the
command and exit code (except inqraid or EX_xxx error code). This variable is valid for
NORMAL exit.
If the user is executing the pairvolchk repeatedly at every interval (i.e., 30 sec).they
may not be wanted to be logged its command. So they can mask it by specifying
HORCC_LOGSZ=0 as below, however they need to change their scripts if the tracing is
ON.
For example masking pairvolchk on the script
Export HORCC_LOGSZ=0
Pairvolchk -g xxx -s
Unset HORCC_LOGSZ