The question "if I am in a non-global zone, how do I know what the hostname of the global zone is" has been asked before on this alias. I will summarize the answers that I remember.
By default - and by design - a method does not exist. The global zone administrator can make it possible for non-global zone users to discover the hostname of the global zone. For example, the global zone administrator could put the global zone's hostname into a file which is accessible by non-global zone users. However, the hostname of the global zone can change, or the non-global zone could be moved to a different computer. In those situations, the global zone must update the contents of that shared file. Troy Lowe wrote: > I don't know the answer, however here is the translation to English. > > In French “If I am in a zone room, how to know at what a total zone it > is attached”!! ? > > Thank you in advance > > */SABRI ALI/* > > > HTH, > Troy > > Sabri Ali wrote: >> Think's for your responses, but my question is if i'm in a local zone, >> who i know which global zone is depends "which global zone is his >> parent" ! >> im sorry but my english is bad !! >> En français "Si je suis dans une zone local, comment savoir à quelle >> zone globale est-elle rattachée" !! ? >> >> Merci d'avance >> >> Think's >> >> >> >> */SABRI ALI/* >> >> P Pensons ENVIRONNEMENT: n'imprimer que si nécessaire ... >> >> >> >> ------------------------------------------------------------------------ >> *De :* Michael Barto [mailto:[EMAIL PROTECTED] >> *Envoyé :* vendredi 27 juillet 2007 17:11 >> *À :* Hans Spaans >> *Cc :* Sabri Ali; zones-discuss@opensolaris.org >> *Objet :* Re: [zones-discuss] zonename >> >> I used "/usr/sbin/zoneadm list -vi". If the global zone is listed with >> the others, you are on the global zone. If you used it on a local zone >> you will only see that zone. >> >> # /usr/sbin/zoneadm list -vi >> ID NAME STATUS PATH >> *0 global running /* >> 2 rlogic running /zones/rlogic >> 3 utility running /zones/utility >> >> Local Only: >> >> # /usr/sbin/zoneadm list -vi >> ID NAME STATUS PATH >> 2 lqweb running / >> -bash-3.00# >> >> >> Some other ideas to look at zone status, I have posted at : >> >> http://www.logiqwest.com/dataCenter/Demos/RunBooks/Zones/zoneStatus.html >> which are free to browse. >> >> >> Hans Spaans wrote: >>>> Hello! >>>> if i'm in a zone localy how do i know the zone global, with which command >>>> ?? >>>> Think's >>>> >>> >>> I'm not aware of a command, but I have seen two possible solutions. The >>> first one is using sneep since then you can see the hardware serial number >>> of the machine you're running on. This requires that your eeprom has been >>> set up correctly and you need to keep record of the zones. >>> >>> The other requires some modification with zonecfg and you need to mount >>> /etc/nodename from the global zones with lofs (read-only) to /etc/chassis >>> in the non-global zone. This one should also work when you detach and >>> attach zones and move them to another box. >>> >>> Some people prefer to go with extra records in DNS, but that solution >>> seems to be doomed since it requires extra maintenance to keep your DNS up >>> to date. That part always gets forgotten when time passes. >>> >>> Hans >>> >>> _______________________________________________ >>> 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] <mailto:[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 >> > > ------------------------------------------------------------------------ > > _______________________________________________ > zones-discuss mailing list > zones-discuss@opensolaris.org -- -------------------------------------------------------------------------- Jeff VICTOR Sun Microsystems jeff.victor @ sun.com OS Ambassador Sr. Technical Specialist Solaris 10 Zones FAQ: http://www.opensolaris.org/os/community/zones/faq -------------------------------------------------------------------------- _______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org