Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-07 17:03:40 -06:00
parent 38bd227c4b
commit cfbd5902e6

View File

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