#!/bin/ksh93 # ALTRAN_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # Copyright (C) Altran ACT S.A.S. 2019,2021. All rights reserved. # # ALTRAN_PROLOG_END_TAG # # @(#) 7d4c34b 43haes/usr/sbin/cluster/events/resource_compare.sh, 726, 2147A_aha726, Feb 05 2021 09:50 PM ######################################################################### # # Resource compare - wrapper functions for clmgr "compare" commands # ######################################################################### # # Name: compare_cluster # function compare_cluster { . $HALIBROOT/log_entry "$0()" "$CL" max typeset hosts=$1 CL=$LINENO KLIB_HACMP_compare_cluster $hosts \ "${_ENV_ARGS[DIRECTORY]}" \ "${_ENV_ARGS[DISABLE_EXPECT]}" log_return_msg "$?" "$0()" "$LINENO" return $? } # End of "compare_cluster()" # # Name: compare_snapshot # function compare_snapshot { . $HALIBROOT/log_entry "$0()" "$CL" max typeset snapshots=$1 CL=$LINENO KLIB_HACMP_compare_snapshot $snapshots \ "${_ENV_ARGS[SNAPSHOTPATH]}" \ "${_ENV_ARGS[SECTION]}" \ "${_ENV_ARGS[PAGER]}" \ "${_ENV_ARGS[SDIFF_OUTPUT_WIDTH]}" \ "${_ENV_ARGS[SDIFF_FLAGS]}" log_return_msg "$?" "$0()" "$LINENO" return $? } # End of "compare_snapshot()" ######################################################################### ######################################################################### ## ## MAIN ## ######################################################################### ######################################################################### . $HALIBROOT/log_entry resource_view "$CL" max : version="@(#) 7d4c34b 43haes/usr/sbin/cluster/events/resource_compare.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_compare "$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 #==============================================================================