Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 11:23:20 -05:00
parent 63cff9044e
commit d92dbe37db

View File

@@ -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