From 1a6c7f750df73870c8bb645d7f4113e83a972dd0 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Thu, 18 Sep 2014 16:52:37 +0100 Subject: [PATCH] add reset of BMC for x3755 M4 (8722) after the BMC has been configured Signed-off-by: Arif Ali --- xCAT-genesis-scripts/bin/bmcsetup | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/xCAT-genesis-scripts/bin/bmcsetup b/xCAT-genesis-scripts/bin/bmcsetup index 4a6b1a87a..fe9b87a6c 100755 --- a/xCAT-genesis-scripts/bin/bmcsetup +++ b/xCAT-genesis-scripts/bin/bmcsetup @@ -368,6 +368,21 @@ if [ ! "$IPMIVER" == "1.5" ]; then if [ $TRIES -gt $TIMEOUT ]; then echo "ERROR"; else echo "OK"; fi fi +XPROD=`ipmitool mc info|grep "^Product ID"|awk '{print $4}'` +if [ "$XPROD" = "309" ] ; then + # Reset the BMC for the x3755 M4 (8722), otherwise will not be able to get to the BMC + echo "Resetting BMC ..." + ipmitool mc reset cold + echo "Waiting for the BMC to appear ..." + sleep 15 + TRIES=0 + while ! ipmitool lan print $LANCHAN > /dev/null; do + sleep 3 + let TRIES=TRIES+1 + if [ $TRIES -gt $TIMEOUT ]; then break; fi + done +fi + # update the node status to 'bmcready' for parm in `cat /proc/cmdline`; do key=`echo $parm|awk -F= '{print $1}'`