Regarding Solaris Zones

Hello All,

I have a list of Local Zones in my list. I want to find out their Global Zone names exactly....I know the command "arp ..."But I dont know how to filter it correctly and find it out.

Thanks in advance,
Jacky

what list are you referring to?
zoneadm list -vc ?

The global zone name is always "global".

We know that jlliagre.
I suppose the OP is asking something else which we really don't get to understand.. ? :frowning:

Agreed. I was just pointing the obvious. The OP need to rephrase and clarify.

Hi All, thanks for ur response.

Actually if i enter "zoneadm list -cp" it is giving all local zones.

Think in this way that i have only local zone.

i want the global zone name for that....

If you are logged in to a local zone, I don't believe that you can identify the global zone that it belongs to.

absolutely not. security issue.

errr, actually there is a way and without root privs.
Credit to Aaron Davenport of LCS Technologies "lcs-technologies-inc dot com"

From any sparse zone:

find /var -type f -name 'pkginfo' 2>/dev/null |xargs grep "From: " 2>/dev/null |grep -v "From: fern"|awk -F: '{print $6}' 2>/dev/null| \
awk '{print$1}'|sort|uniq

It doesn't show anything of interest on the few machines I just checked (all running Solaris Express though).