#!/bin/ksh93 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r714 src/43haes/lib/ksh93/OEMVeritas/KLIB_OEMVeritas_getDisksForDiskGroup.sh 1.7 # # Licensed Materials - Property of IBM # # Restricted Materials of IBM # # COPYRIGHT International Business Machines Corp. 2005,2011 # 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 # @(#)10 1.7 src/43haes/lib/ksh93/OEMVeritas/KLIB_OEMVeritas_getDisksForDiskGroup.sh, hacmp.utils, 61haes_r714 11/28/11 15:00:51 function KLIB_OEMVeritas_getDisksForDiskGroup { . /usr/es/lib/ksh93/func_include typeset dg=$1 if [[ ! -x /usr/sbin/vxdisk ]]; then return 1 fi LC_ALL=C /usr/sbin/vxdisk list | while read device type disk group status; do if [[ "$group" == "$dg" ]]; then echo $disk fi done }