From 408cf2b353630b97db1519863b3f1426f0699b9b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 19 Nov 2019 15:35:48 -0500 Subject: [PATCH] Adapt channel number dynamically SR635/SR655 lan channel identity may swap. Use the oem command to determine the correct port. --- xCAT-genesis-scripts/usr/bin/bmcsetup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-genesis-scripts/usr/bin/bmcsetup b/xCAT-genesis-scripts/usr/bin/bmcsetup index e511e33d0..80a8e2b29 100755 --- a/xCAT-genesis-scripts/usr/bin/bmcsetup +++ b/xCAT-genesis-scripts/usr/bin/bmcsetup @@ -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)