#!/bin/sh H=`uname -n | cut -d. -f1` for G in `vxprint | awk '$2=="group:" {print $3}'` ; do vxprint -g $G -m >vxmake:host=$H,dg=$G for V in `vxprint -g $G -vF%name` ; do vxprint -g $G -vm $V >vxmake:host=$H,dg=$G,v=$V vxprint -g $G -vmh $V >vxmake:host=$H,dg=$G,v=$V,recursive for P in `vxprint -g $G -pF%name -e 'assoc=="'$V'"'` ; do vxprint -g $G -pm $P >vxmake:host=$H,dg=$G,v=$V,p=$P vxprint -g $G -pmh $P >vxmake:host=$H,dg=$G,v=$V,p=$P,recursive for S in `vxprint -g $G -sF%name -e 'assoc=="'$P'"'` ; do vxprint -g $G -sm $S >vxmake:host=$H,dg=$G,v=$V,p=$P,s=$S done done done done CT=c7t # vxplex -g $G -o rm dis `vxprint -g $G -p -e 'pl_name !~ /E00-/' -F%name` # vxdg -g $G rmdisk `vxprint -g $G -d -F'%name %device' | awk '$2!~/^'$CT'/ {print $1}'`