2

I understand in Unix Oracle-Solaris OS the zoneadm list command will easily show all the available zones. But if I am logged into a non global zone there is no easy way to get information about the global zone.

I see the arp command can be of some help because it will return the NIC mac address. Then with the NIC mac address I can arp again to get all the machine name associated with that (NIC) mac address.

This process sounds kind of intricate to me.
Is there any better way to get that info?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
ztank1013
  • 2,161
  • 2
  • 13
  • 14

1 Answers1

3

There is no supported way and this is by design. Non global zones are isolated. The arp trick isn't always reliable and won't work anyway with exclusive IP zones. Should you want to have this information available, you can implement your own method, for example writing a file like /etc/globalzone as of course the global zone can access every zone file system.

This would be misleading though if you don't update that file after detaching the zone from one global zone and attaching it to another one.

jlliagre
  • 60,319
  • 10
  • 115
  • 157