From d05271857c85e0d45fe9d29d6d5bb4110126f41e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 11 Feb 2009 15:55:29 +0000 Subject: [PATCH] -Change bmcsetup to enable any supported non-zero cipher priv for admin access git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2719 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/bin/bmcsetup | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xCAT-nbroot/overlay/bin/bmcsetup b/xCAT-nbroot/overlay/bin/bmcsetup index cdd254053..5186bddf9 100755 --- a/xCAT-nbroot/overlay/bin/bmcsetup +++ b/xCAT-nbroot/overlay/bin/bmcsetup @@ -134,7 +134,16 @@ done TRIES=0 if [ ! "$IPMIVER" == "1.5" ]; then echo "Enabling IPMI v 2.0 LAN access:" - while ! ipmitool lan set 1 cipher_privs XaaaXXXXXXXXXXX; do + SUPPORTEDSUITES=`ipmitool lan print 1|grep Suites|awk -F: '{print $2}'|sed -e 's/ 0//'` + PRIVS="X" + for priv in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do + if echo $SUPPORTEDSUITES|grep $priv > /dev/null; then + PRIVS="$PRIVS"a + else + PRIVS="$PRIVS"X + fi + done + while ! ipmitool lan set 1 cipher_privs $PRIVS; do sleep 1 let TRIES=TRIES+1 if [ $TRIES -gt $TIMEOUT ]; then break; fi