bash-3.2# nimnodeset -i 61fullimage p7mrsa4r04 -V
Running command on p7mrsa4r03: /usr/sbin/lsnim -P -c resources | /usr/bin/cut -f1 -d' ' 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim | /usr/bin/cut -f1 -d' ' 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l 'xcataixscript' 2>/dev/null 2>&1
Running command on p7mrsa4r03: mkdir -m 644 -p /install/nim/scripts; cp /install/postscripts/xcataixscript /install/nim/scripts 2>/dev/null; chmod +x /install/nim/scripts/xcataixscript 2>&1
Running command on p7mrsa4r03: /usr/sbin/nim -Fo define -t script -a server=master -a location=/install/nim/scripts/xcataixscript xcataixscript 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/rmnfsexp -d /install/postscripts/xcataixpost -B 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a location -Z 61fullimage_bosinst_data 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l 61fullimage_bosinst_data 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a location -Z xCATaixCN 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l xCATaixCN 2>/dev/null 2>&1
Error: NIM resource xcataixscript is not defined on p7mrsa4r03.
Error: Return=1.
As you can see, xcat will first create xcataixscript resource by calling nim if xcataixscript does not exist. However,nimnodeset will fail later, which will not happen if xcataixscript already exist..
bash-3.2# nimnodeset -i 61fullimage p7mrsa4r04 -V
Running command on p7mrsa4r03: /usr/sbin/lsnim -P -c resources | /usr/bin/cut -f1 -d' ' 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim | /usr/bin/cut -f1 -d' ' 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l 'xcataixscript' 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a location -Z xcataixscript 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/rmnfsexp -d /install/postscripts/xcataixpost -B 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a location -Z 61fullimage_bosinst_data 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l 61fullimage_bosinst_data 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a location -Z xCATaixCN 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l xCATaixCN 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a location -Z xcataixscript 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l xcataixscript 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a location -Z 61fullimage 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l 61fullimage 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a location -Z 61Simage_lpp_source 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -l 61Simage_lpp_source 2>/dev/null 2>&1
Running command on p7mrsa4r03: /bin/chmod 0644 /install/postscripts/_xcat/ca.pem 2>&1
Running command on p7mrsa4r03: /bin/chmod 0644 /install/postscripts/ca/ca-cert.pem 2>&1
Running command on p7mrsa4r03: /bin/chmod 0644 /install/postscripts/hostkeys/*.pub 2>&1
Running command on p7mrsa4r03: /bin/chmod 0644 /etc/xcat/hostkeys/*.pub 2>&1
Running command on p7mrsa4r03: /bin/chmod 0644 /install/postscripts/_ssh/authorized_keys* 2>&1
Running command on p7mrsa4r03: /bin/hostname 2>&1
Running command on p7mrsa4r03: ifconfig -a| grep "inet" 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -c machines | /usr/bin/cut -f1 -d' ' 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -c resources | /usr/bin/cut -f1 -d' ' 2>/dev/null 2>&1
Running command on p7mrsa4r03: ifconfig -a | grep 'inet ' 2>&1
Running command on p7mrsa4r03: /bin/rm /install/nim/resolv_conf/site_resolv_conf/resolv.conf 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/bin/mkdir -p /install/nim/resolv_conf/site_resolv_conf 2>&1
Running command on p7mrsa4r03: echo "search ppd.pok.ibm.com" > /install/nim/resolv_conf/site_resolv_conf/resolv.conf 2>&1
Running command on p7mrsa4r03: echo nameserver 9.114.34.140 >> /install/nim/resolv_conf/site_resolv_conf/resolv.conf 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -P -c resources | /usr/bin/cut -f1 -d' ' 2>/dev/null 2>&1
p7mrsa4r03: Creating NIM node definition.
Running command on p7mrsa4r03: /usr/sbin/nim -Fo define -t standalone -a if1='find_net p7mrsa4r04 eaa53c8d0402 ent' -a cable_type1=N/A -a netboot_kernel=mp -a net_definition='ent 255.255.255.0 9.114.34.254' -a net_settings1='100 full' p7mrsa4r04 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -a Cstate -Z p7mrsa4r04 2>/dev/null 2>&1
Running command on p7mrsa4r03: /usr/sbin/lsnim -c machines | /usr/bin/cut -f1 -d' ' 2>/dev/null 2>&1
p7mrsa4r03: Running- '/usr/sbin/nim -Fo bos_inst -a accept_licenses="yes" -a source="rte" -a lpp_source="61Simage_lpp_source" -a bosinst_data="61fullimage_bosinst_data" -a boot_client="no" -a spot="61fullimage" -a script=xcataixscript -a installp_bundle=xCATaixCN -a resolv_conf=site_resolv_conf p7mrsa4r04 2>&1'
Running command on p7mrsa4r03: /usr/sbin/nim -Fo bos_inst -a accept_licenses="yes" -a source="rte" -a lpp_source="61Simage_lpp_source" -a bosinst_data="61fullimage_bosinst_data" -a boot_client="no" -a spot="61fullimage" -a script=xcataixscript -a installp_bundle=xCATaixCN -a resolv_conf=site_resolv_conf p7mrsa4r04 2>&1
Restarting inetd on p7mrsa4r03.
p7mrsa4r03: AIX/NIM nodes were initialized.
Running command on p7mrsa4r03: /bin/hostname 2>&1
Running command on p7mrsa4r03: ifconfig -a| grep "inet" 2>&1
Fixed the problem.
File: aixinstall.pm
2.7.2 - r13051
2.8 - r13052