Russ Petruzzelli wrote:
> In a script I'd like to run prtdiag if I am in a global zone.
> Is there a zoneadm command to tell me what kind of zone I'm in? It's
> not jumping out at me in the zoneadm help.
> if [[ <globalzone> == true ]]; then
> OR.... is there a way to get this to run in a zone?...
> /usr/platform/SUNW,Ultra-80/sbin/prtdiag -v
You could try this:
if [ `/usr/bin/zonename` = "global" ]; then
zones-discuss mailing list