-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:
parent
658d2e4b0d
commit
9c1ce3d91c
15
xCAT-nbroot/overlay/bin/allowcred.awk
Executable file
15
xCAT-nbroot/overlay/bin/allowcred.awk
Executable 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)
|
||||
}
|
||||
}
|
@ -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}'`
|
||||
|
Loading…
Reference in New Issue
Block a user