Does /xcatpost/mypostscript and /xcatpost/mypostscript.post look correct? like this:
[root@kvm1 xcatpost]# cat /xcatpost/mypostscript # subroutine used to run postscripts run_ps () { logdir="/var/log/xcat" mkdir -p $logdir logfile="/var/log/xcat/xcat.log" if [ -f $1 ]; then echo "`date` Running postscript: $@" | tee -a $logfile #./$@ 2>&1 1> /tmp/tmp4xcatlog #cat /tmp/tmp4xcatlog | tee -a $logfile ./$@ 2>&1 | tee -a else echo "`date` Postscript $1 does NOT exist." | tee -a $logfile fi } # subroutine end BLADEMAXP='64' export BLADEMAXP DOMAIN='ppd.pok.ibm.com' export DOMAIN FSPTIMEOUT='0' export FSPTIMEOUT INSTALLDIR='/install' export INSTALLDIR IPMIMAXP='64' export IPMIMAXP IPMIRETRIES='3' export IPMIRETRIES IPMITIMEOUT='2' export IPMITIMEOUT CONSOLEONDEMAND='no' export CONSOLEONDEMAND SITEMASTER=10.1.0.225 export SITEMASTER MASTER=10.1.0.225 export MASTER FORWARDERS='9.114.8.1,9.114.1.1' export FORWARDERS NAMESERVERS='10.1.0.225' export NAMESERVERS MAXSSH='8' export MAXSSH PPCMAXP='64' export PPCMAXP PPCRETRY='3' export PPCRETRY PPCTIMEOUT='0' export PPCTIMEOUT POWERINTERVAL='0' export POWERINTERVAL SYSPOWERINTERVAL='0' export SYSPOWERINTERVAL SHAREDTFTP='1' export SHAREDTFTP SNSYNCFILEDIR='/var/xcat/syncfiles' export SNSYNCFILEDIR TFTPDIR='/tftpboot' export TFTPDIR XCATDPORT='3001' export XCATDPORT XCATIPORT='3002' export XCATIPORT XCATCONFDIR='/etc/xcat' export XCATCONFDIR TIMEZONE='America/New_York' export TIMEZONE USENMAPFROMMN='no' export USENMAPFROMMN ENABLEASMI='no' export ENABLEASMI DB2INSTALLLOC='/mntdb2' export DB2INSTALLLOC DATABASELOC='/var/lib' export DATABASELOC SSHBETWEENNODES='ALLGROUPS' export SSHBETWEENNODES DNSHANDLER='ddns' export DNSHANDLER VSFTP='y' export VSFTP CLEANUPXCATPOST='no' export CLEANUPXCATPOST DHCPLEASE='43200' export DHCPLEASE ENABLESSHBETWEENNODES=YES export ENABLESSHBETWEENNODES NODE=kvm1 export NODE INSTALLNIC=mac export INSTALLNIC PRIMARYNIC=mac export PRIMARYNIC OSVER=rhels6.2 export OSVER ARCH=x86_64 export ARCH PROFILE=compute export PROFILE PATH=`dirname $0`:$PATH export PATH NODESETSTATE='install' export NODESETSTATE UPDATENODE=0 export UPDATENODE NTYPE=compute export NTYPE MACADDRESS='42:29:0a:01:00:ab' export MACADDRESS VMNODE='YES' export VMNODE MONSERVER=defiant.ppd.pok.ibm.com export MONSERVER MONMASTER=10.1.0.225 export MONMASTER OSPKGS='ntp,nfs-utils,net-snmp,rsync,yp-tools,openssh-server,util-linux-ng' export OSPKGS NOSYNCFILES=1 export NOSYNCFILES # postscripts-start-here run_ps syslog run_ps remoteshell run_ps syncfiles # postscripts-end-here [root@kvm1 xcatpost]# Thanks, ------------------------------------------------------------------------- Li,Guang Cheng (李光成) IBM China System Technology Laboratory Email: ligua...@cn.ibm.com Address: Building 28, ZhongGuanCun Software Park, No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC 北京市海淀区东北旺西路8号中关村软件园28号楼 邮编: 100193 From: François Bissey <francois.bis...@canterbury.ac.nz> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Date: 2012-07-31 08:34 Subject: Re: [xcat-user] postscript not run after install? I just tried with another node and a regular profile. This time the postbootscript have run normally but not the postscripts. /tmp/wget.log is full of package fetching info but /var/log/xcat doesn't exist at all. Francois ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: graycol.gif>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user