Hi!

----

As requested (by Sarah) here comes the "add_install_client" thing which
failed horribly during the OpenSolaris summit machine pool setup:
-- snip --
# $PWD/add_install_client -i 192.168.1.99 -e 0:14:4f:e:88:a8 xxx99 sun4u
adb: syntax error on line 1 of (stdin) near ":"
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
adb: syntax error on line 1 of (stdin) near ":"
Warning: no interface configured for address 192.168.1.99
Adding Ethernet number for xxx99 to /etc/ethers
updating /etc/bootparams
-- snip --

Another run (with slightly different IPv4 address) using $ /sbin/sh -x
... # results in the following log:
-- snip --
PATH=/usr/bin:/usr/sbin:/sbin:/opt/onbld/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sfw/bin:/usr/local/bin:/usr/sbin:/usr/bin
TR=env LC_ALL=C LANG=C /bin/tr
SIGHUP=1
SIGINT=2
SIGQUIT=3
SIGTERM=15
CLIENT_NAME=
CLIENT_TYPE=RARP
DHCP_CLIENT_ID=
DHCP_CLASS_NAME=
PGRP=
PLATFORM_NAME=
BOOT_METHOD=
TmpANS=/tmp/tmpans.9192
LOCKFILE=/tmp/.install_client.lck
LOCKFILE_CREATED=
BARGLIST=
myname=/jumpstart/b72_sparc/Solaris_11/Tools/add_install_client
+ id 
ID=uid=0(root) gid=0(root)
+ expr uid=0(root) gid=0(root) : uid=\([^(]*\).* 
USER=0
+ unset NAME1 NAME2 IP_ADDR ETHER_ADDR PRODUCT_SERVER PRODUCT_PATH
IMAGE_PATH tools_path 
+ unset SYSID_CONFIG_SERVER SYSID_CONFIG_PATH CONFIG_SERVER CONFIG_PATH
NS_POLICY BOOT_FILE 
+ trap abort 1 2 3 15 
+ [ 0 != 0 ] 
+ [ ! -f /tmp/.install_client.lck ] 
LOCKFILE_CREATED=yes
+ echo 9192 
+ umask 022 
+ [ -f /etc/vfstab ] 
Opts_df=-k
Opts_du=-sk
Opts_ps=-ef
Opts_ps_pid=-e
Cmd_rarpd=/usr/sbin/in.rarpd
Cmd_bpd=/usr/sbin/rpc.bootparamd
Bootdir=/tftpboot
PATH=/sbin:/usr/sbin:/usr/bin:/etc:/etc/nfs
+ uname -n 
SERVER=sxb72x86
+ name_to_ip_addr sxb72x86 
HOST_ADDR=
+ get_hostaddr sxb72x86 
HOST_ADDR=
+ lookup hosts sxb72x86 byname  
D=hosts
K=sxb72x86
T=byname
S=
ANS=
status=0
+ [ ! -z  ] 
+ get_sources hosts 
+ egrep ^hosts: /etc/nsswitch.conf 
+ sed -e /^$/d -e /^#/d -e s/.*:// -e s/\[.*return\].*$// -e
s/\[.*\].*$// 
+ awk { for(i=1; i <= NF; i++) { print $i } } 
srcs=files
dns
mdns
SRC=files
NS=local
NS_NAME=file
dbfile=/etc/hosts
key=^[  ]*[^#   ].*\<sxb72x86\>
+ [ byname = byaddr ] 
+ [ -f /etc/hosts ] 
+ match_pattern sxb72x86 /etc/hosts 
ANS=
status=0
Found=no
+ [ /etc/hosts = /etc/bootparams ] 
key=^[  ]*[^#   ].*\<sxb72x86\>
+ grep ^[       ]*[^#   ].*\<sxb72x86\> /etc/hosts 
+ read Line 
+ echo 141.50.70.74 sxb72x86 sxb72x86.nrubsig.org loghost 
+ [ no != yes ] 
+ [ sxb72x86 = 141.50.70.74 ] 
+ [ no != yes ] 
+ [ sxb72x86 = sxb72x86 ] 
+ echo 141.50.70.74 sxb72x86 sxb72x86.nrubsig.org loghost 
Found=yes
+ [ yes != yes ] 
+ [ yes != yes ] 
+ read Line 
+ [ -f /tmp/tmpans.9192 ] 
+ cat /tmp/tmpans.9192 
ANS=141.50.70.74 sxb72x86 sxb72x86.nrubsig.org loghost
+ rm -f /tmp/tmpans.9192 
+ return 0 
status=0
+ [ 0 -eq 0 ] 
+ break 
+ echo 141.50.70.74 sxb72x86 sxb72x86.nrubsig.org loghost 
+ sed -e s/#.*$// 
ANS=141.50.70.74 sxb72x86 sxb72x86.nrubsig.org loghost
+ echo status=0; SRC=files; ANS="141.50.70.74 sxb72x86
sxb72x86.nrubsig.org loghost"; NS="local"; NS_NAME="file" 
+ eval status=0; SRC=files; ANS="141.50.70.74 sxb72x86
sxb72x86.nrubsig.org loghost"; NS="local"; NS_NAME="file" 
status=0
SRC=files
ANS=141.50.70.74 sxb72x86 sxb72x86.nrubsig.org loghost
NS=local
NS_NAME=file
+ [ 0 -eq 0 ] 
+ [ local = NIS+ ] 
+ [ local = NIS ] 
+ [ local = DNS ] 
+ echo 141.50.70.74 sxb72x86 sxb72x86.nrubsig.org loghost 
+ read addr name junk 
+ echo 141.50.70.74 
HOST_ADDR=141.50.70.74
+ return 0 
status=0
+ [ -z 141.50.70.74 ] 
+ echo 141.50.70.74 
+ return 0 
SERVER_IP=141.50.70.74
EXPORTS=/etc/dfs/dfstab
EXP_FLD=$NF
+ export PATH 
+ unset NIS_PATH 
dash_t_s=
+ [ -ix != x ] 
IP_ADDR=192.168.1.101
+ [ ! 192.168.1.101 ] 
+ expr 192.168.1.101 :
\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\) 
IP_ADDR=192.168.1.101
+ [ ! 192.168.1.101 ] 
+ shift 2 
+ [ -ex != x ] 
ETHER_ADDR=0:14:4f:e:88:a8
+ [ X0:14:4f:e:88:a8 = X ] 
+ expr 0:14:4f:e:88:a8 :
\([0-9a-fA-F][0-9a-fA-F]*\:[0-9a-fA-F][0-9a-fA-F]*\:[0-9a-fA-F][0-9a-fA-F]*\:[0-9a-fA-F][0-9a-fA-F]*\:[0-9a-fA-F][0-9a-fA-F]*\:[0-9a-fA-F][0-9a-fA-F]*\)
 
ETHER_ADDR=0:14:4f:e:88:a8
+ [ ! 0:14:4f:e:88:a8 ] 
+ shift 2 
+ [ xxx101x != x ] 
+ [ 2 -gt 2 -o 2 -eq 0 ] 
NAME1=xxx101
NAME2=sun4u
+ shift 2 
+ [ x != x ] 
+ [ RARP = DHCP ] 
+ [ X != X ] 
+ [ Xsun4u = X ] 
CLIENT_NAME=xxx101
PGRP=sun4u
+ [ -n  ] 
+ dirname /jumpstart/b72_sparc/Solaris_11/Tools/add_install_client 
TOOLS_DIR=/jumpstart/b72_sparc/Solaris_11/Tools
+ basename /jumpstart/b72_sparc/Solaris_11/Tools/add_install_client 
myname=add_install_client
+ cd /jumpstart/b72_sparc/Solaris_11/Tools/../.. 
+ pwd 
DISTRIBUTION_DIR=/jumpstart/b72_sparc
+ cd /jumpstart/b72_sparc/Solaris_11/Tools/.. 
+ pwd 
SOLARIS_PROD_DIR=/jumpstart/b72_sparc/Solaris_11
+ basename /jumpstart/b72_sparc/Solaris_11 
VERSION=Solaris_11
+ basename /jumpstart/b72_sparc 
BUILD=b72_sparc
+ [ -n  ] 
+ [ sun4u = i86pc ] 
IMAGE_PATH=/jumpstart/b72_sparc/Solaris_11/Tools/Boot
+ [ ! -d /jumpstart/b72_sparc/Solaris_11/Tools/Boot ] 
+ [ sun4u = i86pc ] 
+ [ ! -d /jumpstart/b72_sparc/Solaris_11/Tools/Boot/.tmp_proto ] 
+ df -l /jumpstart/b72_sparc/Solaris_11/Tools/Boot 
+ [ 0 -ne 0 ] 
+ init_lookup 
HAVE_DNS=0
HAVE_NIS=0
HAVE_NISPLUS=0
+ [ -f /etc/resolv.conf ] 
HAVE_DNS=1
+ [ -f /var/nis/NIS_COLD_START ] 
+ ps -ef 
+ grep [ /]nisd 
+ grep [ /]ypserv 
+ ps -ef 
+ ps -ef 
+ grep [ /]ypbind 
+ [ XRARP = XRARP ] 
+ get_realname 
+ get_hostname xxx101 
HOST_NAME=
+ lookup hosts xxx101 byname  
D=hosts
K=xxx101
T=byname
S=
ANS=
status=0
+ [ ! -z  ] 
+ get_sources hosts 
+ egrep ^hosts: /etc/nsswitch.conf 
+ sed -e /^$/d -e /^#/d -e s/.*:// -e s/\[.*return\].*$// -e
s/\[.*\].*$// 
+ awk { for(i=1; i <= NF; i++) { print $i } } 
srcs=files
dns
mdns
SRC=files
NS=local
NS_NAME=file
dbfile=/etc/hosts
key=^[  ]*[^#   ].*\<xxx101\>
+ [ byname = byaddr ] 
+ [ -f /etc/hosts ] 
+ match_pattern xxx101 /etc/hosts 
ANS=
status=0
Found=no
+ [ /etc/hosts = /etc/bootparams ] 
key=^[  ]*[^#   ].*\<xxx101\>
+ grep ^[       ]*[^#   ].*\<xxx101\> /etc/hosts 
+ read Line 
+ echo 192.168.1.101 xxx101 
+ [ no != yes ] 
+ [ xxx101 = 192.168.1.101 ] 
+ [ no != yes ] 
+ [ xxx101 = xxx101 ] 
+ echo 192.168.1.101 xxx101 
Found=yes
+ read Line 
+ [ -f /tmp/tmpans.9192 ] 
+ cat /tmp/tmpans.9192 
ANS=192.168.1.101 xxx101
+ rm -f /tmp/tmpans.9192 
+ return 0 
status=0
+ [ 0 -eq 0 ] 
+ break 
+ echo 192.168.1.101 xxx101 
+ sed -e s/#.*$// 
ANS=192.168.1.101 xxx101
+ echo status=0; SRC=files; ANS="192.168.1.101 xxx101"; NS="local";
NS_NAME="file" 
+ eval status=0; SRC=files; ANS="192.168.1.101 xxx101"; NS="local";
NS_NAME="file" 
status=0
SRC=files
ANS=192.168.1.101 xxx101
NS=local
NS_NAME=file
+ [ 0 -eq 0 ] 
+ [ local = NIS+ ] 
+ [ local = NIS ] 
+ [ local = DNS ] 
+ echo 192.168.1.101 xxx101 
+ read addr name junk 
+ echo xxx101 
HOST_NAME=xxx101
+ return 0 
+ [ ! xxx101 ] 
CLIENT_NAME=xxx101
+ get_hostaddr xxx101 
HOST_ADDR=
+ lookup hosts xxx101 byname  
D=hosts
K=xxx101
T=byname
S=
ANS=
status=0
+ [ ! -z  ] 
+ get_sources hosts 
+ egrep ^hosts: /etc/nsswitch.conf 
+ sed -e /^$/d -e /^#/d -e s/.*:// -e s/\[.*return\].*$// -e
s/\[.*\].*$// 
+ awk { for(i=1; i <= NF; i++) { print $i } } 
srcs=files
dns
mdns
SRC=files
NS=local
NS_NAME=file
dbfile=/etc/hosts
key=^[  ]*[^#   ].*\<xxx101\>
+ [ byname = byaddr ] 
+ [ -f /etc/hosts ] 
+ match_pattern xxx101 /etc/hosts 
ANS=
status=0
Found=no
+ [ /etc/hosts = /etc/bootparams ] 
key=^[  ]*[^#   ].*\<xxx101\>
+ grep ^[       ]*[^#   ].*\<xxx101\> /etc/hosts 
+ read Line 
+ echo 192.168.1.101 xxx101 
+ [ no != yes ] 
+ [ xxx101 = 192.168.1.101 ] 
+ [ no != yes ] 
+ [ xxx101 = xxx101 ] 
+ echo 192.168.1.101 xxx101 
Found=yes
+ read Line 
+ [ -f /tmp/tmpans.9192 ] 
+ cat /tmp/tmpans.9192 
ANS=192.168.1.101 xxx101
+ rm -f /tmp/tmpans.9192 
+ return 0 
status=0
+ [ 0 -eq 0 ] 
+ break 
+ echo 192.168.1.101 xxx101+ sed -e s/#.*$// 
 
ANS=192.168.1.101 xxx101
+ echo status=0; SRC=files; ANS="192.168.1.101 xxx101"; NS="local";
NS_NAME="file" 
+ eval status=0; SRC=files; ANS="192.168.1.101 xxx101"; NS="local";
NS_NAME="file" 
status=0
SRC=files
ANS=192.168.1.101 xxx101
NS=local
NS_NAME=file
+ [ 0 -eq 0 ] 
+ [ local = NIS+ ] 
+ [ local = NIS ] 
+ [ local = DNS ] 
+ echo 192.168.1.101 xxx101 
+ read addr name junk 
+ echo 192.168.1.101 
HOST_ADDR=192.168.1.101
+ return 0 
CLIENT_ADDR=192.168.1.101
+ /sbin/ifconfig -a 
+ read ifname flags 
+ [ lo0: = ether ] 
+ [ lo0: = groupname ] 
+ read inet ipaddr netmask mask broadcast broadaddr 
+ [ lo0: = lo0: ] 
+ continue 
+ read ifname flags 
+ [ e1000g0: = ether ] 
+ [ e1000g0: = groupname ] 
+ read inet ipaddr netmask mask broadcast broadaddr 
+ [ e1000g0: = lo0: ] 
+ [ inet = zone ] 
+ check_network ffff0000 141.50.70.74 192.168.1.101 
+ expr ffff0000 : \(..\)...... 
nm1=ff
+ expr ffff0000 : ..\(..\).... 
nm2=ff
+ expr ffff0000 : ....\(..\).. 
nm3=00
+ expr ffff0000 : ......\(..\) 
nm4=00
+ expr 141.50.70.74 : \([0-9]*\)\..* 
SNO1=141
+ expr 141.50.70.74 : [0-9]*\.\([0-9]*\)\..* 
SNO2=50
+ expr 141.50.70.74 : [0-9]*\.[0-9]*\.\([0-9]*\)\..* 
SNO3=70
+ expr 141.50.70.74 : [0-9]*\.[0-9]*\.[0-9]*\.\([0-9]*\) 
SNO4=74
+ + adb echo 0t141&ff=d 
/dev/null /dev/null 
SNF1=                141     
+ echo 0t50&ff=d 
+ adb /dev/null /dev/null 
SNF2=                50      
+ echo 0t70&00=d 
+ adb /dev/null /dev/null 
SNF3=                0       
+ echo 0t74&00=d 
+ adb /dev/null /dev/null 
SNF4=                0       
tmp=                141     .                50      .               
0       .                0       
+ echo 141 . 50 . 0 . 0 
+ sed s/ //g 
MASKED_SRVR=141.50.0.0
+ expr 192.168.1.101 : \([0-9]*\)\..* 
CNO1=192
+ expr 192.168.1.101 : [0-9]*\.\([0-9]*\)\..* 
CNO2=168
+ expr 192.168.1.101 : [0-9]*\.[0-9]*\.\([0-9]*\)\..* 
CNO3=1
+ expr 192.168.1.101 : [0-9]*\.[0-9]*\.[0-9]*\.\([0-9]*\) 
CNO4=101
+ echo 0t192&ff=d 
+ adb /dev/null /dev/null 
CNF1=                192     
+ echo 0t168&ff=d 
+ adb /dev/null /dev/null 
CNF2=                168     
+ echo 0t1&00=d 
+ adb /dev/null /dev/null 
CNF3=                0       
+ echo 0t101&00=d 
+ adb /dev/null /dev/null 
CNF4=                0       
tmp=                192     .                168     .               
0       .                0       
+ echo 192 . 168 . 0 . 0 
+ sed s/ //g 
MASKED_CLNT=192.168.0.0
NETWORK_MATCHED=0
+ [ 141.50.0.0 = 192.168.0.0 ] 
+ [ 0 -ne 0 ] 
+ read ifname flags 
+ [ ether = ether ] 
+ read ifname flags 
+ [ 0 -ne 0 ] 
+ read inet ipaddr netmask mask broadcast broadaddr 
+ [ lo0: = lo0: ] 
+ continue 
+ read ifname flags 
+ [ e1000g0: = ether ] 
+ [ e1000g0: = groupname ] 
+ read inet ipaddr netmask mask broadcast broadaddr 
+ [ e1000g0: = lo0: ] 
+ [ inet6 = zone ] 
+ check_network fe80::20c:29ff:feeb:100c/10 192.168.1.101 
+ expr fe80::20c:29ff:feeb:100c/10 : \(..\)...... 
nm1=fe
+ expr fe80::20c:29ff:feeb:100c/10 : ..\(..\).... 
nm2=80
+ expr fe80::20c:29ff:feeb:100c/10 : ....\(..\).. 
nm3=::
+ expr fe80::20c:29ff:feeb:100c/10 : ......\(..\) 
nm4=20
+ expr 192.168.1.101 : \([0-9]*\)\..* 
SNO1=192
+ expr 192.168.1.101 : [0-9]*\.\([0-9]*\)\..* 
SNO2=168
+ expr 192.168.1.101 : [0-9]*\.[0-9]*\.\([0-9]*\)\..* 
SNO3=1
+ expr 192.168.1.101 : [0-9]*\.[0-9]*\.[0-9]*\.\([0-9]*\) 
SNO4=101
+ adb /dev/null /dev/null 
+ echo 0t192&fe=d 
SNF1=                192     
+ echo 0t168&80=d 
+ adb /dev/null /dev/null 
SNF2=                128     
+ adb /dev/null /dev/null 
+ echo 0t1&::=d 
adb: syntax error on line 1 of (stdin) near ":"
SNF3=
+ echo 0t101&20=d 
+ adb /dev/null /dev/null 
SNF4=                32      
tmp=                192     .                128     ..               
32      
+ echo 192 . 128 .. 32 
+ sed s/ //g 
MASKED_SRVR=192.128..32
+ expr : \([0-9]*\)\..* 
expr: syntax error
CNO1=
+ expr : [0-9]*\.\([0-9]*\)\..* 
expr: syntax error
CNO2=
+ expr : [0-9]*\.[0-9]*\.\([0-9]*\)\..* 
expr: syntax error
CNO3=
+ expr : [0-9]*\.[0-9]*\.[0-9]*\.\([0-9]*\) 
expr: syntax error
CNO4=
+ echo 0t&fe=d 
+ adb /dev/null /dev/null 
CNF1=                0       
+ echo 0t&80=d 
+ adb /dev/null /dev/null 
CNF2=                0       
+ echo 0t&::=d 
+ adb /dev/null /dev/null 
adb: syntax error on line 1 of (stdin) near ":"
CNF3=
+ echo 0t&20=d 
+ adb /dev/null /dev/null 
CNF4=                0       
tmp=                0       .                0       ..               
0       
+ echo 0 . 0 .. 0 
+ sed s/ //g 
MASKED_CLNT=0.0..0
NETWORK_MATCHED=0
+ [ 192.128..32 = 0.0..0 ] 
+ [ 0 -ne 0 ] 
+ read ifname flags 
+ [ ether = ether ] 
+ read ifname flags 
+ [ 1 -ne 0 ] 
+ break 
SERVER_ADDR=
+ [ -z  ] 
+ echo Warning: no interface configured for address 192.168.1.101 
Warning: no interface configured for address 192.168.1.101
SUBNET_NAME=sxb72x86
+ [ ! -d /jumpstart/b72_sparc/Solaris_11/Product ] 
+ [ x = x ] 
PRODUCT_SERVER=sxb72x86
PRODUCT_PATH=/jumpstart/b72_sparc
+ [ sun4u != i86pc ] 
ROOT=/jumpstart/b72_sparc/Solaris_11/Tools/Boot
USR=/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr
+ [ ! -d /jumpstart/b72_sparc/Solaris_11/Tools/Boot ] 
+ [ ! -x /jumpstart/b72_sparc/Solaris_11/Tools/Boot/platform/sun4u -o !
-x /jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u ] 
+ [ XRARP = XRARP ] 
+ rarp_check_ipaddr 
+ [ X192.168.1.101 != X ] 
+ get_hostaddr xxx101 
HOST_ADDR=
+ lookup hosts xxx101 byname  
D=hosts
K=xxx101
T=byname
S=
ANS=
status=0
+ [ ! -z  ] 
+ get_sources hosts 
+ egrep ^hosts: /etc/nsswitch.conf 
+ sed -e /^$/d -e /^#/d -e s/.*:// -e s/\[.*return\].*$// -e
s/\[.*\].*$// 
+ awk { for(i=1; i <= NF; i++) { print $i } } 
srcs=files
dns
mdns
SRC=files
NS=local
NS_NAME=file
dbfile=/etc/hosts
key=^[  ]*[^#   ].*\<xxx101\>
+ [ byname = byaddr ] 
+ [ -f /etc/hosts ] 
+ match_pattern xxx101 /etc/hosts 
ANS=
status=0
Found=no
+ [ /etc/hosts = /etc/bootparams ] 
key=^[  ]*[^#   ].*\<xxx101\>
+ grep ^[       ]*[^#   ].*\<xxx101\> /etc/hosts 
+ read Line 
+ echo 192.168.1.101 xxx101 
+ [ no != yes ] 
+ [ xxx101 = 192.168.1.101 ] 
+ [ no != yes ] 
+ [ xxx101 = xxx101 ] 
+ echo 192.168.1.101 xxx101 
Found=yes
+ read Line 
+ [ -f /tmp/tmpans.9192 ] 
+ cat /tmp/tmpans.9192 
ANS=192.168.1.101 xxx101
+ rm -f /tmp/tmpans.9192 
+ return 0 
status=0
+ [ 0 -eq 0 ] 
+ break 
+ echo 192.168.1.101 xxx101 
+ sed -e s/#.*$// 
ANS=192.168.1.101 xxx101
+ echo status=0; SRC=files; ANS="192.168.1.101 xxx101"; NS="local";
NS_NAME="file" 
+ eval status=0; SRC=files; ANS="192.168.1.101 xxx101"; NS="local";
NS_NAME="file" 
status=0
SRC=files
ANS=192.168.1.101 xxx101
NS=local
NS_NAME=file
+ [ 0 -eq 0 ] 
+ [ local = NIS+ ] 
+ [ local = NIS ] 
+ [ local = DNS ] 
+ echo 192.168.1.101 xxx101 
+ read addr name junk 
+ echo 192.168.1.101 
HOST_ADDR=192.168.1.101
+ return 0 
ip_addr=192.168.1.101
+ [ 192.168.1.101 != 192.168.1.101 ] 
+ grep \<xxx101\> /etc/hosts 
+ [ 0 -ne 0 ] 
+ [ ! 192.168.1.101 ] 
+ [ ! 192.168.1.101 ] 
+ rarp_check_ether 
+ [ 0:14:4f:e:88:a8 ] 
+ get_etheraddr xxx101 
ETHERNET_ADDR=
+ lookup ethers xxx101 byname  
D=ethers
K=xxx101
T=byname
S=
ANS=
status=0
+ [ ! -z  ] 
+ get_sources ethers 
+ egrep ^ethers: /etc/nsswitch.conf 
+ sed -e /^$/d -e /^#/d -e s/.*:// -e s/\[.*return\].*$// -e
s/\[.*\].*$// 
+ awk { for(i=1; i <= NF; i++) { print $i } } 
srcs=files
SRC=files
NS=local
NS_NAME=file
dbfile=/etc/ethers
key=^[  ]*[^#   ].*\<xxx101\>
+ [ byname = byaddr ] 
+ [ -f /etc/ethers ] 
+ match_pattern xxx101 /etc/ethers 
ANS=
status=0
Found=no
+ [ /etc/ethers = /etc/bootparams ] 
key=^[  ]*[^#   ].*\<xxx101\>
+ grep ^[       ]*[^#   ].*\<xxx101\> /etc/ethers 
+ read Line 
+ [ -f /tmp/tmpans.9192 ] 
status=1
+ return 1 
status=1
+ [ 1 -eq 0 ] 
+ echo 
+ sed -e s/#.*$// 
ANS=
+ echo status=1; SRC=files; ANS=""; NS="local"; NS_NAME="file" 
+ eval status=1; SRC=files; ANS=""; NS="local"; NS_NAME="file" 
status=1
SRC=files
ANS=
NS=local
NS_NAME=file
+ [ 1 -eq 0 ] 
+ return 1 
+ [  -a 0:14:4f:e:88:a8 !=  ] 
+ match_pattern xxx101 /etc/ethers 
ANS=
status=0
Found=no
+ [ /etc/ethers = /etc/bootparams ] 
key=^[  ]*[^#   ].*\<xxx101\>
+ grep ^[       ]*[^#   ].*\<xxx101\> /etc/ethers 
+ read Line 
+ [ -f /tmp/tmpans.9192 ] 
status=1
+ return 1 
status=1
+ [ 1 -ne 0 ] 
+ echo Adding Ethernet number for xxx101 to /etc/ethers 
Adding Ethernet number for xxx101 to /etc/ethers
+ echo 0:14:4f:e:88:a8 xxx101 
+ get_etheraddr xxx101 
ETHERNET_ADDR=
+ lookup ethers xxx101 byname  
D=ethers
K=xxx101
T=byname
S=
ANS=
status=0
+ [ ! -z  ] 
+ get_sources ethers 
+ egrep ^ethers: /etc/nsswitch.conf 
+ sed -e /^$/d -e /^#/d -e s/.*:// -e s/\[.*return\].*$// -e
s/\[.*\].*$// 
+ awk { for(i=1; i <= NF; i++) { print $i } } 
srcs=files
SRC=files
NS=local
NS_NAME=file
dbfile=/etc/ethers
key=^[  ]*[^#   ].*\<xxx101\>
+ [ byname = byaddr ] 
+ [ -f /etc/ethers ] 
+ match_pattern xxx101 /etc/ethers 
ANS=
status=0
Found=no
+ [ /etc/ethers = /etc/bootparams ] 
key=^[  ]*[^#   ].*\<xxx101\>
+ grep ^[       ]*[^#   ].*\<xxx101\> /etc/ethers 
+ read Line 
+ echo 0:14:4f:e:88:a8 xxx101 
+ [ no != yes ] 
+ [ xxx101 = 0:14:4f:e:88:a8 ] 
+ [ no != yes ] 
+ [ xxx101 = xxx101 ] 
+ echo 0:14:4f:e:88:a8 xxx101 
Found=yes
+ read Line 
+ [ -f /tmp/tmpans.9192 ] 
+ cat /tmp/tmpans.9192 
ANS=0:14:4f:e:88:a8 xxx101
+ rm -f /tmp/tmpans.9192 
+ return 0 
status=0
+ [ 0 -eq 0 ] 
+ break 
+ echo 0:14:4f:e:88:a8 xxx101 
+ sed -e s/#.*$// 
ANS=0:14:4f:e:88:a8 xxx101
+ echo status=0; SRC=files; ANS="0:14:4f:e:88:a8 xxx101"; NS="local";
NS_NAME="file" 
+ eval status=0; SRC=files; ANS="0:14:4f:e:88:a8 xxx101"; NS="local";
NS_NAME="file" 
status=0
SRC=files
ANS=0:14:4f:e:88:a8 xxx101
NS=local
NS_NAME=file
+ [ 0 -eq 0 ] 
+ [ local = NIS+ ] 
+ [ local = NIS ] 
+ echo 0:14:4f:e:88:a8 xxx101 
+ read addr name junk 
+ echo 0:14:4f:e:88:a8 
ETHERNET_ADDR=0:14:4f:e:88:a8
+ return 0 
+ [ 0 -ne 0 ] 
+ [ sxb72x86 = sxb72x86 ] 
+ export_fs /jumpstart/b72_sparc 
+ df -F zfs /jumpstart/b72_sparc 
+ [ 1 -eq 0 ] 
LAST_EXPORT=
+ unset EXP_FS 
FS_TO_EXPORT=/jumpstart/b72_sparc
+ awk $0 !~ /^#/ {
                if ($NF == "/jumpstart/b72_sparc") {find=1; exit}
            }

            END {
                if (find == 1) exit 0; else exit 1
            } /etc/dfs/dfstab 
+ [ 0 -eq 0 ] 
EXP_FS=/jumpstart/b72_sparc
+ awk 
            BEGIN { flag = -1 }
            {
                if ($NF != "/jumpstart/b72_sparc") {
                    next
                }

                flag = 0
                for (f=1; f <= NF; f++) {
                    if (substr($f, 1, 2) == "-o") {
                        if (length($f) == 2)
                            str=$(f+1)
                        else
                            str=substr($f, 3, length($f)-2)

                        cnt=split(str, args, ",")
                        for (i=1; i<=cnt; i++) {

                            if (args[i] == "ro")
                                flag++

                            if (args[i] == "anon=0")
                                flag++

                            if (substr(args[i], 1, 5) == "root=") {
                                tmp=substr(args[i], 6, length(args[i])-5)
                                rcnt=split(tmp, root, ":")
                                for (j=1; j<=rcnt; j++)
                                    if (root[j] == "xxx101") {
                                        flag++
                                    }
                            }
                        }
                    }
                }
            }
            END {
                if (flag == -1)
                    exit 2

                if (flag >= 2)
                    exit 0
                else
                    exit 1
            } /etc/dfs/dfstab 
ret_code=0
+ [ 0 -eq 1 -a /jumpstart/b72_sparc !=  ] 
+ [ 0 -eq 2 ] 
+ [ -h /jumpstart/b72_sparc/Solaris_11/Tools/Boot ] 
+ export_fs /jumpstart/b72_sparc/Solaris_11/Tools/Boot 
+ df -F zfs /jumpstart/b72_sparc/Solaris_11/Tools/Boot 
+ [ 1 -eq 0 ] 
LAST_EXPORT=/jumpstart/b72_sparc
+ unset EXP_FS 
FS_TO_EXPORT=/jumpstart/b72_sparc/Solaris_11/Tools/Boot
+ awk $0 !~ /^#/ {
                if ($NF == "/jumpstart/b72_sparc/Solaris_11/Tools/Boot") 
{find=1;
exit}
            }

            END {
                if (find == 1) exit 0; else exit 1
            } /etc/dfs/dfstab 
+ [ 1 -eq 0 ] 
CD_FS=/jumpstart/b72_sparc/Solaris_11/Tools/Boot
+ df -kl 
+ grep ^/dev 
+ awk { print $6 } 
+ sort -r 
+ [ /media/SOL_11_SPARC != /jumpstart/b72_sparc/Solaris_11/Tools/Boot ] 
+ echo /media/SOL_11_SPARC 
+ awk {
                                        if (length($1) < length(FS_TO_EXPORT))
                                            print substr(FS_TO_EXPORT,1, 
length($1))
                                    } 
FS_TO_EXPORT=/jumpstart/b72_sparc/Solaris_11/Tools/Boot 
dir=/jumpstart/b72_spar
+ [ /media/SOL_11_SPARC = /jumpstart/b72_spar ] 
+ [ /devices != /jumpstart/b72_sparc/Solaris_11/Tools/Boot ] 
+ echo /devices 
+ awk {
                                        if (length($1) < length(FS_TO_EXPORT))
                                            print substr(FS_TO_EXPORT,1, 
length($1))
                                    } 
FS_TO_EXPORT=/jumpstart/b72_sparc/Solaris_11/Tools/Boot 
dir=/jumpsta
+ [ /devices = /jumpsta ] 
+ [ /dev != /jumpstart/b72_sparc/Solaris_11/Tools/Boot ] 
+ echo /dev 
+ awk {
                                        if (length($1) < length(FS_TO_EXPORT))
                                            print substr(FS_TO_EXPORT,1, 
length($1))
                                    } 
FS_TO_EXPORT=/jumpstart/b72_sparc/Solaris_11/Tools/Boot 
dir=/jum
+ [ /dev = /jum ] 
+ [ / != /jumpstart/b72_sparc/Solaris_11/Tools/Boot ] 
+ echo / 
+ awk {
                                        if (length($1) < length(FS_TO_EXPORT))
                                            print substr(FS_TO_EXPORT,1, 
length($1))
                                    } 
FS_TO_EXPORT=/jumpstart/b72_sparc/Solaris_11/Tools/Boot 
dir=/
+ [ / = / ] 
CD_FS=/
+ break 
+ awk $0 !~ /^#/ {print $NF} /etc/dfs/dfstab 
+ egrep ^/ 
+ expr /jumpstart/b72_sparc/Solaris_11/Tools/Boot :
\(/media/SOL_11_SPARC\).* 
+ expr /jumpstart/b72_sparc/Solaris_11/Tools/Boot :
\(/jumpstart/b72_sparc\).* 
EXP_FS=/jumpstart/b72_sparc
+ break 
+ [ -z /jumpstart/b72_sparc ] 
+ awk 
            BEGIN { flag = -1 }
            {
                if ($NF != "/jumpstart/b72_sparc") {
                    next
                }

                flag = 0
                for (f=1; f <= NF; f++) {
                    if (substr($f, 1, 2) == "-o") {
                        if (length($f) == 2)
                            str=$(f+1)
                        else
                            str=substr($f, 3, length($f)-2)

                        cnt=split(str, args, ",")
                        for (i=1; i<=cnt; i++) {

                            if (args[i] == "ro")
                                flag++

                            if (args[i] == "anon=0")
                                flag++

                            if (substr(args[i], 1, 5) == "root=") {
                                tmp=substr(args[i], 6, length(args[i])-5)
                                rcnt=split(tmp, root, ":")
                                for (j=1; j<=rcnt; j++)
                                    if (root[j] == "xxx101") {
                                        flag++
                                    }
                            }
                        }
                    }
                }
            }
            END {
                if (flag == -1)
                    exit 2

                if (flag >= 2)
                    exit 0
                else
                    exit 1
            } /etc/dfs/dfstab 
ret_code=0
+ [ 0 -eq 1 -a /jumpstart/b72_sparc != /jumpstart/b72_sparc ] 
+ [ 0 -eq 2 ] 
+ [ XRARP = XDHCP ] 
CLEAN=/tftpboot/rm.192.168.1.101
CLEANUP_FOR=xxx101
+ [ -f /tftpboot/rm.192.168.1.101 ] 
diskneeded=0
Bootfile=
ExtraSpaceNeeded=6
+ [ sun4u != i86pc ] 
aBootfile=/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u/lib/fs/nfs/inetboot
+ [ ! -f
/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u/lib/fs/nfs/inetboot
] 
+ tftp_file_name
/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u/lib/fs/nfs/inetboot
inetboot 
SRC=/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u/lib/fs/nfs/inetboot
BASE=inetboot
file_to_use=
+ + env LC_ALL=C LANG=C /bin/tr [a-z] [A-Z] 
echo sun4u 
CONV_GRP=SUN4U
+ [ -h /tftpboot/inetboot.SUN4U.Solaris_11-1 ] 
+ cmp -s
/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u/lib/fs/nfs/inetboot
/tftpboot/inetboot.SUN4U.Solaris_11-1 
file_to_use=/tftpboot/inetboot.SUN4U.Solaris_11-1
+ break 
+ [ /tftpboot/inetboot.SUN4U.Solaris_11-1 ] 
+ basename /tftpboot/inetboot.SUN4U.Solaris_11-1 
file_to_use=inetboot.SUN4U.Solaris_11-1
+ echo inetboot.SUN4U.Solaris_11-1 
Bootfile=inetboot.SUN4U.Solaris_11-1
+ tftp_new_file_size
/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u/lib/fs/nfs/inetboot
inetboot.SUN4U.Solaris_11-1 
SRC=/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u/lib/fs/nfs/inetboot
DEST=inetboot.SUN4U.Solaris_11-1
+ [ -f inetboot.SUN4U.Solaris_11-1 ] 
+ du -sk
/jumpstart/b72_sparc/Solaris_11/Tools/Boot/usr/platform/sun4u/lib/fs/nfs/inetboot
 
+ read size name 
+ echo 224 
space_needed=224
+ expr 0 + 224 + 6 
diskneeded=230
+ [ X != X ] 
+ [ ! -d /tftpboot ] 
+ df -k /tftpboot 
+ tail -1 
+ awk {print $4} 
diskavail=3490560
+ [ 230 -gt 3490560 ] 
+ [ XRARP != XDHCP ] 
+ grep \<sxb72x86\> /etc/hosts 
+ read ip nm 
+ echo 141.50.70.74 
SERVER_IP_ADDR=141.50.70.74
+ [ 141.50.70.74x = x ] 
+ start_tftpd 
+ grep ^#tftp[  ] /etc/inetd.conf 
+ [ -f /lib/svc/share/smf_include.sh ] 
+ . /lib/svc/share/smf_include.sh 
SMF_EXIT_OK=0
SMF_EXIT_ERR_FATAL=95
SMF_EXIT_ERR_CONFIG=96
SMF_EXIT_MON_DEGRADE=97
SMF_EXIT_MON_OFFLINE=98
SMF_EXIT_ERR_NOSMF=99
SMF_EXIT_ERR_PERM=100
+ [ smf_present ] 
+ /usr/bin/svcprop network/tftp/udp6:default/:properties/restarter/state 
state=online
+ [ online != online ] 
+ [ XRARP = XRARP ] 
+ start_rarpd_bootparamd 
+ ps -e 
+ awk {print $NF} 
+ basename /usr/sbin/in.rarpd 
+ grep \<in.rarpd\> 
+ : 
+ get_sources bootparams 
+ egrep ^bootparams: /etc/nsswitch.conf 
+ sed -e /^$/d -e /^#/d -e s/.*:// -e s/\[.*return\].*$// -e
s/\[.*\].*$// 
+ awk { for(i=1; i <= NF; i++) { print $i } } 
srcs=files
+ [ files !=  ] 
+ set -- files 
+ [ files != files ] 
+ ps -ef 
+ grep [ /]rpc.bootparamd$ 
+ : 
+ start_nfsd_mountd 
+ [ -f /lib/svc/share/smf_include.sh ] 
+ . /lib/svc/share/smf_include.sh 
SMF_EXIT_OK=0
SMF_EXIT_ERR_FATAL=95
SMF_EXIT_ERR_CONFIG=96
SMF_EXIT_MON_DEGRADE=97
SMF_EXIT_MON_OFFLINE=98
SMF_EXIT_ERR_NOSMF=99
SMF_EXIT_ERR_PERM=100
+ [ smf_present ] 
+ /usr/bin/svcprop
network/nfs/server:default/:properties/restarter/state 
state=online
+ [ online != online ] 
+ return 
+ [ XRARP = XRARP ] 
+ configure_bootparams 
+ [  ] 
+ [  ] 
+ [  = tftp ] 
root_opts=rootopts=:rsize=8192
BOOTPARAMS=xxx101 
BOOTPARAMS=xxx101 
root=sxb72x86:/jumpstart/b72_sparc/Solaris_11/Tools/Boot
BOOTPARAMS=xxx101 
root=sxb72x86:/jumpstart/b72_sparc/Solaris_11/Tools/Boot
install=sxb72x86:/jumpstart/b72_sparc
BOOTPARAMS=xxx101 
root=sxb72x86:/jumpstart/b72_sparc/Solaris_11/Tools/Boot
install=sxb72x86:/jumpstart/b72_sparc boottype=:in 
BOOTPARAMS=xxx101 
root=sxb72x86:/jumpstart/b72_sparc/Solaris_11/Tools/Boot
install=sxb72x86:/jumpstart/b72_sparc boottype=:in  
rootopts=:rsize=8192 
+ lookup bootparams xxx101 
D=bootparams
K=xxx101
T=
S=
ANS=
status=0
+ [ ! -z  ] 
+ get_sources bootparams 
+ egrep ^bootparams: /etc/nsswitch.conf 
+ sed -e /^$/d -e /^#/d -e s/.*:// -e s/\[.*return\].*$// -e
s/\[.*\].*$// 
+ awk { for(i=1; i <= NF; i++) { print $i } } 
srcs=files
SRC=files
NS=local
NS_NAME=file
dbfile=/etc/bootparams
key=^\<xxx101\>
+ [ -f /etc/bootparams ] 
+ match_pattern xxx101 /etc/bootparams 
ANS=
status=0
Found=no
+ [ /etc/bootparams = /etc/bootparams ] 
key=^\<xxx101\>
+ grep ^\<xxx101\> /etc/bootparams 
+ read Line 
+ [ -f /tmp/tmpans.9192 ] 
status=1
+ return 1 
status=1
+ [ 1 -eq 0 ] 
+ echo 
+ sed -e s/#.*$// 
ANS=
+ echo status=1; SRC=files; ANS=""; NS="local"; NS_NAME="file" 
+ eval status=1; SRC=files; ANS=""; NS="local"; NS_NAME="file" 
status=1
SRC=files
ANS=
NS=local
NS_NAME=file
+ [ local != local ] 
+ echo updating /etc/bootparams 
updating /etc/bootparams
+ grep ^xxx101[         ] /etc/bootparams 
+ [ 1 -eq 0 ] 
+ [ -s /etc/bootparams ] 
+ tail -1 /etc/bootparams 
bootp_last=xxx100 
root=sxb72x86:/jumpstart/b72_sparc/Solaris_11/Tools/Boot
install=sxb72x86:/jumpstart/b72_sparc boottype=:in  
rootopts=:rsize=8192 
+ [ + = xxx100  root=sxb72x86:/jumpstart/b72_sparc/Solaris_11/Tools/Boot
install=sxb72x86:/jumpstart/b72_sparc boottype=:in  
rootopts=:rsize=8192  ] 
ed_cmd=a
+ echo /^+ 
+ echo a 
+ echo xxx101  root=sxb72x86:/jumpstart/b72_sparc/Solaris_11/Tools/Boot
install=sxb72x86:/jumpstart/b72_sparc boottype=:in  
rootopts=:rsize=8192  
+ echo . 
+ echo w 
+ echo q 
+ ed /etc/bootparams 
+ echo #!/sbin/sh 
+ echo # cleanup file for xxx101 - sourced by rm_install_client 
+ [ ! -f /tftpboot/inetboot.SUN4U.Solaris_11-1 ] 
+ [ sun4u = i86pc ] 
+ [ X != X ] 
+ [ sun4u != i86pc ] 
+ [ XRARP = XDHCP ] 
+ echo 192.168.1.101 
+ awk -F. {
                    IP_HEX = sprintf("%0.2x%0.2x%0.2x%0.2x", $1,$2,$3,$4)
                    print IP_HEX 
                } 
+ env LC_ALL=C LANG=C /bin/tr [a-z] [A-Z] 
HEXIP=C0A80165
+ echo sun4u 
+ env LC_ALL=C LANG=C /bin/tr [a-z] [A-Z] 
HEXIPARCH=C0A80165.SUN4U
+ setup_tftp C0A80165.SUN4U inetboot.SUN4U.Solaris_11-1 
+ echo rm /tftpboot/C0A80165.SUN4U 
+ [ -h /tftpboot/C0A80165.SUN4U ] 
+ ln -s inetboot.SUN4U.Solaris_11-1 /tftpboot/C0A80165.SUN4U 
+ setup_tftp C0A80165 inetboot.SUN4U.Solaris_11-1 
+ echo rm /tftpboot/C0A80165 
+ [ -h /tftpboot/C0A80165 ] 
+ ln -s inetboot.SUN4U.Solaris_11-1 /tftpboot/C0A80165 
+ echo cnt=`ls -l /tftpboot | grep -w inetboot.SUN4U.Solaris_11-1 | wc
-l ` 
+ echo if [ ${cnt} -eq 1 ]; then 
+ echo     echo "removing /tftpboot/inetboot.SUN4U.Solaris_11-1" 
+ echo     rm /tftpboot/inetboot.SUN4U.Solaris_11-1 
+ echo fi 
+ [ sun4u = i86pc ] 
+ [ XRARP = XDHCP ] 
+ cleanup_and_exit 0 
+ [ -n  -a -f  ] 
+ [ -n  -a -d  ] 
+ [ -n yes ] 
+ rm -f /tmp/.install_client.lck 
+ exit 0 
-- snip --

I suspect this issue _may_ be related to the detail that the system's
default locale is "en_US.UTF-8" and not "C" ... but I'm not sure (well,
I started looking at the script but suffered a near-cardiac arrest just
after reading through the first few pages of the script... ;-( ) ...
there is so much wrong with the script that I am wondering why it's
actually working...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to