Wednesday 26 February 2014

script to get the VG size of all vgs in a server




#!/bin/ksh

for vgname in $(lsvg -o)
do

        echo "$vgname \c"
        lsvg $vgname|grep 'TOTAL PPs'| awk '{print $7}'|cut -c2-
done

No comments:

Post a Comment