#!/bin/ksh93 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r714 src/43haes/lib/ksh93/OEMVeritas/KLIB_OEMVeritas_getVolumesForDiskGroup.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 # @(#)12 1.7 src/43haes/lib/ksh93/OEMVeritas/KLIB_OEMVeritas_getVolumesForDiskGroup.sh, hacmp.utils, 61haes_r714 11/28/11 14:58:48 function KLIB_OEMVeritas_getVolumesForDiskGroup { . /usr/es/lib/ksh93/func_include typeset dg=$1 if [[ -z $dg ]]; then return 1 fi if [[ ! -x /usr/sbin/vxprint ]]; then return 1 fi LC_ALL=C /usr/sbin/vxprint -h -g $dg | while read type name assoc kstate length ploffs; do if [[ "$type" == "v" ]]; then echo $name fi done return 0 }