LPAR ID and name

From Wikistix

LPAR IDs appear to begin at 1, and the name is as configured from the HMC. These are most easily found via:

$ uname -L
3 foobar.domain.net

Generally, a system which is running in "Single System Image" mode, or otherwise not partitioned, or is standalone with no HMC, will display:

$ uname -L
1 NULL

These, and other gems can be found by reading the /usr/sbin/prtconf shell script.