arp

Solaris Zones & finding machine name

If you use Solaris Zones sometimes it is nice to be able to know the name of the global/parent machine the zone is running on.

Using 'arp -a' you can get information about network interfaces shared by the hosts on 1 machine.

I'm not going to give a whole full blown script to do this as our naming standards are probably different than yours but you can see the steps you may need to follow below to get the info:

Here is how to see all the network interfaces for you current host:

HOSTNAME=`hostname`
/u01/app/oracle >arp -a | grep $HOSTNAME

Subscribe to arp