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:

echo Server Name,Disk,algorithm,queue_depth,reserve_policy,Volume Group,Volume Group Status

for hdisk_attribute_list in `cat server`
for hdsk in `ssh $hdisk_attribute_list lspv |awk '{print $1}'`
algo=`ssh $hdisk_attribute_list lsattr -El $hdsk |grep algorithm |awk '{print $2}'`
quede=`ssh $hdisk_attribute_list lsattr -El $hdsk |grep queue_depth |awk '{print $2}'`
respl=`ssh $hdisk_attribute_list lsattr -El $hdsk |grep reserve_policy |awk '{print $2}'`
vg=`ssh $hdisk_attribute_list lspv |grep -w $hdsk |awk '{print $3}'`
vg_state=`ssh $hdisk_attribute_list lspv |grep -w $hdsk |awk '{print $4}'`
echo $hdisk_attribute_list,$hdsk,$algo,$quede,$respl,$vg,$vg_state