Here is a quick one liner script you can copy/paste in to your HMC SSH terminal that will generate a HTML report showing all of the managed systems and LPAR's attached to the HMC and their current state.
You could easily change/extend the script to show other information like LPAR CPU settings, memory settings, etc. in the report as well.
This kind of script can be very handy to generate quick reports to send to people who might not have direct access to the HMC. You can also run the one liner on multiple HMC's, and combine the output in to a single HTML file to see information from all your HMC's in a single HTML report.
Here is the one liner script to run on the HMC to generate the report:
echo "<table border=2 cellpadding=4><tr><th>HMC</th><th>Managed System</th><th>LPAR</th><th>State</th></tr>"; hmc=`lshmc -n -F hostname`; for system in `lssyscfg -r sys -F name`; do echo "<tr><td colspan=4><b><center>$system</center</b></td></tr>"; for lpar in `lssyscfg -r lpar -m $system -F name`; do echo "<tr><td>$hmc</td><td>$system</td><td>$lpar</td><td>`lssyscfg -r lpar -m $system -F state --filter "lpar_names=$lpar"`</td></tr>"; done; done; echo "</table>"
Here is sample output of what the generated HTML report looks like: