diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index ba5def14..8227384a 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -160,6 +160,7 @@ STATUS(){ fi for nip in "${!var}"; do + echo $nip if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD=''; LH='- localhost' else NCMD="ssh root@${nip}"; LH='' fi