From 3112a006d0b607250f8313eeba7defa04198b783 Mon Sep 17 00:00:00 2001 From: Kilian Cavalotti Date: Fri, 17 Jun 2016 16:34:35 -0700 Subject: [PATCH] bmcsetup: allow to specify which port to share the BMC with it would actually make sense to reverse the logic, and keep ipmi.bmcport="0" for dedicated mode, and ipmi.bmcport="1" (or "2", "3", "4") for shared with LOM1 (or LOM2, LOM3, LOM4) modes --- xCAT-genesis-scripts/bin/bmcsetup | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xCAT-genesis-scripts/bin/bmcsetup b/xCAT-genesis-scripts/bin/bmcsetup index 92da8215b..247ffe80f 100755 --- a/xCAT-genesis-scripts/bin/bmcsetup +++ b/xCAT-genesis-scripts/bin/bmcsetup @@ -228,12 +228,12 @@ elif [ "$IPMIMFG" == "47488" ]; then elif [ "$IPMIMFG" == "674" ]; then # DELL BMCPORT=`grep bmcport /tmp/ipmicfg.xml |awk -F\> '{print $2}'|awk -F\< '{print $1}'` logger -s -t $log_label -p local4.info "BMCPORT is $BMCPORT" - if [ "$BMCPORT" == "0" ]; then # shared with all loms - ipmitool delloem lan set shared >/dev/null 2>&1 - ipmitool delloem lan set shared with lom1 >/dev/null 2>&1 - ipmitool delloem lan set shared with failover all loms >dev/null 2>&1 - elif [ "$BMCPORT" == "1" ]; then # dedicated - ipmitool delloem lan set dedicated >/dev/null 2>&1 + if [ "$BMCPORT" == "0" ]; then # dedicated + ipmitool delloem lan set dedicated &>/dev/null + elif [ "$BMCPORT" == "1" -o "$BMCPORT" == "2" -o "$BMCPORT" == "3" -o "$BMCPORT" == "4"]; then # shared + ipmitool delloem lan set shared &>/dev/null + ipmitool delloem lan set shared with lom$BMCPORT &>/dev/null + ipmitool delloem lan set shared with failover all loms &>dev/null fi fi