-Have bmcsetup use the credential allowance scheme to reinforce security authentication to more definitive host-based

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2087 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-09-06 22:36:02 +00:00
parent 658d2e4b0d
commit 9c1ce3d91c
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/usr/bin/awk -f
BEGIN {
listener = "/inet/tcp/300/0/0"
quit = "no"
while (match(quit,"no")) {
while ((listener |& getline) > 0) {
if (match($0,"CREDOKBYYOU?")) {
print "CREDOKBYME" |& listener
}
}
close(listener)
}
}

View File

@ -1,10 +1,13 @@
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
allowcred.awk &
CREDPID=$!
modprobe ipmi_si
modprobe ipmi_devintf
while ! getipmi
do
echo "Retrying retrieval of IPMI settings from server"
done
kill $CREDPID
BMCIP=`grep bmcip /tmp/ipmi.data |awk -F\> '{print $2}'|awk -F\< '{print $1}'`
BMCGW=`grep gateway /tmp/ipmi.data |awk -F\> '{print $2}'|awk -F\< '{print $1}'`
BMCNM=`grep netmask /tmp/ipmi.data |awk -F\> '{print $2}'|awk -F\< '{print $1}'`