Unix Technical Forum

Is there documented way to find out in a non-global zone that you're a non-global zone

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:01 AM
Thomas Glanzmann
 
Posts: n/a
Default Is there documented way to find out in a non-global zone that you're a non-global zone

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:01 AM
Thomas Glanzmann
 
Posts: n/a
Default Re: Is there documented way to find out in a non-global zone that you're a non-global zone

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:01 AM
ivoronin@gmail.com
 
Posts: n/a
Default Re: Is there documented way to find out in a non-global zone that you're a non-global zone

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 06:01 AM
Andrew Gabriel
 
Posts: n/a
Default Re: Is there documented way to find out in a non-global zone that you're a non-global zone

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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com