How can I tell what kind of OS install I have from the cli.

Hello,from the CLI ( ksh : mainly ) I need to be capture what type of OE installation was originally done.To put it another way, how do I tell if the OS was installed as a "Core", "End User", "Entire", or "FUll OEM" distribution.
[251 byte] By [UmbraD] at [2007-11-25 23:23:49]
# 1
cat /var/sadm/system/admin/CLUSTERSUNWCreq -> coreSUNWCusr -> End UserSUNWCprog -> DeveloperSUNWCall -> Entire DistributionSUNWCXall -> Entire Distribution + OEM
jds2n at 2007-7-5 18:10:58 > top of Java-index,General,Talk to the Sysop...