Solaris Cmd to determine type of zone?

I lost my notes on the subject, but I remember running across a single Solaris command that tells you the following

  • Global zone vs local zone
  • Sparse local zone vs Whole Root local zone

Can anyone advise? Thanks-In-Advance!!

Ad. 1:

zonename

Ad. 2:

zonecfg -z zonename export

Thanks, but I was looking for 1 command that provided all the detail. I finally found this cmd after some additional research:

    pkgcond [-nv] <condition> [ <option\(s\)> ]

command options:
-n - negate results of condition test
-v - verbose output of condition testing

<condition> may be any one of:
can_add_driver [path]
can_remove_driver [path]
can_update_driver [path]
is_alternative_root [path]
is_boot_environment [path]
is_diskless_client [path]
is_global_zone [path]
is_mounted_miniroot [path]
is_netinstall_image [path]
is_nonglobal_zone [path]
is_path_writable path
is_running_system [path]
is_sparse_root_nonglobal_zone [path]
is_what [path]
is_whole_root_nonglobal_zone [path]

It returns boolean exit codes and also has a verbose mode for additional details