2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 03:02:05 +00:00

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
This commit is contained in:
Kilian Cavalotti 2024-07-12 07:15:52 -07:00 committed by GitHub
parent 255ff27d8f
commit 7ef19295f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -274,6 +274,15 @@ elif [ "$IPMIMFG" == "674" ]; then # DELL
elif [ "$BMCPORT" == "1" ]; then # dedicated
ipmitool raw 0x30 0x28 0x01 0x00
fi
elif [ "$IPMIMFG" == "10876" ]; then # Supermicro
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"
# https://www.supermicro.com/support/faqs/faq.cfm?faq=17953
if [ "$BMCPORT" == "0" ]; then # shared
ipmitool raw 0x30 0x70 0x0c 1 1
elif [ "$BMCPORT" == "1" ]; then # dedicated
ipmitool raw 0x30 0x70 0x0c 1 0
fi
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "16975" ]; then # IBM OpenPOWER servers with OpenBMC (AC922)
ISOPENBMC=1
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "1" ]; then # IBM OpenPOWER servers with OpenBMC (IC922)