Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user