diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 1fe408fa..731439ec 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1285,7 +1285,8 @@ SERVICE(){ var=${NTYPE}_HOSTS[@] echo "$NTYPE" for nip in "${!var}"; do - echo -en "$nip = " + IP=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) + echo -en "($IP) $nip = " if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NODE_TYPE=${NTYPE}; echo "yes"