2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

fix issue If service node is down, control to OpenBMC node never returns #3888:use port 3004 instead of 3001 to run debug commands inside installer

This commit is contained in:
immarvin
2017-10-11 04:19:50 -04:00
parent d6121a0a7e
commit 35d299f9d6
7 changed files with 7 additions and 7 deletions

View File

@@ -58,5 +58,5 @@ if [ "$retcode" != "0" ];then
exit $retcode
fi
echo "sh $cmd 2>&1" | nc -w 20 $node 3001
echo "sh $cmd 2>&1" | nc -w 20 $node 3004

View File

@@ -36,7 +36,7 @@ cat >/tmp/foo.awk <<EOF
#!$AWK -f
BEGIN {
ns = "/inet/tcp/3001/0/0"
ns = "/inet/tcp/3004/0/0"
while(1) {
ns |& getline

View File

@@ -71,7 +71,7 @@ sock.close()
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
port = 3001
port = 3004
sock.bind(('', port))
sock.listen(5)

View File

@@ -60,7 +60,7 @@ sock.close()
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
port = 3001
port = 3004
sock.bind(('', port))
sock.listen(5)

View File

@@ -39,7 +39,7 @@ cat >/tmp/foo.awk <<EOF
#!$AWK -f
BEGIN {
ns = "/inet/tcp/3001/0/0"
ns = "/inet/tcp/3004/0/0"
while(1) {
ns |& getline

View File

@@ -46,7 +46,7 @@ if [ \$# -eq 0 ]; then
fi
while true; do
/usr/bin/nc -l -p 3001 -e /tmp/foo.sh serve_client
/usr/bin/nc -l -p 3004 -e /tmp/foo.sh serve_client
done
exit 1 # never reached; reboot ends this

View File

@@ -46,7 +46,7 @@ if [ \$# -eq 0 ]; then
fi
while true; do
/usr/bin/nc -l -p 3001 -e /tmp/foo.sh serve_client
/usr/bin/nc -l -p 3004 -e /tmp/foo.sh serve_client
done
exit 1 # never reached; reboot ends this