Lines Matching refs:zonename

138 	if [ $zonename != global ] ; then
139 zconsole=$(pgrep -f "zlogin -C $zonename")
147 hexlabel=$(grep "^$zonename:" $TNZONECFG|cut -d : -f2);
150 if [ $zonename = global ] ; then
156 template=${zonename}_unlab
161 net=$(zonecfg -z $zonename info net)
191 if [ $z = $zonename ] ; then
204 macstate=$(zonecfg -z $zonename info|grep win_mac_write)
213 bootmode=$(zonecfg -z $zonename info autoboot)
222 if [[ ! -n $zonename ]] ; then
223 zonename=$(zenity --entry \
229 if [[ ! -n $zonename ]] ; then
230 zonename=global
234 zonecfg -z $zonename "create -t SUNWtsoldef;\
235 set zonepath=/zone/$zonename"
241 zfs list -H $ZDSET/$zonename 1>/dev/null 2>&1
243 for zbe in $(zfs list -rHo name $ZDSET/$zonename|grep ROOT/zbe) ; do
251 template=${zonename}_cipso
254 template=${zonename}_unlab
268 tnzline="$zonename:${hexlabel}:0::"
289 --text="$msg_getlabel $zonename zone:" \
313 --text="$msg_getmin $zonename zone:" \
324 --text="$msg_getmax $zonename zone:" \
416 zonepath=$(zoneadm -z $zonename list -p|cut -d : -f4)
462 net=$(zonecfg -z $zonename info net)
463 ipType=$(zonecfg -z $zonename info ip-type|cut -d" " -f2)
468 --text="${zonename}0: Enter Hostname or dhcp: ")
492 template=${zonename}_cipso
527 msg_clone=$(gettext "Clone the $zonename zone using a
539 zoneadm -z $zonename clone $image
542 sharePasswd $zonename
544 unsharePasswd $zonename
547 ipType=$(zonecfg -z $zonename info ip-type|cut -d" " -f2)
549 zoneadm -z $zonename ready
550 zonepath=$(zoneadm -z $zonename list -p|cut -d : -f4)
553 zoneadm -z $zonename halt
561 gettext "installing zone $zonename ...\n"
562 zoneadm -z $zonename install
568 --title="$title: Installing $zonename zone" \
569 --command "zoneadm -z $zonename install" \
574 zonestate=$(zoneadm -z $zonename list -p | cut -d : -f 3)
576 gettext "error installing zone $zonename.\n"
581 sharePasswd $zonename
583 unsharePasswd $zonename
586 zoneadm -z $zonename ready
587 zonestate=$(zoneadm -z $zonename list -p | cut -d : -f 3)
589 gettext "error making zone $zonename ready.\n"
594 zoneadm -z $zonename halt
603 tnzone=$(grep "^$zonename:" $TNZONECFG 2>/dev/null)
605 sed -e "/^$zonename:/d" $TNZONECFG > \
610 for tnzone in $(grep ":${zonename}_unlab" $TNRHDB 2>/dev/null) ; do
612 sed -e "/:${zonename}_unlab/d" $TNRHDB > \
617 for tnzone in $(grep "^${zonename}_unlab:" $TNRHTP 2>/dev/null) ; do
618 tnctl -dt ${zonename}_unlab
619 sed -e "/^${zonename}_unlab:/d" $TNRHTP > \
624 for tnzone in $(grep ":${zonename}_cipso" $TNRHDB 2>/dev/null) ; do
626 sed -e "/:${zonename}_cipso/d" $TNRHDB > \
631 for tnzone in $(grep "^${zonename}_cipso:" $TNRHTP 2>/dev/null) ; do
632 tnctl -dt ${zonename}_cipso
633 sed -e "/^${zonename}_cipso:/d" $TNRHTP > \
638 zonecfg -z $zonename delete -F
641 for snap in $(zfs list -Ho name -t snapshot|grep "\@${zonename}_snap") ; do
719 zonecfg -z $zonename "add net; \
723 template=${zonename}_cipso
851 if [ $zonename != global ] ; then
852 vnicname=${zonename}0
868 if [ $zonename = global ] ; then
871 zonecfg -z $zonename "add net; \
902 --text="Zone:$zonename. Enter IP address of remote host or network: " \
963 tnzone=$(grep "^$zonename:" $TNZONECFG 2>/dev/null)
971 … --text="Zone: $zonename\nClick once to select, twice to edit.\nShift-click to select both rows." \
992 sed -e "/^$zonename:*/d" $TNZONECFG > $TXTMP/tnzonecfg.$$ 2>/dev/null
1002 --text="Multilevel ports for the $zonename zone\nwill be interpreted on next reboot."
1003 if [ $zonename != global ] ; then
1145 --text="$msg_getnet $zonename zone:" \
1172 zonecfg -z $zonename set ip-type=exclusive
1436 zonename=$(echo "$p"|cut -d : -f2)
1438 gettext "destroying zone $zonename ...\n"
1440 zoneadm -z $zonename halt 1>/dev/null 2>&1
1441 zoneadm -z $zonename uninstall -F 1>/dev/null 2>&1
1444 zonename=global
1490 zonename=$PUBZONE
1492 gettext "creating default $zonename zone ...\n"
1506 gettext "booting zone $zonename ...\n"
1507 zoneadm -z $zonename boot
1509 zoneadm -z $zonename boot &
1512 --title="Zone Console: $zonename $msg_continue" \
1513 --command "zlogin -C $zonename"
1520 zonename=snapshot
1523 zonecfg -z $zonename set autoboot=false
1528 zonename=$INTZONE
1530 gettext "creating default $zonename zone ...\n"
1546 gettext "booting zone $zonename ...\n"
1549 --title="Zone Console: $zonename" \
1550 --command "zlogin -C $zonename" &
1552 zoneadm -z $zonename boot &
1566 zonename=global
1573 zonename=$(echo "$p"|cut -d : -f2)
1575 hexlabel=$(grep "^$zonename:" $TNZONECFG|cut -d : -f2)
1581 zonelist[zone_cnt]="\n$zonename\n$state\n$curlabel"
1584 zonename=$(print "${zonelist[*]}"|zenity --list \
1595 if [[ -n $zonename ]] ; then
1629 if [ $zonename = global ] ; then
1642 zonestate=$(zoneadm -z $zonename list -p | cut -d : -f 3)
1648 if [ $zonename != global ] ; then
1712 --column "Zone: $zonename Status: $zonestate" )
1716 zonename=
1722 --title="Zone Console: $zonename" \
1723 --command "zlogin -C $zonename" & ;;
1729 zoneadm -z $zonename ready ;;
1732 zoneadm -z $zonename boot ;;
1735 zoneadm -z $zonename halt ;;
1738 zoneadm -z $zonename reboot ;;
1747 zoneadm -z $zonename uninstall -F;;
1754 if [ $zonename = global ] ; then
1778 zonecfg -z $zonename set limitpriv=default,\
1783 zonecfg -z $zonename set limitpriv=default ;;
1786 zonecfg -z $zonename set autoboot=true ;;
1789 zonecfg -z $zonename set autoboot=false ;;
1824 myzone=$(/sbin/zonename)