Update nodemgmt-scripts.sh
This commit is contained in:
@@ -18,6 +18,12 @@ source /opt/idssys/nodemgmt/defaults.inc
|
|||||||
# ========================================================= #
|
# ========================================================= #
|
||||||
|
|
||||||
STATUS() {
|
STATUS() {
|
||||||
|
if [ "${1}" = "report" ]; then
|
||||||
|
unset idsCL idsBG idsST
|
||||||
|
idsCL=('')
|
||||||
|
idsBG=('')
|
||||||
|
idsST=('')
|
||||||
|
fi
|
||||||
echo -e "${idsCL[LightCyan]}Setting up status checks...${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Setting up status checks...${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
declare -i cw; declare -i spc1; declare -i c
|
declare -i cw; declare -i spc1; declare -i c
|
||||||
@@ -25,12 +31,6 @@ STATUS() {
|
|||||||
then NHCMD='ssh root@10.5.10.51'
|
then NHCMD='ssh root@10.5.10.51'
|
||||||
else NHCMD=''
|
else NHCMD=''
|
||||||
fi
|
fi
|
||||||
if [ "${1}" = "report" ]; then
|
|
||||||
unset idsCL idsBG idsST
|
|
||||||
idsCL=('')
|
|
||||||
idsBG=('')
|
|
||||||
idsST=('')
|
|
||||||
fi
|
|
||||||
# for nip in "${NODE_HOSTS[@]}"; do
|
# for nip in "${NODE_HOSTS[@]}"; do
|
||||||
# if [ "${nip}" = '10.5.10.51' ] && [ ! -z ${LOCAL_SERVICES+x} ]; then isreplhost=true; else isreplhost=false; fi
|
# 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
|
# if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]] && [ "${isreplhost}" = "false" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user