Step 1: Choose a server where you can access all your LPAR’s
Step 2: Generate a key from the chosen server and then scp same key to LPAR under /root
Step 3: Now, You can execute the below script from chosen server

Note:- In our case, We have chosen NIM server as our source server where the script to be executed
server – Should contain LPAR or server name
Name of the script: vg_info.sh

echo Server Name,VG Name,Total Size,Used Size,Free Size

for vg_info_list in `cat server`
do
for active_vgs in `ssh $vg_info_list lsvg -o`
do
total=`ssh $vg_info_list lsvg $active_vgs | awk '/TOTAL PPs/{meg=$7; sub(/\(/,"",meg); print meg/1024}' | cut -d . -f 1`
used=`ssh $vg_info_list lsvg $active_vgs | awk '/USED PPs/{meg=$6; sub(/\(/,"",meg); print meg/1024}' | cut -d . -f 1`
free=`ssh $vg_info_list lsvg $active_vgs | awk '/FREE PPs/{meg=$7; sub(/\(/,"",meg); print meg/1024}' | cut -d . -f 1`
echo $vg_info_list,$active_vgs,$total,$used,$free
done
done