Script to list all LPARs on all Managed Systems Connected to HMC

if you have Many Managed Systems connected to HMC and you need to list ALL LPARs that you have on a table view like the following output:

Server Name : Server-****-***-***
LPAR Name          LPAR Number   IP Address
TEST1                             5             
TEST2                            4             
TEST2                             3            
TEST4                            2             
LPAR                              1             
VIO                                  6            

Continue reading