Skip to content

Instantly share code, notes, and snippets.

@ruzickap ruzickap/nfs_hp-ssst.sh
Last active Dec 29, 2015

Embed
What would you like to do?
NFS and HP SmartStart Scripting Toolkit installation
yum install -y nfs-utils rpcbind
chkconfig nfs on
mkdir -p /data/hp/
chown -R nfsnobody:nfsnobody /data
cat > /etc/exports << EOF
/data 0.0.0.0/0.0.0.0(ro,no_root_squash,no_subtree_check,async,crossmnt,fsid=0)
/data/hp/ss-scripting-toolkit-linux 0.0.0.0/0.0.0.0(rw,no_root_squash,no_subtree_check,async,crossmnt)
EOF
wget --no-verbose http://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1221080004/v63551/ss-scripting-toolkit-linux-8.70.tar.gz -P /data/hp/
cd /data/hp/
tar xzf ss-scripting-toolkit-linux*.tar.gz
ln -s ss-scripting-toolkit-linux-8.70 ss-scripting-toolkit-linux
mkdir /data/hp/ss-scripting-toolkit-linux/blade_configs
sed -i.orig 's/export TZ=.*/export TZ=MET-1METDST/;s@export TOOLKIT_WRITE_DIR=.*@export TOOLKIT_WRITE_DIR=/data/hp/ss-scripting-toolkit-linux@;' /data/hp/ss-scripting-toolkit-linux/scripts/includes
sed -i.orig 's/partimage/#partimage/;s@\${PROFILE_MNT}/\${PROFILENAME}@\${PROFILE_MNT}/blade_configs/\${PROFILENAME}@;s@^\${TOOLKIT}/reboot@poweroff -f@;/Mounting Storage/a mkdir \${PROFILE_MNT}' /data/hp/ss-scripting-toolkit-linux/scripts/capture.sh /data/hp/ss-scripting-toolkit-linux/scripts/deploy.sh
sed -i 's@\${PROFILE_MNT}/\$PROFILENAME@\${PROFILE_MNT}/blade_configs/\$PROFILENAME@' /data/hp/ss-scripting-toolkit-linux/scripts/capture.sh
sed 's@/mnt/main/scripts/includes@/TOOLKIT/includes@;s@cp -a \${RAM_TOOLKIT_DIR}@#&@;s@./rbsureset -reset@./rbsureset #-reset@;s/^reboot/poweroff -f/' /data/hp/ss-scripting-toolkit-linux/contrib/LinuxCOE/scripts/systemreset.sh > /data/hp/ss-scripting-toolkit-linux/scripts/systemreset.sh
chmod a+x /data/hp/ss-scripting-toolkit-linux/scripts/systemreset.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.