Command error logging for audit, Logging other than raidcom command – HP XP RAID Manager Software User Manual

Page 44

Advertising
background image

environment, it is possible to change the trace control parameters into the global parameters using
this command.

Table 8 (page 44)

lists and describes the parameters of the trace control command.

Table 8 Trace command parameters

Function

Parameter

Specifies the trace level, range = 0 to 15.

Trace level parameter

Specifies the trace file size in KB.

Trace size parameter

Specifies the buffer mode or non-buffer mode for writing data in the trace file.

Trace mode 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

Logging other than raidcom command

This section explains the logging other than the raidcom command described in

(page 46)

.

RAID Manager supports command logging, 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.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 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 (30 seconds), logging
of this command may not be wanted. Therefore, you can mask it by specifying
HORCC_LOGSZ=0 as shown below, and 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

44

RAID Manager software environment

Advertising
This manual is related to the following products: