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,vscsi,vscsi_err_recov,vscsi_path_to

for vscsi_attribute_list in `cat server`
for vcs in `ssh $vscsi_attribute_list lsdev -C |grep vscsi |awk '{print $1}'`
vscsi_err_recov=`ssh $vscsi_attribute_list lsattr -El $vcs |grep vscsi_err_recov |awk '{print $2}'`
vscsi_path_to=`ssh $vscsi_attribute_list lsattr -El $vcs |grep vscsi_path_to |awk '{print $2}'`
echo $vscsi_attribute_list,$vcs,$vscsi_err_recov,$vscsi_path_to