This question has been asked before. This  is the trick we use:

Since the zone command  /usr/sbin/zoneadm list -vi does not display the name of the global zone when logged on to a local zone, we added to the global zone OS filesystem in "/usr/bin" a script/command called "zone-global-name". This script has the global zone name hard coded and echoes its name. e.g.

#!/bin/sh
echo "<global zone name>"

Now every time we build a new local zone this command is copied or shared with the local zone depending on the type of zone created. This installs a command that will always show you the name of the global zone when you are on logged on to the local zone.

Kind of a hack, but it works for us.


Boyd Adamson wrote:
"Sabri Ali" <[EMAIL PROTECTED]> writes:
  
Hello!

if  i'm in a zone localy how do i know the zone global, with which command ??

Think's
    

This should probably be in the FAQ. It last came up about 2 weeks ago:

http://www.opensolaris.org/jive/thread.jspa?threadID=35960

Boyd
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

  

--

Michael Barto
Software Architect

LogiQwest Circle
LogiQwest Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA  92649
http://www.logiqwest.com/

    [EMAIL PROTECTED]
Tel:  714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949

'tis a gift to be simple
This e-mail may contain LogiQwest proprietary information and should be treated as confidential.
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to