From 949532f362fb795a920ae0fc09374d8cdcfb2816 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 23 Oct 2019 08:46:32 -0400 Subject: [PATCH] Add sleep after port change The BMC net configuration was not yet ready in the wake of having had the port changed immediately. Put in an opportunity for net cfg to catch up. --- xCAT-genesis-scripts/usr/bin/bmcsetup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-genesis-scripts/usr/bin/bmcsetup b/xCAT-genesis-scripts/usr/bin/bmcsetup index 5402cab54..0e21e8ff5 100755 --- a/xCAT-genesis-scripts/usr/bin/bmcsetup +++ b/xCAT-genesis-scripts/usr/bin/bmcsetup @@ -192,6 +192,7 @@ if [ "$IPMIMFG" == 2 ]; then #IBM # Get the LAN Configuration Parameters (OEM) CURBMCPORT=`ipmitool -d $idev raw 0xc 2 1 0xc0 0 0 | awk '{print $2}'` done + sleep 15 let idev=idev+1 done unset IFS @@ -215,6 +216,7 @@ if [ "$IPMIMFG" == 2 ]; then #IBM sleep 1 CURBMCPORT=`ipmitool -d $idev raw 0xc 2 1 0xc0 0 0 | awk '{print $2}'` done + sleep 15 let idev=idev+1 done unset IFS @@ -252,6 +254,7 @@ elif [ "$IPMIMFG" == 20301 -o "$IPMIMFG" == 19046 -a "$XPROD" != 502 ] ; then sleep 1 CURBMCPORT=`ipmitool -d $idev raw 0xc 2 1 0xc0 0 0 | awk '{print $2}'` done + sleep 15 let idev=idev+1 done unset IFS