Originally posted by: TimGilson
I would use this command:
uname -L
If the system in an LPAR you will get the string NULL returned for the LPAR name. On a system that is an LPAR you will get the LPAR id and hostname returned.
uname -L 1 NULL # Not an LPAR uname -L 17 labhost # This is an LPAR