Hey There,
You coud use the output of format, although if you wanted to automate, you'd have to pipe the right commands to it and then do some processing on the other end, eg, for disk 0:
(echo 0;echo p;echo p)|format
The partition print shows size in MB - You really just need slice 2, since that represents the entire disk.
Also, I believe:
or
<-- For everything and then parse it with sed/awk/what-have-you
may give you this info, but I don't have a SUn machine in front of me to verify.
Best wishes,
Mike