unix sysadmin archives
Donation will make us pay more time on the project:
          

Wednesday 8 June 2011

How to know Parents Information from Non Global Zone

Scenario: You are in the non-global; you need to know the global zone so you can safely reboot the non-global zone where you are currently logged in. You do not have any documentation. All you have is the log-in information for the non-global zone.

There is no direct way to do this. One of the features of a Non-Global zone is that it is not aware of the existence of any other zones. Though it resides on the same hardware it knows nothing about the other zones. It has configuration information specific to that non-global zone only, such as the non-global zone host name and the file system table.

So there is no way to get the host name of the global zone from the non-global zone.

One way to solve this is by using the address resolution display command (arp).
The arp command can display the Internet-to-MAC address translation used by the address resolution protocol.

The arp -a command will display all of the current ARP entries. Now, one of those entries with SPLA flag is our global zone.

reciosys01# arp -an | grep -i SPLA
e1000g2 192.178.210.16       255.255.255.255 SPLA     00:10:4d:95:2d:11
e1000g1 192.178.210.13       255.255.255.255 SPLA     00:10:4d:95:2d:10
e1000g1 192.178.210.12       255.255.255.255 SPLA     00:10:4d:95:2d:10
e1000g1 192.178.210.11       255.255.255.255 SPLA     00:10:4d:95:2d:10
e1000g0 192.178.210.10       255.255.255.255 SPLA     00:10:4d:95:2d:10
e1000g1 192.178.210.19       255.255.255.255 SPLA     00:10:4d:95:2d:10

Let's check our current IP address so we could eliminate one non-global zone entries.

reciosys01# ifconfig -a
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g1:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.178.210.13 netmask ffffff80 broadcast 192.178.210.127
reciosys01#


And from here you can proceed with the trial and error. Of course, you would have to dig in for login information in your configuration management database or any documentation so you can login to each hostnames and find out if that is the Global Zone.

No comments:

Post a Comment