Added exclude_filesets option in check_hpux_patch_version()
This commit is contained in:
parent
c52798ceef
commit
c36c07eb2d
@ -23,6 +23,10 @@ required_patches=""
|
|||||||
# [default: yes]
|
# [default: yes]
|
||||||
check_filesets=yes
|
check_filesets=yes
|
||||||
|
|
||||||
|
# list of filesets to exclude from the check (comma-separated list)
|
||||||
|
# [default: none]
|
||||||
|
exclude_filesets=""
|
||||||
|
|
||||||
|
|
||||||
#******************************************************************************
|
#******************************************************************************
|
||||||
# End of FILE
|
# End of FILE
|
||||||
|
@ -92,6 +92,7 @@ else
|
|||||||
# convert commas and strip quotes
|
# convert commas and strip quotes
|
||||||
_OVPA_DAEMONS=$(data_comma2space $(data_dequote "${_OVPA_DAEMONS}"))
|
_OVPA_DAEMONS=$(data_comma2space $(data_dequote "${_OVPA_DAEMONS}"))
|
||||||
fi
|
fi
|
||||||
|
log "will check daemons: ${_OVPA_DAEMONS}"
|
||||||
_CFG_HEALTHY=$(_CONFIG_FILE="${_CONFIG_FILE}" data_get_lvalue_from_config 'log_healthy')
|
_CFG_HEALTHY=$(_CONFIG_FILE="${_CONFIG_FILE}" data_get_lvalue_from_config 'log_healthy')
|
||||||
case "${_CFG_HEALTHY}" in
|
case "${_CFG_HEALTHY}" in
|
||||||
yes|YES|Yes)
|
yes|YES|Yes)
|
||||||
@ -128,7 +129,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# do OVPA status checks
|
# do OVPA status checks
|
||||||
log "checking daemons: ${_OVPA_DAEMONS} ..."
|
|
||||||
for _OVPA_DAEMON in ${_OVPA_DAEMONS}
|
for _OVPA_DAEMON in ${_OVPA_DAEMONS}
|
||||||
do
|
do
|
||||||
# anchored grep here!
|
# anchored grep here!
|
||||||
|
@ -90,6 +90,8 @@ then
|
|||||||
# default
|
# default
|
||||||
_CHECK_FILESETS="yes"
|
_CHECK_FILESETS="yes"
|
||||||
fi
|
fi
|
||||||
|
_EXCLUDE_FILESETS=$(_CONFIG_FILE="${_CONFIG_FILE}" data_get_lvalue_from_config 'exclude_filesets')
|
||||||
|
[[ -n "${_EXCLUDE_FILESETS}" ]] && log "excluding filesets: $(print ${_EXCLUDE_FILESETS})"
|
||||||
_CFG_HEALTHY=$(_CONFIG_FILE="${_CONFIG_FILE}" data_get_lvalue_from_config 'log_healthy')
|
_CFG_HEALTHY=$(_CONFIG_FILE="${_CONFIG_FILE}" data_get_lvalue_from_config 'log_healthy')
|
||||||
case "${_CFG_HEALTHY}" in
|
case "${_CFG_HEALTHY}" in
|
||||||
yes|YES|Yes)
|
yes|YES|Yes)
|
||||||
@ -228,8 +230,12 @@ then
|
|||||||
while read _FILESET_LINE
|
while read _FILESET_LINE
|
||||||
do
|
do
|
||||||
_FILESET=$(print "${_FILESET_LINE}" | awk '{print $1}' 2>/dev/null)
|
_FILESET=$(print "${_FILESET_LINE}" | awk '{print $1}' 2>/dev/null)
|
||||||
|
# check exclude(s)
|
||||||
|
if [[ "${_EXCLUDE_FILESETS#*${_FILESET}}" = "${_EXCLUDE_FILESETS}" ]]
|
||||||
|
then
|
||||||
_MSG="fileset ${_FILESET} is not in a configured state"
|
_MSG="fileset ${_FILESET} is not in a configured state"
|
||||||
log_hc "$0" 1 "${_MSG}"
|
log_hc "$0" 1 "${_MSG}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
_MSG="unable to run command: {${_SWLIST_BIN}}"
|
_MSG="unable to run command: {${_SWLIST_BIN}}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user