diff --git a/xCAT-genesis-scripts/usr/bin/bmcsetup b/xCAT-genesis-scripts/usr/bin/bmcsetup index f923576e0..25a20bebe 100755 --- a/xCAT-genesis-scripts/usr/bin/bmcsetup +++ b/xCAT-genesis-scripts/usr/bin/bmcsetup @@ -228,17 +228,21 @@ elif [ "$IPMIMFG" == 19046 -a "$XPROD" == 13616 ] ; then elif [ "$IPMIMFG" = "19046" -a "$XPROD" = "1287" ]; then # Lenovo SR635/SR655 BMCPORT=`grep bmcport /tmp/ipmicfg.xml |awk -F\> '{print $2}'|awk -F\< '{print $1}'` + echo -n "Initializing TSM network...." if [ "$BMCPORT" = 0 ]; then ipmitool raw 0x32 0x71 0 1 0 + sleep 15 ipmitool raw 0x32 0x71 0 0 3 LANCHAN=$(ipmitool raw 0x32 0x72 4 0 0|sed -e 's/^ 0//') else ipmitool raw 0x32 0x71 0 0 0 + sleep 15 ipmitool raw 0x32 0x71 0 1 3 LANCHAN=$(ipmitool raw 0x32 0x72 4 1 0|sed -e 's/^ 0//') fi + echo -n "Ready" ipmitool raw 0x3c 0x70 0 1 2> /dev/null - #USBSTATE=$(ipmitool raw 0x32 0xab) + USBSTATE=$(ipmitool raw 0x32 0xab) #ipmitool raw 0x32 0xaa 0 elif [ "$IPMIMFG" == 20301 -o "$IPMIMFG" == 19046 -a "$XPROD" != 502 ] ; then IBMVPDV=`ipmitool raw 0x3a 0xb 2 0 16 1` @@ -707,14 +711,23 @@ if [ -e /tmp/xcchostnic ]; then ip netns exec mgt ip link set dev $INTERFACE netns 1 /usr/sbin/setupimmnic fi -#if [ ! -z "$USBSTATE" ]; then # Continuation of SR635/SR655 specific code -# if [ "$BMCPORT" = 0 ]; then -# # Enable ipv6 at least for the 'other' interface -# # this is opposite of the selected port -# ipmitool raw 0x32 0x71 0 1 2 -# fi +if [ ! -z "$USBSTATE" ]; then # Continuation of SR635/SR655 specific code + echo -n "Restarting TSM networking...." + if [ "$BMCPORT" = 0 ]; then + sleep 15 + ipmitool raw 0x32 0x71 0 0 0 + sleep 15 + ipmitool raw 0x32 0x71 0 0 3 + else + sleep 15 + ipmitool raw 0x32 0x71 0 1 0 + sleep 15 + ipmitool raw 0x32 0x71 0 1 3 + fi + fi + echo "Done" # ipmitool raw 0x32 0xaa $USBSTATE -#fi +fi # remove the bmc configuration information before exit