2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 11:40:25 +00:00

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
This commit is contained in:
Kilian Cavalotti
2016-06-17 16:34:35 -07:00
parent 39e8480ade
commit 3112a006d0

View File

@@ -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