Hi,

we implemented a cron-job in the global zone to run the following srcipt:
#!/bin/ksh

PATH=$PATH:/usr/sbin:/usr/bin

OSVERSION=`uname -r | awk -F. '{print $2}'`

if [ "${OSVERSION}" -gt 9 ]; then
        zonename | grep global >/dev/null 2>&1
        [ $? -ne 0 ] && exit 0
        for i in `zoneadm list -v| awk '{print $4}' | grep -v ^/$ | grep ^/`
        do
                echo `hostname` > $i/root/etc/globalzone
        done
fi


So you have just to do a "cat /etc/globalzone".
 
 
This message posted from opensolaris.org
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to