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                       10.10.10.1
TEST2                            4                       10.10.10.2
TEST2                             3                      10.10.10.3
TEST4                            2                       10.10.10.4
LPAR                              1                       10.10.10.5
VIO                                  6                      10.10.10.6

Continue reading