This is a discussion on Is there documented way to find out in a non-global zone that you're a non-global zone within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hello, I am looking for a documented way from Sun to tell in a non-global zone that I am ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Hallo, > I am looking for a documented way from Sun to tell in a non-global > zone that I am running in a non-global zone. zoneadm list -cv seems to do what I want. In case of a global zone it says id 0 and "global" otherwise it says that it is id 1 and its configured name. Thomas |
| |||
| On Nov 6, 9:26 am, Thomas Glanzmann <sithg...@stud.uni-erlangen.de> wrote: > Hello, > I am looking for a documented way from Sun to tell in a non-global zone > that I am running in a non-global zone. > > Thomas You can use '/usr/bin/zonename' command. |
| ||||
| In article <slrnfj0283.tot.sithglan@faui00u.informatik.uni-erlangen.de>, Thomas Glanzmann <sithglan@stud.uni-erlangen.de> writes: > Hello, > I am looking for a documented way from Sun to tell in a non-global zone > that I am running in a non-global zone. if [ `/sbin/zonename` != "global" ]; then ... fi -- Andrew Gabriel [email address is not usable -- followup in the newsgroup] |