add support for AIX ssh setup, more to be done

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11360 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-01-06 13:15:09 +00:00
parent e20bf54dfc
commit 18068e4413
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/awk -f
BEGIN {
if (ENVIRON["USEOPENSSLFORXCAT"]) {
if ((ENVIRON["USEOPENSSLFORXCAT"]) || (ENVIRON["AIX"])) {
server = "openssl s_client -quiet -connect " ENVIRON["XCATSERVER"] " 2> /dev/null"
} else {
server = "/inet/tcp/0/127.0.0.1/400"

View File

@ -44,7 +44,11 @@ fi
allowcred.awk &
CREDPID=$!
sleep 1
if [ "$(uname -s)" = "AIX" ]; then
AIX=1
export AIX
logger -t xcat "remoteshell setting up AIX"
fi
getcredentials.awk ssh_dsa_hostkey | grep -E -v '</{0,1}xcatresponse>|</{0,1}serverdone>' | sed -e 's/&lt;/</' -e 's/&gt;/>/' -e 's/&amp;/&/' -e 's/&quot/"/' -e "s/&apos;/'/" > /tmp/ssh_dsa_hostkey