start:runcmdinstaller_h
descriptiop:runcmdinstaller -h
cmd:runcmdinstaller -h
check:rc==0
check:output=~runcmdinstaller <node> <commands>
end
start:runcmdinstaller_command
descriptiop:runcmdinstaller
cmd:chtab key=xcatdebugmode site.value="2"
check:rc==0
cmd:rinstall $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
check:output=~Provision node\(s\)\: $$CN
cmd:a=0;while ! `lsdef -l $$CN|grep status|grep installing >/dev/null`; do sleep 20;((a++));if [ $a -gt 30 ];then break;fi done
cmd:lsdef -l $$CN | grep status
cmd:runcmdinstaller $$CN "ls /"
check:rc==0
check:output=~tmp
cmd:chtab key=xcatdebugmode site.value="0"
end
start:get_xcat_postscripts_loginfo
description:get xcat post scripts loginfo
cmd:chtab key=xcatdebugmode site.value="1"
check:rc==0
cmd:rinstall $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
check:output=~Provision node\(s\)\: $$CN
cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 300 ];then break;fi done
cmd:cat /var/log/messages /var/log/xcat/computes.log 2>/dev/null | grep "Running post-installation scripts"
cmd:rc==0
cmd:cat /var/log/messages /var/log/xcat/computes.log 2>/dev/null | grep "program: ++"
cmd:rc==0
cmd:chtab key=xcatdebugmode site.value="0"
end
start:updatenode_postscripts_loginfo
description:get updatenode postsripts log info
cmd:chtab key=xcatdebugmode site.value="1"
check:rc==0
cmd:chdef $$CN -p  postscripts=setupntp
check:rc==0
cmd:updatenode $$CN -P setupntp
check:output=~$$CN: +
cmd:cat /var/log/messages /var/log/xcat/computes.log 2>/dev/null |grep "trying to download postscripts"
check:rc==0
cmd:chtab key=xcatdebugmode site.value="0"
cmd:chdef $$CN  -m  postscripts=setupntp
end
