Skip to content

Commit 7ef1929

Browse files
authored
bmcsetup: add support for setting bmcport on Supermicro servers (#7318)
* bmcsetup: add support for setting bmcport on Supermicro servers * bmcsetup: set real shared mode for Supermicro BMC interface, and add web reference
1 parent 255ff27 commit 7ef1929

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

xCAT-genesis-scripts/usr/bin/bmcsetup

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,15 @@ elif [ "$IPMIMFG" == "674" ]; then # DELL
274274
elif [ "$BMCPORT" == "1" ]; then # dedicated
275275
ipmitool raw 0x30 0x28 0x01 0x00
276276
fi
277+
elif [ "$IPMIMFG" == "10876" ]; then # Supermicro
278+
BMCPORT=`grep bmcport /tmp/ipmicfg.xml |awk -F\> '{print $2}'|awk -F\< '{print $1}'`
279+
logger -s -t $log_label -p local4.info "BMCPORT is $BMCPORT"
280+
# https://www.supermicro.com/support/faqs/faq.cfm?faq=17953
281+
if [ "$BMCPORT" == "0" ]; then # shared
282+
ipmitool raw 0x30 0x70 0x0c 1 1
283+
elif [ "$BMCPORT" == "1" ]; then # dedicated
284+
ipmitool raw 0x30 0x70 0x0c 1 0
285+
fi
277286
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "16975" ]; then # IBM OpenPOWER servers with OpenBMC (AC922)
278287
ISOPENBMC=1
279288
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "1" ]; then # IBM OpenPOWER servers with OpenBMC (IC922)

0 commit comments

Comments
 (0)