Command error logging for audit – HP XP P9500 Storage User Manual

Page 45

Advertising
background image

Table 8 Trace command parameters (continued)

Function

Parameter

Specifies the trace type defined internally.

Trace type parameter

Specifies the command or RAID Manager instance for which the trace control parameters
are changed.

Trace change instruction

Command error logging for audit

RAID Manager supports command error logging only, so this logging function cannot be used 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 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.old log 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 exit code (except inqraid or EX_xxx error code). This variable is valid for NORMAL exit.

If executing the pairvolchk command repeatedly at every interval (i.e., 30 sec), logging
of this command may not be wanted. Therefore, you can mask it by specifying
HORCC_LOGSZ=0 as below, however you may 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 RAID Manager 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

RAID Manager log and trace files

45

Advertising
This manual is related to the following products: