Step 1: Choose a server where you can access all your VIO’s
Step 2: Generate a key from the chosen server and then scp same key to VIO under /home/padmin
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
vio_server – Should contain VIO server name
Name of the script: vio_internal_disk.sh

echo Server Name,Disk,Location Code,Description,Serial No,PVID,VG Name

for vio_internal_disk_list in `cat vio_server`
do
for dsk in `ssh padmin@$vio_internal_disk_list ioscli lsdev |grep -iE "16 Bit LVD SCSI Disk Drive|SAS Disk Drive"|grep -v "Physical SAS Disk Drive" |awk '{print $1}'`
do
loccode=`ssh padmin@$vio_internal_disk_list ioscli lsdev -dev $dsk -vpd |grep $dsk |awk '{print $2}'`
desc=`ssh padmin@$vio_internal_disk_list ioscli lsdev -dev $dsk -vpd |grep $dsk |awk '{$1=$2=""; print $0}'`
serial=`ssh padmin@$vio_internal_disk_list ioscli lsdev -dev $dsk -vpd |grep "Serial Number" | sed -e "s/^.*\.//"`
pvid=`ssh padmin@$vio_internal_disk_list ioscli lspv |grep -w $dsk |awk '{print $2}'`
vg=`ssh padmin@$vio_internal_disk_list ioscli lspv |grep -w $dsk |awk '{print $3}'`
echo $vio_internal_disk_list,$dsk,$loccode,$desc,$serial,$pvid,$vg
done
done