#!/bin/ksh93 # ALTRAN_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # Copyright (C) Altran ACT S.A.S. 2017,2018,2019,2021. All rights reserved. # # ALTRAN_PROLOG_END_TAG # # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r720 src/43haes/usr/sbin/cluster/events/resource_view.sh 1.7 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2010 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#) 7d4c34b 43haes/usr/sbin/cluster/events/resource_view.sh, 726, 2147A_aha726, Feb 05 2021 09:50 PM ######################################################################### # # COMPONENT: CLMGR # # FUNCTIONS: # # view_log # view_mirror_group # view_report # view_snapshot # ######################################################################### # # Name: view_log # function view_log { . $HALIBROOT/log_entry "$0()" "$CL" max typeset log=$1 [[ -n $2 ]] && typeset -n list=$2 CL=$LINENO KLIB_HACMP_view_log "$log" \ "${_ENV_ARGS[TAIL]}" \ "${_ENV_ARGS[HEAD]}" \ "${_ENV_ARGS[FILTER]}" \ "${_ENV_ARGS[DELIMITER]}" \ "${_ENV_ARGS[CASE]}" log_return_msg "$?" "$0()" "$LINENO" return $? } # End of "view_log()" # # Name: view_mirror_group # function view_mirror_group { . $HALIBROOT/log_entry "$0()" "$CL" max typeset mirror_group=$1 CL=$LINENO KLIB_HACMP_view_mirror_group "$mirror_group" \ "${_ENV_ARGS[NODES]}" \ "${_ENV_ARGS[SITE]}" \ "${_ENV_ARGS[SYSTEM_GROUPS]}" \ "${_ENV_ARGS[REPOSITORY_GROUP]}" log_return_msg "$?" "$0()" "$LINENO" return $? } # End of "view_mirror_group()" # # Name: view_report # function view_report { . $HALIBROOT/log_entry "$0()" "$CL" max typeset report=$1 CL=$LINENO KLIB_HACMP_view_report "$report" \ "${_ENV_ARGS[FILE]}" \ "${_ENV_ARGS[TYPE]}" \ "${_ENV_ARGS[BEGIN_TIME]}" \ "${_ENV_ARGS[END_TIME]}" \ "${_ENV_ARGS[TARGETS]}" \ "${_ENV_ARGS[COMPANY_NAME]}" \ "${_ENV_ARGS[COMPANY_LOGO]}" \ "${_ENV_ARGS[SNAPSHOT]}" log_return_msg "$?" "$0()" "$LINENO" return $? } # End of "view_report()" # # Name: view_snapshot # function view_snapshot { . $HALIBROOT/log_entry "$0()" "$CL" max typeset snapshot=$1 [[ -n $2 ]] && typeset -n list=$2 CL=$LINENO KLIB_HACMP_view_snapshot "$snapshot" \ "${_ENV_ARGS[TAIL]}" \ "${_ENV_ARGS[HEAD]}" \ "${_ENV_ARGS[FILTER]}" \ "${_ENV_ARGS[DELIMITER]}" \ "${_ENV_ARGS[CASE]}" log_return_msg "$?" "$0()" "$LINENO" return $? } # End of "view_snapshot()" ######################################################################### ######################################################################### ## ## MAIN ## ######################################################################### ######################################################################### . $HALIBROOT/log_entry resource_view "$CL" max : version=@(#) 7d4c34b 43haes/usr/sbin/cluster/events/resource_view.sh, 726, 2147A_aha726, Feb 05 2021 09:50 PM : INPUTS == $* #=================================================== # Source the file with common definitions, the run # the action/class-appropriate class processor. #=================================================== CL=$LINENO . $HAEVENTS/resource_common "$@" CL=$LINENO runClassProcessor "$RESOURCE_CLASS" _VAR_SUBSTITUTIONS _ENV_ARGS log_return_msg "$?" resource_view "$LINENO" exit $? #============================================================================== # The following, comment block attempts to enforce coding standards when this # file is edited via emacs or vim. This block _must_ appear at the very end # of the file, or the editor will not find it, and it will be ignored. #============================================================================== # Local Variables: # indent-tabs-mode: nil # tab-width: 4 # End: #============================================================================== # vim: tabstop=4 shiftwidth=4 expandtab #==============================================================================