First, never assume there's going to be a command. Too much information.
An out file with 1 big long record? And who wants a printout to parse?
Next, IBM has infocenter. Embrace it, don't fear it.
Programming, Application Programming interfaces
General Configuration APIs
Retrieve Partition Information
Short of doing some SSL communication to the HMC is about as good as
you're going to get.