[zones-discuss] how to find global-zone from zone

2007-08-29 Thread Remco Fugers
Hi, I was wondering if it's possible to find out to which global zone a zone is related. (And not from Globalzone point of view!) It might happen (as a sysadmin) that you login to a zone but you need to perform maintenance in the global zone (i.e. Veritas VM -stuff). Thanks in advance Remco

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Boyd Adamson
(Replying to the correct thread this time) Remco Fugers [EMAIL PROTECTED] writes: Hi, I was wondering if it's possible to find out to which global zone a zone is related.  (And not from Globalzone point of view!) It might happen (as a sysadmin) that you login to a zone but you need to

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread John Chase
Remco, There is no command to display the Global zone of a non-global zone but there are a few tricks that I have heard of. One is to create a file in the zone path of each zone and then read it from the non-global On the Global touch /zone_path/root/etc/global.hostname On the non

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Steffen Weiberle
In a related, but similar situation. How does one know that they are actually in a non-global zone vs a global zone? (Using a committed interface). zonename(1). And zonecfg(1M) states that the name 'global' is reserved. Steffen Brandorr wrote: On 8/29/07, John Chase [EMAIL PROTECTED]

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Björn Sobek
Hi, we implemented a cron-job in the global zone to run the following srcipt: #!/bin/ksh PATH=$PATH:/usr/sbin:/usr/bin OSVERSION=`uname -r | awk -F. '{print $2}'` if [ ${OSVERSION} -gt 9 ]; then zonename | grep global /dev/null 21 [ $? -ne 0 ] exit 0 for i in `zoneadm

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Yanakiev, Vladimir
to find global-zone from zone On 8/29/07, John Chase [EMAIL PROTECTED] wrote: Remco, There is no command to display the Global zone of a non-global zone but there are a few tricks that I have heard of. One is to create a file in the zone path of each zone and then read it from the non

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Brandorr
On 8/29/07, John Chase [EMAIL PROTECTED] wrote: Remco, There is no command to display the Global zone of a non-global zone but there are a few tricks that I have heard of. One is to create a file in the zone path of each zone and then read it from the non-global On the Global

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Paul Kraus
On 8/29/07, Brandorr [EMAIL PROTECTED] wrote: In a related, but similar situation. How does one know that they are actually in a non-global zone vs a global zone? (Using a committed interface). `ps -ef` and look for pid 0,1,2,3; these should only be visible in a global zone. -- Paul Kraus

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Christine Tran
Paul Kraus wrote: On 8/29/07, Brandorr [EMAIL PROTECTED] wrote: In a related, but similar situation. How does one know that they are actually in a non-global zone vs a global zone? (Using a committed interface). `ps -ef` and look for pid 0,1,2,3; these should only be visible in a global

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Michael Barto
Since this seems to be a common question that has shown up on this list from time to time, I have added our method to our Solaris Zone RunBook which is free and posted it at: http://www.logiqwest.com/dataCenter/Demos/RunBooks/Zones/listingGlobal.html Hope this helps till Sun finally puts a