How to find the global zone from the non-global zone in solaris 10 zones

How to find the global zone from the non-global zone in solaris 10 zones
Who is Participating?
joules17Connect With a Mentor Commented:
you will not be able to find any information about global zone from a non-global zone.
every non-global zone is treated as a separate server to the outside world, though they may be running vitrually in one server.
System admin needs to have a track of which is global zone and what kind or how many non-global zones are running under that server.

Will this work?

# zoneadm list -iv
Hello ,

From a non global zone you can't see the other zone even the global zone that is the security feature of zone , it is like a jail chrooted system

from the global zone you can see all the zone

Brian UtterbackPrinciple Software EngineerCommented:
What do you mean by "find"? If you want the name of the global zone, then it is always "global". You cannot reach any of the files of the global zone from within the local zone. Do you mean how to see if you are in the global zone or not?
There is a way to "SORT OF" find the global zone....
from any zone:

"netstat -p | grep SPLA"

will show you all the zones (including the global) on the local host.  If you have a standard naming convention for your global zones such as starting them all with "GLOB" then you can:
"netstat -p | grep SPLA | grep GLOB" from any zone and find the global.
All Courses

From novice to tech pro — start learning today.