2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-05 17:58:14 +00:00

Adapt channel number dynamically

SR635/SR655 lan channel identity may swap.
Use the oem command to determine the correct
port.
This commit is contained in:
Jarrod Johnson
2019-11-19 15:35:48 -05:00
parent 3f7ad27591
commit 408cf2b353

View File

@@ -231,10 +231,10 @@ elif [ "$IPMIMFG" = "19046" -a "$XPROD" = "1287" ]; then
if [ "$BMCPORT" = 0 ]; then
ipmitool raw 0x32 0x71 0 1 2
ipmitool raw 0x32 0x71 0 0 3
LANCHAN=1
LANCHAN=$(ipmitool raw 0x32 0x72 4 0 0|sed -e 's/^ 0//')
else
ipmitool raw 0x32 0x71 0 0 0
LANCHAN=8
LANCHAN=$(ipmitool raw 0x32 0x72 4 1 0|sed -e 's/^ 0//')
fi
ipmitool raw 0x3c 0x70 0 1
#USBSTATE=$(ipmitool raw 0x32 0xab)