diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index 2a7f7746c..bff275ae1 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -19,6 +19,10 @@ if [ -n "$2" ] && [ "$2" = "-f" ]; then FORCE=-f fi +if [ -z "$CONSERVER" ]; then + CONSERVER=`nodels $1 nodehm.conserver 2>/dev/null | awk -F: '{print $2}' | tr -d ' '` +fi + if [ -z "$CONSERVER" ]; then CONSERVER=$XCATHOST fi