diff --git a/xCAT-client-2.0/bin/rcons b/xCAT-client-2.0/bin/rcons index 86cdd7254..28b86db97 100755 --- a/xCAT-client-2.0/bin/rcons +++ b/xCAT-client-2.0/bin/rcons @@ -1,8 +1,8 @@ #!/bin/sh CONSERVER=$2 -#if [ -z "$CONSERVER" ]; then -# CONSERVER=`nodels $1 nodehm.conserver` -#fi +if [ -z "$CONSERVER" ]; then + CONSERVER=`nodels $1 nodehm.conserver|awk -F: '{print $3}'` +fi if [ -z "$CONSERVER" ]; then CONSERVER=$XCATHOST fi