diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 01c2a826..11730763 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -18,6 +18,12 @@ source /opt/idssys/nodemgmt/defaults.inc # ========================================================= # STATUS() { + if [ "${1}" = "report" ]; then + unset idsCL idsBG idsST + idsCL=('') + idsBG=('') + idsST=('') + fi echo -e "${idsCL[LightCyan]}Setting up status checks...${idsCL[Default]}" echo declare -i cw; declare -i spc1; declare -i c @@ -25,12 +31,6 @@ STATUS() { then NHCMD='ssh root@10.5.10.51' else NHCMD='' fi - if [ "${1}" = "report" ]; then - unset idsCL idsBG idsST - idsCL=('') - idsBG=('') - idsST=('') - fi # for nip in "${NODE_HOSTS[@]}"; do # if [ "${nip}" = '10.5.10.51' ] && [ ! -z ${LOCAL_SERVICES+x} ]; then isreplhost=true; else isreplhost=false; fi # if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${isreplhost}" = "false" ]; then