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,Location Code,Description,Serial No,PVID,VG Name

for lpar_internal_disk_list in `cat server`
for dsk in `ssh $lpar_internal_disk_list lsdev -Cc disk |grep -iE "16 Bit LVD SCSI Disk Drive|SAS Disk Drive" |awk '{print $1}'`
loccode=`ssh $lpar_internal_disk_list lscfg -vpl $dsk |grep $dsk |awk '{print $2}'`
desc=`ssh $lpar_internal_disk_list lscfg -vpl $dsk |grep $dsk |awk '{$1=$2=""; print $0}'`
serial=`ssh $lpar_internal_disk_list lscfg -vpl $dsk |grep "Serial Number" | sed -e "s/^.*\.//"`
pvid=`ssh $lpar_internal_disk_list lspv |grep -w $dsk |awk '{print $2}'`
vg=`ssh $lpar_internal_disk_list lspv |grep -w $dsk |awk '{print $3}'`
echo $lpar_internal_disk_list,$dsk,$loccode,$desc,$serial,$pvid,$vg